@charset "UTF-8";

html,
body {
  font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  font-size: 16px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

body {
  color: #000;
  line-height: 1.8;
  min-width: 1000px;
}

a {
  text-decoration: none;
}

.br-sp {
  display: none;
}

.br-pc {
  display: block;
}

.red {
  color: #ff006a;
}

h1 {
  background: #FFF;
  width: 100%;
  text-align: center;
}

h1 a {
  width: 35%;
  margin: 0 auto;
}

h1 img {
  width: 100%;
  margin: 5px 0;
}

h2 {
  position: relative;
  line-height: 1.4;
  padding: 0.25em 1em;
  display: inline-block;
  top: 0;
  font-size: 26px;
  font-size: 1.625rem;
  color: #1e2036;
}

h2:before,
h2:after {
  position: absolute;
  top: 0;
  content: '';
  width: 8px;
  height: 100%;
  display: inline-block;
}

h2:before {
  border-left: solid 1px #1e2036;
  border-top: solid 1px #1e2036;
  border-bottom: solid 1px #1e2036;
  left: 0;
}

h2:after {
  content: '';
  border-top: solid 1px #1e2036;
  border-right: solid 1px #1e2036;
  border-bottom: solid 1px #1e2036;
  right: 0;
}

#page_title {
  font-size: 25px;
  font-size: 1.5625rem;
  font-weight: bold;
  text-align: center;
  text-decoration: underline;
}

#footer {
  background: #896208;
  color: #fff;
}

#footer_c {
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.contact_img,
.voice_img {
  width: 100%;
  line-height: 0;
}

@-webkit-keyframes blink {
  0% {
    opacity: 0.4;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

@-moz-keyframes blink {
  0% {
    opacity: 0.4;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

@keyframes blink {
  0% {
    opacity: 0.4;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

header {
  width: 100%;
}

#gnav {
  width: 100%;
  min-width: 1000px;
  background: #FFF;
  z-index: 10;
  position: relative;
  /* border-bottom: 2px solid #1e2036; */
  box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.31);
}

#gnav::after,
#gnav.js-sticky-gnav::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 5px;
  content: '';
  background-image: linear-gradient(135deg, #704308 0%, #ffce08 40%, #e1ce08 60%, #704308 100%);
}

#gnav>ul {
  display: flex;
  justify-content: space-between;
  line-height: 1;
  height: 73px;
}

#gnav>ul>li {
  display: flex;
  vertical-align: middle;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

#gnav>ul>li>a {
  padding: 0;
  transition: all 0s ease-in;
  color: #1e2036;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

#gnav>ul>li a {
  position: relative;
  text-decoration: none;
}

#gnav>ul>li a::after {
  position: absolute;
  bottom: 19px;
  content: '';
  width: 10%;
  height: 2px;
  background: #1e2036;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

#gnav>ul>li a:hover::after {
  width: 70%;
  opacity: 1;
  visibility: visible;
}

#gnav>ul #nav_contact {
  background: #f2fcc6;
}

#gnav>ul #nav_contact .nav_contact_img {
  width: auto;
  line-height: 0;
}

#gnav>ul #nav_contact a:hover::after {
  opacity: 0;
}

#gnav>ul .menu {
  transition: max-height .5s ease-out;
  max-height: 0;
  overflow: hidden;
  width: 100%;
  left: 0;
  text-align: center;
  position: absolute;
  top: 73px;
  background-color: rgba(134, 2, 2, 0.79);
}

#gnav>ul .menu .menu_inner li {
  display: inline-block;
}

#gnav>ul .menu .menu_inner li:hover {
  background: rgba(255, 91, 91, 0.53);
}

#gnav>ul .menu a {
  color: #fff;
  padding: 2em 4em;
}

.footer_contact {
  width: 500px;
  margin: 50px auto;
}

@media(min-width: 768px){
  a[href^="tel:"]{
    pointer-events: none;
  }
}

/* ===== PCナビ：到達したら固定（#top_img_area 直下 → 上端到達で固定） ===== */

/* 初期は通常フロー。#gnav に .js-sticky-gnav が付いている前提 */
#gnav.js-sticky-gnav {
  position: relative; /* 既存の relative のままでOK */
  z-index: 10;
}

/* 固定状態だけ上部に貼り付け（JSが .is-fixed を付与） */
#gnav.js-sticky-gnav.is-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  min-width: 1000px;     /* 既存のレイアウト幅を維持 */
  z-index: 10000;        /* ヒーローや他要素より前面に */
  /* 見た目は従来どおり */
  background: #FFF;
  box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.31);
}

/* 固定時の詰まり防止用スペーサー（JSが高さを入れて表示/非表示）*/
#gnav-spacer {
  display: none;
  width: 100%;
  min-width: 1000px;
}

/* ヒーロー直下→上端に来たら固定（CSS sticky） */
#gnav.js-sticky-gnav {
  position: sticky !important; /* 既存の fixed 指定を打ち消すために !important 付け */
  top: 0;
  z-index: 10000;
  background: #fff;            /* 固定時に下が透けないように */
  box-shadow: 0 6px 10px rgba(0,0,0,.1); /* 好みで */
}

/* 1) 常に前面へ（sticky前も有効） */
#top_img_area { position: relative; z-index: 0; } /* 念のため */
#gnav.js-sticky-gnav {
  position: sticky !important;
  top: 0;
  z-index: 10000;            /* ← これが効きます */
  background: #fff;          /* 固定時に透け防止（任意） */
}

/* 2) 擬似要素をナビの下端に固定して表示 */
#gnav { position: relative; } /* ::after の基準にする */
#gnav::after,
#gnav.js-sticky-gnav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;          /* width:100% と同義。はみ出し防止 */
  bottom: 0;         /* ← 下端に貼り付け（重要） */
  height: 5px;
  pointer-events: none;
  z-index: 1;        /* ナビ内容より下/上はお好みで */
  background-image: linear-gradient(135deg,#704308 0%,#ffce08 40%,#e1ce08 60%,#704308 100%);
}
