/********************************************
  ▼ ナビゲーション（ハンバーガーメニュー）
  仕様：
  - 1000px未満：ハンバーガー＋スライドメニュー（スマホ用）
  - 1000px以上：PCナビ（横並び＋hoverでドロップ）
*********************************************/

/* =========================================
  ▼ ヘッダー周り（共通）
========================================= */
.nav-wrapper {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1em;
  padding: 0;
}

.nav-wrapper h1 {
  font-size: 1em;
  padding: 0;
  margin: 1em 0 0;
  text-align: center;
  width: 250px;
  height: auto;
}

.brand-logo img {
  width: 100%;
  height: auto;
}

.header-tagline {
  margin: 1em 0 0;
  display: flex;
  align-items: start;
  gap: 1em;
}

.header-tagline img {
  width: 70px;
  height: auto;
}

.header-tagline h2 {
  margin: 0;
  padding: 0;
  font-size: 0.9em;
  font-weight: bold;
}

.header-tagline h3 {
  margin: 0;
  padding: 0;
  font-size: 0.7em;
  font-weight: normal;
}

@media screen and (max-width: 1020px) {
  .header-tagline {
    display: none;
  }
}

.header_info {
  margin: 1em 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.header_info p {
  margin: 0;
  padding: 0;
}

.header_info p:first-of-type {
  font-size: 0.9em;
  font-weight: bold;
}

.header_info p:last-of-type {
  font-size: 0.7em;
}

.header_info p span {
  color: red;
}

@media screen and (max-width: 1280px) {
  .header_info {
    display: none;
  }
}

.header_btn {
  margin: 0;
  padding: 0;
  height: 60px;
  display: flex;
}

.header_btn a:hover {
  opacity: 0.7;
}

.header_bh {
  margin: 0;
  padding: 0 1em;
  height: 100%;
  background-color: #cfc9ae;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header_bh img {
  margin: 0 0 5px;
  padding: 0;
  width: 20px;
  height: auto;
}

.header_bh p {
  margin: 0;
  padding: 0;
  font-size: 0.6em;
  font-weight: normal;
  line-height: 1.2;
  color: #000;
}

.header_contact {
  position: relative;
  margin: 0;
  padding: 0 0 0 1em;
  width: 200px;
  background-color: #ff8a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header_contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 33px;
  background: url("../img/common/phone.png") center / contain no-repeat;
  transform: translateY(-50%);
}

.header_contact p {
  font-size: 1em;
  padding: 0;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  font-weight: bold;
}

.header_contact p.catch {
  font-size: 0.6em;
  font-weight: normal;
}

@media screen and (max-width: 1080px) {
  .header_btn {
    display: none;
  }
}

/* =========================================
  ▼ site-nav（共通）
========================================= */
.site-nav {
  position: relative;
  /* background: #fff; */
  z-index: 1000;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2em;
  padding: 0 1em;
  box-sizing: border-box;
}

/* =========================================
  ▼ ナビメニュー（PCベース：1000px以上で適用）
========================================= */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2em;
  margin: 0 auto;
  padding: 0;
  font-family: "Expletus Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.1em;
}

.nav-menu li {
  list-style: none;
  text-align: left;
}

.nav-menu li a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.nav-menu li a:hover {
  color: #e32020;
}

.nav-menu img {
  width: 150px;
  height: auto;
}

/* SNSアイコン（PC） */
.nav-menu .sns-icons {
  display: flex;
  gap: 10px;
}

.nav-menu .sns-icons li {
  list-style: none;
}

.nav-menu .sns-icons img {
  width: 30px;
  height: auto;
  display: block;
}

/* 親(li)を基準にする（ドロップ用） */
.nav-menu > li {
  position: relative;
}

