/* ============================================================
   fc-header.css
   ログイン後トップ(login.html)と同じヘッダーをカード画面で再現するための指定。
   /css/fc2024/common.css の「header」ブロックと、制作会社追記分（801px・1180px）を
   そのまま切り出したもの。本文・フッターには影響しない。
   ============================================================ */
/*header
================================================*/
body.page #header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

#header {
    background: #fff;
    color: #4F4F4F;
    font-size: 15px;
    font-weight: bold;
    padding: 16px 0;
    border-bottom: 2px solid #D22625;
    position: relative;
}

#header.addfixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
    /* 0.3秒でフェードイン */
}
/* fadeIn アニメーションの定義 */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}





#header_col {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom:0;
}

#header_col>li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

#header_l {
    width: calc(100% - 222px - 16px);
}

#header_r {
    width: 222px;
}

.page #header_r {
    width: 157px;
}

#header_l nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#header_l nav h1,
#header_l div {
    display: flex;
    flex-direction: column;

}

#header_l nav h1 {
    width: 94px;
    margin: 0 16px 0 0;
}

#header_l nav h1 img {
    width: 100%;
    height: auto;
}

#header_l div {
    width: 700px;
}

#header_l div ul {
    display: flex;
    flex-wrap: wrap;
}

#header_l div li {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    border-right: 1px solid #ccc;
}

#header_l div li.btn {
    display: none;
}

#header_l div li a {
    padding: 0 16px;
    font-size: 14px;
    color:inherit;
}

#header_l div li:nth-last-of-type(1) {
    border-right: none;
}

#header_r ul {
    display: flex;
    flex-wrap: wrap;
}

#header_r li {
    display: flex;
    flex-direction: column;
    margin: 0 8px 0 0;
}

#header_r li:nth-of-type(1) {
    width: 122px;
}

.page #header_r li:nth-of-type(1) {
    width: 157px;
    margin: 0;
}

#header_r li:nth-of-type(2) {
    width: 92px;
    margin: 0;
}

#header_r li a {
    display: block;
    border-radius: 100px;
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
}

#header_r li:nth-of-type(1) a {
    background: #5C9E00;
}

#header_r li:nth-of-type(2) a {
    background: #D22625;
}

.page #header_l {
    width: 776px;
}

.page #header_l div {
    width: auto;
}

.page #header_r {
    width: 317px;
}

.page #header_r .page_nav li {
    width: auto;
    margin: 0 8px 0 0;
}

.page #header_r .page_nav li:nth-last-of-type(1) {
    margin: 0;
}

.page #header_r .page_nav li a {
    border-radius: 8px;
}

.page #header_r .page_nav li:nth-of-type(1) a {
    background: #06C755;
}

.page #header_r .page_nav li:nth-of-type(2) a {
    background: #007BFF;
}

.page #header_r .page_nav li:nth-of-type(3) a {
    background: #D22625;
}


#snav_f {
    visibility: hidden;
    opacity: 0;
    transition: .3s;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000;
}

#snav_f ul {
    display: flex;
    flex-wrap: wrap;
    margin-bottom:0;
}

#snav_f li {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    width: 100%;

}

#snav_f li {
    width: calc(100% / 2);
}

#snav_f li a {
    display: block;
    background: #5C9E00;
    padding: 16px;
    position: relative;
    color: #fff;
    text-align: center;
    position: relative;
}

#snav_f li a::after {
    content: "";
    display: block;
    width: 6px;
    height: 12px;
    background: url(/img/arrow_w_r.png) center center no-repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 5px;
    margin: auto;
}

#snav_f li:nth-last-of-type(1) a {
    background: #D22625;
}

#snav_f .page_nav_f li:nth-of-type(1) a {
    background: #007BFF;
}

@media screen and (max-width:1142px) {
    #header_l div li.btn {
        display: block;
        color: #fff;
        background: #06C755;
        padding: 8px 12px;
    }

    body {
        padding-bottom: 51px;
    }

    #header_col #header_r {
        display: none;
    }

    #header_col #header_l {
        width: 100%;
    }

    #header_l nav {
        justify-content: space-between;
    }

    #snav_f {
        visibility: inherit;
        opacity: 1;
    }
}

