@charset "UTF-8";
/* ==========================================================================
   あかね工房 ヘッダーパーツ
   - このファイル単体（＋Bootstrap 4.1.3）で表示が完結するよう、
     他パーツのCSSに依存しない構成にしています
   - モバイルファースト（min-width のみで上書き）
   - ブレイクポイントは Bootstrap 4.1.3 に準拠（md:768 / lg:992 / xl:1200）
   - 要素セレクタ・id セレクタは使用しない
   - 例外：CMSの制約で class を付与できない <a>（<p class="..."><a></a></p> 形式）
     のみ、「親pのclass + a」で色・下線・クリック範囲を指定
     （例外：CMSが生成する #root のみ。class を付与できないため）
   ========================================================================== */

/* --------------------------------------------------------------------------
   :root：タッチ端末で左右にドラッグしたときの弾むスクロールを止める
   （ページの外側に固定背景 .c-fixed-bg が見えてしまうため）
   上下は止めない（Android Chrome の「引っぱって更新」を残すため）
   スクロールするのは <html> なので、要素セレクタを使わず :root で指定
   -------------------------------------------------------------------------- */
:root {
  overscroll-behavior-x: none;
}

/* --------------------------------------------------------------------------
   #root：固定ヘッダーの高さ分だけ下げる
   縦長の画面でもフッターの下に隙間ができないよう、最低でも画面の高さにして
   縦並びの flex にする（伸ばす側の指定は style.css の .l-content）
   -------------------------------------------------------------------------- */
#root {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 72px;
}

