@charset "utf-8";
/* =====================
  サイトヘッダー (parts/header-area.php 専用)
===================== */

.p-header {
  position: relative;
  width: 100%;
  height: 100px;
  z-index: 700;
  display: flex;
  align-items: stretch;
}
.p-header.fixed-wrap.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  padding: 0 clamp(12px, 1.5vw, 24px);
}

/* スクロール固定時: 内包divを透明化してflex直下に展開 */
.p-header.is-fixed .p-header__right,
.p-header.is-fixed .p-header__top,
.p-header.is-fixed .p-header__nav-wrap {
  display: contents;
}

/* スクロール固定時: 木目背景を消す */
.p-header.is-fixed .p-header__bg {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* スクロール固定時: ロッド非表示 */
.p-header.is-fixed .p-header__rod {
  display: none;
}

/* スクロール固定時: 全子要素の absolute 解除 */
.p-header.is-fixed .p-header__logo,
.p-header.is-fixed .p-header__nav,
.p-header.is-fixed .p-header__tel,
.p-header.is-fixed .p-header__reserve {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  margin: 0;
}

/* ロゴ */
.p-header.is-fixed .p-header__logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  order: 1;
  transition: all 0.3s ease;
}
.p-header.is-fixed .p-header__logo img {
  width: auto;
  height: 100%;
}

/* 並び順: ロゴ → ナビ → TEL → WEB予約 */
.p-header.is-fixed .p-header__nav {
  margin-left: auto;
  padding-top: 0;
  order: 2;
}
.p-header.is-fixed .p-header__tel {
  order: 3;
}
.p-header.is-fixed .p-header__reserve {
  order: 4;
}
.p-header.is-fixed .p-header__menu {
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.p-header.is-fixed .p-header__item {
  flex: 0 0 auto;
}

/* リンク矩形 */
.p-header.is-fixed .p-header__link {
  aspect-ratio: auto;
  width: auto;
  height: auto;
  padding: 6px clamp(10px, 1.2vw, 20px);
}
.p-header.is-fixed .p-header__link:hover {
  transform: none;
  opacity: 0.85;
}
.p-header.is-fixed .p-header__noren {
  display: none;
}

/* ナビ文字: 横書き */
.p-header.is-fixed .p-header__label {
  writing-mode: horizontal-tb;
  -webkit-writing-mode: horizontal-tb;
  font-feature-settings: normal;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  letter-spacing: 0.06em;
  padding: 0;
  white-space: nowrap;
}

/* アクティブ項目は黄色維持 */
.p-header.is-fixed .p-header__item.is-active .p-header__label {
  color: #fcaf17;
}

/* ナビ項目間の縦線 */
.p-header.is-fixed .p-header__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: #333;
  opacity: 0.4;
  pointer-events: none;
}

/* TEL */
.p-header.is-fixed .p-header__tel {
  flex-shrink: 0;
}
.p-header.is-fixed .p-header__tel-label,
.p-header.is-fixed .p-header__tel-num {
  color: #333;
}
.p-header.is-fixed .p-header__tel-icon svg,
.p-header.is-fixed .p-header__tel-icon svg path {
  fill: #333;
}

/* WEB予約 */
.p-header.is-fixed .p-header__reserve {
  flex-shrink: 0;
}

/* 木目背景 */
.p-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.p-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ロゴ (ヘッダー下にオーバーフロー) */
.p-header__logo {
  position: absolute;
  left: 35px;
  top: 7px;
  width: 327px;
  height: 193px;
  margin: 0;
  z-index: 2;
}
.p-header__logo-link {
  display: block;
  width: 100%;
  height: 100%;
}
.p-header__logo-link:hover {
  opacity: 0.85;
}
.p-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* ロゴ切替: 通常時はdefault、スクロール後はfixed */
.p-header__logo-img--fixed {
  display: none;
}
.p-header.is-fixed .p-header__logo-img--default {
  display: none;
}
.p-header.is-fixed .p-header__logo-img--fixed {
  display: block;
}

/* 右側コンテナ */
.p-header__right {
  position: absolute;
  top: 0;
  right: 0;
  left: 600px;
  height: 100%;
  z-index: 2;
}