.openbtn1 {
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.openbtn1 {
    position: absolute;
    /*ボタン内側の基点となるためrelativeを指定*/
    background: #D22625;
    cursor: pointer;
    width: 38px;
    height: 38px;
    position: absolute;
    right: 24px;
    top: -2px;
    border-radius: 4px;
}

.openbtn1 div {
    width: 100%;
    height: 100%;
    position: relative;
}

.openbtn1 div::after {
    content: "MENU";
    display: block;
    font-family: "din-2014", sans-serif;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 4px;
    right: 0;
    left: 0;
    margin: auto;
    font-size: 8px;
    line-height: 1;
    color: #fff;
    font-weight: bold;
}

/*ボタン内側*/
.openbtn1 span {
    display: inline-block;
    transition: all .3s;
    /*アニメーションの設定*/
    position: absolute;
    left: 8px;
    height: 2px;
    background: #fff;
    width: 22px;
    border-radius: 1px;
}

.openbtn1 span:nth-of-type(1) {
    top: 8px;
}

.openbtn1 span:nth-of-type(2) {
    top: 14px;
}

.openbtn1 span:nth-of-type(3) {
    top: 20px;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn1.active span:nth-of-type(1) {
    top: 8px;
    left: 8px;
    transform: translateY(6px) rotate(-45deg);
}

.openbtn1.active span:nth-of-type(2) {
    opacity: 0;
    /*真ん中の線は透過*/
}

.openbtn1.active span:nth-of-type(3) {
    top: 20px;
    left: 8px;
    transform: translateY(-6px) rotate(45deg);
}

.openbtn1.active div::after {
    content: "CLOSE";
}

@media screen and (max-width:1142px) {
    #header .inner {
        padding: 0 24px;
    }

    #header_col #header_l div {
        display: block;
        width: 100%;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        height: 0;
        transition: .3s;
    }

    #header_col #header_l div ul {
        width: 100%;
        padding: 0;
        margin-top: 24px;
    }

    #header_col #header_l div ul li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-right: none;
        border-top: 1px solid #ccc;
    }

    .page #header_col #header_l div ul li:nth-last-of-type(1) {
        border: none;
    }

    #header_col #header_l div ul li a {
        padding: 16px 8px;
    }

    #header_col #header_l div.active {
        opacity: 1;
        visibility: inherit;
        height: auto;
    }

    .openbtn1 {
        opacity: 1;
        visibility: inherit;

    }

}

/* ▼オートレースコレクション（制作会社 2026-10-09 納品の common.css 追記分） */
.page #header_l {
  width: 812px; /* 801px→812px（common.css と同じ） */
}

@media screen and (max-width: 1180px) {
  #header_l div li.btn { display: block; color: #fff; background: #06C755; padding: 8px 12px; }
  body { padding-bottom: 51px; }
  #header_col #header_r { display: none; }
  #header_col #header_l { width: 100%; }
  #header_l nav { justify-content: space-between; }
  #snav_f { visibility: inherit; opacity: 1; }
  #header .inner { padding: 0 24px; }
  #header_col #header_l div { display: block; width: 100%; padding: 0; opacity: 0; visibility: hidden; height: 0; transition: .3s; }
  #header_col #header_l div ul { width: 100%; padding: 0; margin-top: 24px; }
  #header_col #header_l div ul li { width: 100%; margin: 0; padding: 0; border-right: none; border-top: 1px solid #ccc; }
  .page #header_col #header_l div ul li:nth-last-of-type(1) { border: none; }
  #header_col #header_l div ul li a { padding: 16px 8px; }
  #header_col #header_l div.active { opacity: 1; visibility: inherit; height: auto; }
  .openbtn1 { opacity: 1; visibility: inherit; }
}
/* ▲オートレースコレクション */

/* ------------------------------------------------------------
   旧CSS(Bootstrap/MDB)の .btn・a がヘッダーに効くのを打ち消し、
   common.css の「.btn a」相当（LINE連携ボタン）をヘッダー内に限定して再現する
   ------------------------------------------------------------ */
#header_l h1 a {
  color: inherit;
}

#header_l div li.btn {
  font-size: 15px;
  font-weight: bold;
  text-transform: none;
  box-shadow: none;
  border-radius: 0;
  position: static;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 1180px) {
  #header_l div li.btn {
    padding: 8px 12px;
  }

  #header_l div li:not(.btn) a {
    position: static;
  }
}

/* common.css の「.btn a」と同じ詳細度（:where で #header_l の詳細度を0にする） */
:where(#header_l) .btn a {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  transition: .3s;
  position: relative;
}

:where(#header_l) .btn a::after {
  content: "";
  display: block;
  width: 6px;
  height: 12px;
  background: url(/img/arrow_w_r.png) center center no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 16px;
  margin: auto;
}

:where(#header_l) .btn a:hover {
  opacity: .5;
}

/* スマホ下部ナビ：旧CSSの文字色・太さ・行間を login.html 側に合わせる */
#snav_f {
  color: #4F4F4F;
  font-weight: 400;
  line-height: 1.15;
}

/* ▼ヘッダー（本番仕様 2026-10-09） */
/* ログイン後の右ボタンを右端にそろえる */
.page #header_r .page_nav {
    justify-content: flex-end;
}

/* PCでは隠れている LINE連携（li.btn）が最後の項目のため、その直前（カード）の区切り線を消す */
#header_l div li:has(+ li.btn:last-child) {
    border-right: none;
}

/* ログイン前ヘッダー（share）：body.page の指定より header_logout（index と同じ）を優先する */
@media screen and (min-width: 1181px) {
  .header_logout #header_l div {
    width: auto;
  }

  .page .header_logout #header_l {
    width: calc(100% - 222px - 16px);
  }

  .page .header_logout #header_r {
    width: 222px;
  }

  .page .header_logout #header_r li:nth-of-type(1) {
    width: 122px;
    margin: 0 8px 0 0;
  }
}

@media screen and (max-width: 1142px) {
  .header_logout #header_col #header_l div ul li:nth-last-of-type(1) {
    border-top: 1px solid #ccc;
  }
}
/* ▲ヘッダー */

/* --- ヘッダーとパンくずの間の余白（2026-10-09）---
   固定ヘッダーの高さ分を body.page の padding-top（custom.css）と .l-main の padding-top（60/66px）の
   両方で空けていて二重になり、本番の下層ページ（約25px）より 60px 以上広かった。
   .l-main 側を 0 にして本番に近い間隔（約29px）にする。 */
body.page .l-main {
  padding-top: 0;
}