@media (min-width: 992px) {
  #root {
    padding-top: 94px;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.c-header {
  position: fixed;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  color: #000;
  -webkit-font-smoothing: antialiased;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  padding: 12px 16px;
}

/* 背景のすりガラスは疑似要素に持たせる
   （.c-header 自体に backdrop-filter を付けると、Chrome ではヘッダー外へはみ出す
     サブメニューが薄く描画されるため） */
.c-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.c-header__logo {
  display: block;
  flex-shrink: 0;
}

.c-header__logo-img {
  display: block;
  width: 144px;
  height: auto;
}

.c-header__nav {
  display: none;
}

.c-header__link {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  white-space: nowrap;
}

.c-header__link a {
  color: #000;
  text-decoration: none;
}

.c-header__link a:hover {
  color: #d93300;
  text-decoration: none;
}

@media (min-width: 992px) {
  .c-header {
    height: 94px;
    padding: 16px 32px;
  }

  .c-header__logo-img {
    width: 200px;
  }
}

@media (min-width: 1200px) {
  .c-header__nav {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-left: auto;
    margin-right: 24px;
  }
}


/* お問い合わせボタン */
.c-header__contact {
  flex-shrink: 0;
  margin: 0;
  border-radius: 24px;
  background-color: #be462b;
  font-size: 12px;
  font-weight: 700;
  line-height: 110%;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.c-header__contact:hover {
  opacity: 0.8;
}

/* クリック範囲をボタン全体にするため、余白は a 側に持たせる */
.c-header__contact a {
  display: block;
  padding: 8px 24px;
  color: #fff;
  text-decoration: none;
}

.c-header__contact a:hover {
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   作品メニュー（ホバーで宮崎陶里作品／宮崎康平作品を表示）
   - 親項目は p のみ（リンクなし）。遷移すると誤解されないよう cursor は既定のまま
   - 子リンクにキーボードでフォーカスしたときも :focus-within で表示
   -------------------------------------------------------------------------- */
.c-header__dropdown {
  position: relative;
}

.c-header__link--parent {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: default;
}

/* 下向きの小さな矢印 */
.c-header__link--parent::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.c-header__dropdown:hover .c-header__link--parent,
.c-header__dropdown:focus-within .c-header__link--parent {
  color: #d93300;
}

.c-header__dropdown:hover .c-header__link--parent::after,
.c-header__dropdown:focus-within .c-header__link--parent::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.c-header__submenu {
  position: absolute;
  top: calc(100% + 37px); /* ヘッダー下端に揃える（(94 - 文字高20) / 2） */
  left: 50%;
  min-width: 180px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s, transform 0.2s;
}

/* 親項目からサブメニューまでの隙間でホバーが切れないための当たり判定 */
.c-header__submenu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 37px;
}

.c-header__dropdown:hover .c-header__submenu,
.c-header__dropdown:focus-within .c-header__submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.c-header__sublink {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  white-space: nowrap;
}

.c-header__sublink a {
  display: block;
  padding: 12px 24px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.c-header__sublink a:hover,
.c-header__sublink a:focus {
  background-color: rgba(182, 165, 157, 0.15);
  color: #d93300;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   ハンバーガーメニュー（1200px 未満）
   - 開閉は nav.js：.c-header と .c-header__drawer に .is-open、<html> に .is-drawer-open を付与
   - ホバー表現はマウス操作を想定した 992px 以上のみ
   -------------------------------------------------------------------------- */
.is-drawer-open {
  overflow: hidden;
}

.c-header__contact {
  margin-left: auto;
}

/* 開閉ボタン：2本線 + MENU / CLOSE */
.c-header__toggle {
  display: block;
  flex-shrink: 0;
  width: 44px;
  margin-left: 12px;
  padding: 4px 0;
  color: #2c2c2c;
  text-align: center;
  text-decoration: none;
}

.c-header__toggle:hover {
  color: #2c2c2c;
  text-decoration: none;
}

.c-header__toggle-lines {
  position: relative;
  width: 26px;
  height: 8px;
  margin: 0 auto;
}

.c-header__toggle-lines::before,
.c-header__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #2c2c2c;
  transition: top 0.3s ease, transform 0.3s ease;
}

.c-header__toggle-lines::before {
  top: 0;
}

.c-header__toggle-lines::after {
  top: 6.5px;
}

.c-header.is-open .c-header__toggle-lines::before {
  top: 3.25px;
  transform: rotate(30deg);
}

.c-header.is-open .c-header__toggle-lines::after {
  top: 3.25px;
  transform: rotate(-30deg);
}

.c-header__toggle-text {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.08em;
}

/* メニューパネル：ヘッダー直下から画面下端まで
   CMS では .c-header の外に出力されるため、パネル自身に z-index と .is-open を持たせる
   （.c-header と同じ 1000。オンラインショップ追従ボタン 90 より手前） */
.c-header__drawer {
  position: fixed;
  z-index: 1000;
  top: 72px;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.c-header__drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.c-header__drawer-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

/* メニュー項目：英字ラベル + 日本語 */
.c-header__drawer-link {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  color: #000;
  text-decoration: none;
}

.c-header__drawer-link:hover {
  color: #000;
  text-decoration: none;
}

.c-header__drawer-en {
  flex: 0 0 104px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 150%;
  color: #b6a59d;
}

.c-header__drawer-ja {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 150%;
  transition: color 0.2s;
}

/* 作品：親項目（リンクなし）+ 子リンク */
.c-header__drawer-group {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.c-header__drawer-link--parent {
  padding-bottom: 6px;
  border-bottom: 0;
}

.c-header__drawer-sub {
  margin: 0;
  padding-left: 124px; /* 4 + 英字ラベル104 + 16 */
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
}

.c-header__drawer-sub a {
  display: block;
  padding: 6px 0;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

.c-header__drawer-sub a::before {
  content: "―";
  margin-right: 8px;
  color: #b6a59d;
}

/* オンラインショップ */
.c-header__drawer-shop {
  display: block;
  margin-top: 32px;
  padding: 16px;
  background-color: #be462b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.c-header__drawer-shop:hover {
  color: #fff;
  text-decoration: none;
}

.c-header__drawer-shop-en {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: 0.05em;
}

.c-header__drawer-shop-ja {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 140%;
}

/* 住所・営業時間 */
.c-header__drawer-info {
  margin-top: 24px;
}

.c-header__drawer-text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 170%;
}

@media (min-width: 768px) {
  .c-header__drawer-inner {
    padding: 40px 24px 64px;
  }

  .c-header__drawer-ja {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  .c-header__toggle {
    margin-left: 24px;
  }

  .c-header__drawer {
    top: 94px;
  }

  .c-header__drawer-link:hover .c-header__drawer-ja,
  .c-header__drawer-sub a:hover {
    color: #d93300;
  }

  .c-header__drawer-shop:hover {
    background-color: #a83b23;
  }
}

/* PC：通常メニューを表示し、ハンバーガーは使わない */
@media (min-width: 1200px) {
  .c-header__contact {
    margin-left: 0;
  }

  .c-header__toggle,
  .c-header__drawer {
    display: none;
  }
}