/* 上部 (TEL + WEB予約) */
.p-header__top {
  position: absolute;
  right: 20px;
  top: 0;
  height: 71px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* TEL */
.p-header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.p-header__tel:hover {
  opacity: 0.85;
  color: #fff;
}
.p-header__tel-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
}
.p-header__tel-icon svg {
  width: 100%;
  height: 100%;
}
.p-header__tel-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
}
.p-header__tel-label {
  font-size: 14px;
  letter-spacing: 0.06em;
}
.p-header__tel-num {
  font-size: 26px;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* WEB予約 */
.p-header__reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #fcaf17;
  color: #fff;
  text-decoration: none;
  border-radius: 96px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.06em;
  transition: 0.25s ease;
  white-space: nowrap;
}
.p-header__reserve:hover {
  opacity: 1;
  color: #fff;
  background: #783b00;
}
.p-header__reserve-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}
.p-header__reserve-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ナビ + ロッド (下にオーバーフロー) */
.p-header__nav-wrap {
  position: absolute;
  right: 28px;
  top: 80px;
  width: clamp(560px, 53.5vw, 770px);
  z-index: 1;
}
.p-header__rod {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 9px;
}
.p-header__rod img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.p-header__nav {
  padding-top: 5px;
}
.p-header__menu {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.p-header__item {
  flex: 1 1 0;
  position: relative;
  text-align: center;
}
.p-header__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 133 / 176;
  text-decoration: none;
  transition: 0.35s ease;
}
.p-header__link:hover {
  opacity: 0.8;
  transform: translateY(4px);
}
.p-header__noren {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.p-header__label {
  position: relative;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: upright;
  -webkit-text-orientation: upright;
  font-feature-settings: "vert" 1;
  font-family: "shinryu", sans-serif;
  font-size: clamp(18px, 1.667vw, 24px);
  color: #333;
  letter-spacing: 0.06em;
  line-height: 1.1;
  z-index: 1;
  padding-top: 11%;
  font-weight: 600;
}
.p-header__item.is-active .p-header__label {
  color: #fcaf17;
}

/* ハンバーガーボタン (SPのみ表示) */
.p-header__menubtn {
  display: none;
}

/* =====================
  タブレット
===================== */
@media screen and (max-width: 1280px) {
  .p-header__top {
    gap: 12px;
  }
  .p-header__tel-num {
    font-size: 22px;
  }
  .p-header__reserve {
    font-size: 16px;
    padding: 10px 16px;
  }
  .p-header__right {
    left: 540px;
  }
}

@media screen and (max-width: 1100px) {
  .p-header__nav-wrap {
    right: 16px;
    width: clamp(440px, 56vw, 620px);
  }
  .p-header__label {
    font-size: 18px;
  }
}

/* =====================
  スマホ
===================== */
@media screen and (max-width: 820px) {
  /* SP: ヘッダー常時固定 (is-fixed には依存しない) */
  body {
    padding-top: 50px;
  }
  .p-header {
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 700;
  }
  .p-header__logo {
    left: 18px;
    top: 7px;
    width: 121px;
    height: 72px;
    z-index: 702;
  }
  .p-header__logo-img--default {
    height: 100%;
    width: auto;
  }
  .p-header.is-fixed .p-header__bg {
    opacity: 1;
  }
  .p-header.is-fixed .p-header__logo-img--default {
    display: block;
  }

  /* メニューコンテナ: スライドイン (hamburger.cssと連動) */
  .p-header__right {
    /* hamburger.css の #main-menu-container ルールが上書き */
    padding: 80px 20px 40px;
    gap: 32px;
  }

  /* メニュー内: 全absolute解除 */
  .p-header__right .p-header__top,
  .p-header__right .p-header__nav-wrap,
  .p-header__right .p-header__tel,
  .p-header__right .p-header__reserve,
  .p-header__right .p-header__nav {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    width: auto;
    padding: 0;
  }

  /* TEL + WEB予約 を下部に */
  .p-header__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: auto;
    order: 2;
  }

  /* ナビ縦リスト */
  .p-header__nav-wrap {
    width: 100%;
    max-width: 320px;
    order: 1;
  }
  .p-header__rod {
    display: none;
  }
  .p-header__menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .p-header__item {
    flex: 0 0 auto;
    width: 100%;
    border-bottom: 1px solid #d8c79a;
  }
  .p-header__item:first-child {
    border-top: 1px solid #d8c79a;
  }
  .p-header__link {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    padding: 16px 12px;
    justify-content: center;
  }
  .p-header__noren {
    display: none;
  }
  .p-header__label {
    writing-mode: horizontal-tb;
    -webkit-writing-mode: horizontal-tb;
    font-feature-settings: normal;
    font-size: 18px;
    color: #333;
    padding: 0;
    letter-spacing: 0.06em;
  }
  .p-header__item.is-active .p-header__label {
    color: #fcaf17;
  }

  /* TEL */
  .p-header__tel {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .p-header__tel-label,
  .p-header__tel-num {
    color: #333;
  }
  .p-header__tel-icon svg,
  .p-header__tel-icon svg path {
    fill: #333;
  }
  .p-header__tel-num {
    font-size: 22px;
  }

  /* WEB予約 */
  .p-header__reserve {
    font-size: 18px;
    padding: 12px 28px;
  }

  /* スクロール固定時の上書き (SP用) */
  .p-header.is-fixed {
    display: flex;
    background: rgba(255, 255, 255, 0.85);
    padding: 0;
    align-items: center;
  }
  .p-header.is-fixed .p-header__right {
    /* SP固定時もメニュー扱い */
    flex-direction: column;
    justify-content: center;
  }
  body .p-header__right .p-header__reserve {
    width: 220px;
    justify-content: center;
    padding: 12px 0;
  }
}