/* =========================================
  ▼ ドロップダウン（PC：1000px以上でhover展開）
========================================= */
@media screen and (min-width: 1000px) {

  /* 初期は非表示 */
  .nav-menu .drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    z-index: 2000;
  }

  .nav-menu .drop-menu li {
    padding: 0;
  }

  .nav-menu .drop-menu a {
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
  }

  /* ホバーで展開（閉じやすい場合は top を100%にして隙間をなくすのが正解） */
  .nav-menu > li:hover > .drop-menu {
    display: block;
  }
}

/* =========================================
  ▼ スマホメニュー（1000px未満：ハンバーガー＋スライド）
========================================= */
@media screen and (max-width: 999px) {

  .site-nav {
    max-width: 100%;
    opacity: 1;
  }

  /* ナビ全体：スライドメニュー */
  .nav-menu {
    position: fixed;
    top: 0;
    bottom: 0;                 /* ← 追加：画面下まで固定 */
    right: -90%;
    width: 85%;
    height: auto;              /* ← 変更：100%をやめる */
	font-size:1em;

    flex-direction: column;
    align-items: flex-start;
    padding: 1em 0 calc(1em + env(safe-area-inset-bottom)); /* ← 変更：下にsafe-area分足す */
    gap: 1em;

    transition: right 0.4s ease;
    box-shadow: -2px 0 13px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(255,255,255,0.4);
    background-color: #fff;
    z-index: 1001;

    overflow-y: auto;                  /* メニュー内スクロール */
    -webkit-overflow-scrolling: touch; /* iOSで慣性スクロール */
    overscroll-behavior: contain;      /* 背景へのスクロール伝播を抑える */
  }

  /* メニュー表示 */
  .nav-menu.active {
    right: 0;
  }

  /* 通常メニュー（縦） */
  .nav-menu > li:not(.sns) {
    width: 100%;
  }

  /* ===== SNSだけ横並び ===== */
  .nav-menu .sns {
    width: 100%;
    margin-top: 20px;
  }

  .nav-menu .sns-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
  }

  .nav-menu .sns-icons img {
    width: 32px;
    height: auto;
  }

  /* ハンバーガー表示（右上固定） */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;

    position: fixed;
    top: 0.3em;
    right: 0.3em;
    width: 50px;
    height: 50px;
    padding: 0.3em;
    box-sizing: border-box;
    cursor: pointer;

    background-color: #000;
    color: #fff;
    z-index: 1002;
  }

  .hamburger span {
    display: block;
    height: 3px;
    background: #fff;
  }

  .nav-wrapper h1 {
    margin: 1em auto 0;
  }

  /* ×変形 */
  .hamburger.active span:nth-child(1) {
    transform: rotate(30deg) translate(4px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-30deg) translate(4px, -7px);
  }

  .hamburger p {
    font-size: 60%;
    font-family: "Expletus Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  /* 黒幕（スマホのみ有効） */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    z-index: 900;
  }

  .overlay.active {
    display: block;
  }

  /* ▼ スマホではdrop-menuは最初から表示（装飾維持） */
  .nav-menu .drop-menu {
    display: block;
    position: static;
    margin: 0 0 1em;
    padding: 0.2em 0 0;
    box-shadow: none;
    border: none;
  }

  /* 子メニューの見た目（装飾維持） */
  .nav-menu .drop-menu li {
    border-bottom: 1px solid #dadada;
  }

  .nav-menu .drop-menu a {
    display: block;
    padding: 0.5em 0.5em 0.5em 0.8em;
  }
}


/* =========================================
  ▼ drop-menu 矢印（共通：装飾維持）
========================================= */
.nav-menu .drop-menu a {
  position: relative;
  display: flex;              /* ← blockから変更 */
  align-items: center;        /* ← 垂直中央 */
  gap: 6px;                   /* テキストとバッジの間隔 */
  padding-left: 2em;
  padding-right: 1em;
  font-weight: normal;
}

.nav-menu .drop-menu a span{
  background-color: #e32020;
  color: #fff;
  font-size: 0.7em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  display: inline-block;
}
.nav-menu .drop-menu a i {
  position: absolute;
  left: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2em;          /* 幅を固定 */
  text-align: center;
}

