/* =========================
   ヘッダー共通
   ========================= */
.site-header {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  /*font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro", "Yu Gothic Medium", "游ゴシック Medium", "Yu Gothic", "游ゴシック体", "メイリオ", "Hiragino Sans", "Meiryo", sans-serif;*/
  border-bottom: 1px solid #eee;
  background-color: #ffffff;
  position: fixed;
  top: 0;

  z-index: 1000;         /* 何かに隠れないように */
  background: #fff;      /* 下のコンテンツが透けないように */
  width: 100%;
  margin: 0 auto;
}

/*==============================================*/
/*################## PC用 #################*/
/*==============================================*/
@media print, screen and (min-width:897px) {
  /*####### PC表示　スマホ非表示 #######*/
  .phone_area {
    display: none;
  }
  .side-phone_area {
    display: none;
  }
  .side_and_phone_area {
    display: none;
  }
  .br-pc {
    display: block;
  }
  /*########################################*/

  /* 中身の横並び（PCもSPも共通でOKにする） */
  .site-header__inner {
    max-width: 1200px;
    max-height: 100px;
    margin: 0 auto;
    padding: 25px 16px;
    display: flex;
    justify-content: space-between; /* 左ブロック / 右ブロックを左右に */
    align-items: center;
  }

  /* 左（ロゴ＋About us）、右（お問い合わせ＋参加依頼） */
  .site-header__left,
  .site-header__right {
      display: flex;
      align-items: center;
      gap: 8px;
  }

  .site-header__center {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
  }

  /* ロゴ画像がある場合の軽い調整 */
  .site-logo img {
      display: block;
      max-height: 60px;
  }

  /* =========================
    ボタンの最低限デザイン
    ========================= */
  .header-btn {
      display: inline-block;
      padding: 10px 20px;
      font-size: 16px;
      line-height: 1.6;
      text-decoration: none;
      border-radius: 9999px;       /* カプセル型 */
      /*background-color: #ffffff;*/
      color: #333333;
      transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
      white-space: nowrap;          /* 折り返し防止 */
  }
  /* =========================
    ヘッダ
    ========================= */

  .header-btn a {
    color: #fff;
  }

  .header-btn:hover {
    opacity: 0.7;
    transition: 0.7s;
  }

  /* 役割ごとにちょっとだけ色分け */
  .header-btn--about,
  .header-btn--for-users
   {
    margin: 5px;
    width: 170px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #000;
    border: 1px solid;
    cursor: pointer;
    text-decoration: none;
    /*color: #fff;*/
    /*border-color: #626262;*/
  }

  .header-btn--about:hover,
  .header-btn--for-users:hover {
    opacity: 0.7;
    transition: 0.7s;
  }

  .header-btn--yazirusi {
    margin-left: 5px;
    width: 25px;
    height: 7px;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    transform: skew(45deg);
  }

  .header-btn--contact {
    border: 1px solid #626262;
    border-radius: 30px;
    border-color: #626262;
    /*background-color: #f4f8ff;*/
    padding: 10px 20px;
  }

  .header-btn--join {
    border: 1px solid #626262;
    border-radius: 30px;
    border-color: #626262;
    /*background-color: #f4f8ff;*/
    padding: 10px 20px;
  }

  /* ホバー時の軽いリアクション */
  .header-btn:hover {
    opacity: 0.7;
    transition: 0.7s;
  }

  /* スマホ用3ボタンエリアはとりあえず隠しておく */
  .site-header__sp-buttons {
      display: none;
  }
  /* 矢印 */
  .header-button {
    margin: 5px;
    width: 170px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #000;
    border: 1px solid;
    cursor: pointer;
  }
}

/* =========================
   スマホ用エリアはいったん無効化
   ========================= */

/* =========================
   スマホ表示の基礎
   ========================= */