.nav-menu .drop-menu a::after {
  content: "\E13A";
  font-family: "Phosphor";
  font-weight: normal;
  position: absolute;
  right: 0.5em;                /* ← 右端固定 */
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  transition: transform .2s ease, color .2s ease;
}

/* ホバー時に少し動かす（PC） */
@media (hover: hover) {
  .nav-menu .drop-menu a:hover::after {
  transform: translateY(-50%) translateX(4px);
  color: #e32020;
  }
}


/* =========================================
  ▼ PCではハンバーガー/黒幕を無効化（1000px以上）
========================================= */
@media screen and (min-width: 1000px) {
  .hamburger {
    display: none;
  }
  .overlay {
    display: none !important;
  }
}

/* スマホ専用ブロック */
.sp-header-block {
  list-style: none;
}

/* PCでは非表示 */
@media screen and (min-width: 1000px){
  .sp-header-block {
    display: none;
  }
}

/* スマホでは縦並び */
@media screen and (max-width: 999px){
  .sp-header-block {
    width: 100%;
    padding: 0 0.5em;
    box-sizing: border-box;
  }
  .sp-header-block h3 {
	color:#461900;
    padding: 0;
	margin:0.2em 0;
	font-size:1.1em;
    font-family:
    "Hiragino Mincho ProN",
    "ヒラギノ明朝 ProN",
    "Yu Mincho",
    "游明朝",
    "MS PMincho",
    serif;
  }
  .sp-header-block .header_info{
	display:block;
	text-align:center;
  }
  .header_info p:last-of-type{
  position: relative;
  display: inline-block;
  padding: 0.5em 1.8em;
}

.header_info p:last-of-type::before,
.header_info p:last-of-type::after{
  content:"";
  position:absolute;
  top:50%;
  width:20px;
  height:1px;
  background:#555;
}

.header_info p:last-of-type::before{
  left:0;
  transform:translateY(-50%) rotate(60deg);
}

.header_info p:last-of-type::after{
  right:0;
  transform:translateY(-50%) rotate(-60deg);
}

  .sp-header-block .ham_inner_btn{
    margin-top: 1em;
	display:flex;
	gap:0.5em;
  }
  .inner_contact,
  .inner_line {
    position: relative;
    margin: 0;
    padding: 0.3em 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
	border-radius:5px;
  }
  .inner_contact {
    background-color: #ff8a2a;
  }
  .inner_line {
    background-color: #05c756;
  }
  .inner_contact p,
  .inner_line p {
    font-size: 1em;
    padding: 0;
    margin: 0;
    color: #fff;
    line-height: 1.2;
    font-weight: bold;
  }
  .sp-header-block .inner_contact p.num {
    position:relative;
	padding-left: 0.8em; 
  }
  .sp-header-block .inner_line p.line {
    position:relative;
	padding-left: 1em; 
  }
  .sp-header-block .inner_contact p.num::before,
  .sp-header-block .inner_line p.line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
  .sp-header-block .inner_contact p.num::before {
    width: 10px;
    height: 14px;
    background: url("../img/common/phone.png") center / contain no-repeat;
  }
  .sp-header-block .inner_line p.line::before {
    width: 15px;
    height: 20px;
    background: url("../img/common/line.png") center / contain no-repeat;
  }
  .sp-header-block p.catch {
    font-size:0.6em;
	font-weight: normal;
	padding:0;
  }
}

/* ==============================
   ▼ スマホ時：見出し風にする
================================ */
@media screen and (max-width: 999px){

  /* 見出し化 */
  .nav-menu .sp-heading > a{
    display:block;
    width:100%;
    padding:0.5em 1em;
    background-color:#461900;  /* 既存カラー維持 */
    color:#fff;
    font-weight:700;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,0.2);
    pointer-events:none;       /* ← クリック無効にする場合 */
	box-sizing: border-box;
  }

  /* 下に余白をつける */
  .nav-menu .sp-heading{
    margin-bottom:0.5em;
  }

}