/*==============================================*/
/*################## スマホ縦用 #################*/
/*==============================================*/
@media screen and (min-width: 0px) and (max-width: 480px) {
  /*####### PC非表示　スマホ表示 改行　#######*/
  .phone_area {
    display: block;
  }
  .side-phone_area {
    display: block;
  }
  .side_and_phone_area {
    display: block;
  }
  .site-header__inner {
    display: none;
  }

  /* ヘッダーは position: fixed のままで OK */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .site-header__center {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
  }

  /* ロゴ */
  .site-logo img {
    padding: 15px 0 0 20px;
    width: 70%;
  }

  /*########################################*/
  /*####### ハンバーガーメニュー #####*/
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 9999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh; /*ナビの高さ*/
    background: rgba(109, 36, 46, 0.9);
    /*動き*/
    transition: all 0.6s;
  }
  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive {
    right: 0;
  }
  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 90%;
    height: 100vh; /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  /*ナビゲーション*/
  #g-nav-01 {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 100px;
    left: 35%;
    transform: translate(-50%, -50%);
  }
  /*リストのレイアウト設定*/
  #g-nav-01 p a {
    color: #fff;
    font-weight: bold;
  }
  #g-nav-01 li {
    list-style: none;
  }
  #g-nav-01 li a {
    color: #fff;
    text-decoration: none;
    padding: 2px 0 2px 30px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  #g-nav-02 {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 250px;
    left: 40%;
    transform: translate(-50%, -50%);
  }
  /*========= ボタンのためのCSS ===============*/
  /* openbtn 本体 */
  .openbtn {
    position: fixed;
    z-index: 9999; /*ボタンを最前面に*/
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }
  /*×に変化*/
  .openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #772a2e;
    width: 45%;
  }
  .openbtn span:nth-of-type(1) {
    top: 15px;
  }
  .openbtn span:nth-of-type(2) {
    top: 23px;
  }
  .openbtn span:nth-of-type(3) {
    top: 31px;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
    background-color: #fff;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
    background-color: #fff;
  }

  /* ######## ボタン白（メニューエントリー） ######## */
  .btn-entry {
    width: 190px;
    padding: 12px 0;
    font-size: 16px;
    display: block;
    margin: 25px 0;
    color: #772a2e;
    background: #fff;
    line-height: 1.6;
    border-radius: 30px;
    text-align: center;
  }
  .btn-entry a {
    color: #772a2e;
    font-weight: bold;
  }
  .btn-entry:hover {
    opacity: 0.6;
  }
}

/*==============================================*/
/*################## スマホ横用 #################*/
/*==============================================*/
@media screen and (min-width: 481px) and (max-width: 896px) {
  /*####### PC非表示　スマホ表示 改行　#######*/
  .phone_area {
    display: block;
  }
  .side-phone_area {
    display: block;
  }
  .side_and_phone_area {
    display: block;
  }
  .site-header__inner {
    display: none;
  }

  /* ヘッダーは position: fixed のままで OK */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  /* ロゴ */
  .site-logo img {
    padding: 15px 0 0 20px;
    width: 350px;
  }

  /*########################################*/
  /*####### ハンバーガーメニュー #####*/
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 9999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh; /*ナビの高さ*/
    background: rgba(109, 36, 46, 0.9);
    /*動き*/
    transition: all 0.6s;
  }
  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive {
    right: 0;
  }
  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 90%;
    height: 100vh; /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  /*ナビゲーション*/
  #g-nav-01 {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 100px;
    left: 35%;
    transform: translate(-50%, -50%);
  }
  /*リストのレイアウト設定*/
  #g-nav-01 p a {
    color: #fff;
    font-weight: bold;
  }
  #g-nav-01 li {
    list-style: none;
  }
  #g-nav-01 li a {
    color: #fff;
    text-decoration: none;
    padding: 2px 0 2px 30px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  #g-nav-02 {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 250px;
    left: 40%;
    transform: translate(-50%, -50%);
  }

  /*========= ボタンのためのCSS ===============*/
  /* openbtn 本体 */
  .openbtn {
    position: fixed;
    z-index: 9999; /*ボタンを最前面に*/
    top: 20px;
    right: 15px;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }
  /*×に変化*/
  .openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #772a2e;
    width: 55%;
  }
  .openbtn span:nth-of-type(1) {
    top: 15px;
  }
  .openbtn span:nth-of-type(2) {
    top: 25px;
  }
  .openbtn span:nth-of-type(3) {
    top: 35px;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
    background-color: #fff;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
    background-color: #fff;
  }

  /* ######## ボタン白（メニューエントリー） ######## */
  .btn-entry {
    width: 190px;
    padding: 12px 0;
    font-size: 16px;
    display: block;
    margin: 25px 0;
    color: #772a2e;
    background: #fff;
    line-height: 1.6;
    border-radius: 30px;
    text-align: center;
  }
  .btn-entry a {
    color: #772a2e;
    font-weight: bold;
  }
  .btn-entry:hover {
    opacity: 0.6;
  }
}

