@charset "UTF-8";
/* ==========================================================================
   ほぼチカ サイト共通：ヘッダー / メニュー / フッター / ページトップ
   index・商品ページなど全ページで読み込みます（base.css の後に読み込む）
   ========================================================================== */

/* ------------------------------------------
   フォント
   ページごとに変えるときは、HTML側で同じセレクタに font-family を書いて上書きする
------------------------------------------ */
/* 見出し・ボタン */
.hc-menu-list a,
.hc-menu-sublist a,
.hc-footer-links a,
.hc-footer-sns p {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
}
/* 数字・英字 */
.hc-footer-copyright {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
}

/* ------------------------------------------
   ヘッダー
------------------------------------------ */
/* 読み込み前もヘッダーの高さを確保して、表示のガタつきを防ぐ */
[data-component="header"] {
  display: block;
  height: calc(var(--header-height) + 1px);
}
.hc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-bg-header);
  box-shadow: 0 1px 1px rgba(146, 146, 146, 0.3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
/* スクロールしてから出すヘッダー（<html data-header="scroll"> のページ。js/layout.js）
   最初は画面の上に隠しておき、少しスクロールしたら .is-header-shown で下ろす。
   隠れている間も Tab でフォーカスが入れば出す。メニューを開いている間も出したまま
   ※ :focus-within だと、タップ・クリックでメニューを閉じたあと ≡ ボタンにフォーカスが残り、
     ページの上まで戻っても出たままになる。キーボードで操作したとき（:focus-visible）だけにする
     （タップで閉じたときにスクリプトで戻したフォーカスは .is-pointer-focus。js/layout.js） */
[data-header="scroll"] [data-component="header"] {
  height: 0;
}
[data-header="scroll"] .hc-header {
  position: fixed;
  left: 0;
  right: 0;
  transform: translateY(calc(-100% - 4px));  /* 影も見えないところまで上げる */
  transition: transform 0.35s ease;
}
[data-header="scroll"].is-header-shown .hc-header,
[data-header="scroll"].is-menu-open .hc-header,
[data-header="scroll"] .hc-header:has(:focus-visible:not(.is-pointer-focus)) {
  transform: none;
}
.hc-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 10px;  /* ロゴを画面の真ん中にするため左右同じにする */
}
.hc-header-hobonichi {
  justify-self: start;
  display: flex;
  color: var(--color-text);
}
/* SPは「ほ」マーク、PCは「ほぼ日」ロゴ */
.hc-header-hobonichi svg {
  width: 19px;
  height: 19px;
}
.hc-header-hobonichi .icon-hobonichi {
  display: none;
}
.hc-header-logo img {
  width: auto;
  height: 40px;
}
.hc-header-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: -2px;  /* アイコンは右端から 8px の位置に置く */
}
.hc-header-icons a,
.hc-header-icons button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}
.hc-header-icons svg {
  width: 18px;
  height: 18px;
}
.hc-header-icons .hc-header-menu .icon-close {
  width: 15px;
}
/* メニューを開いているときは ≡ を × に切り替える */
.hc-header-menu .icon-close,
.is-menu-open .hc-header-menu .icon-menu {
  display: none;
}
.is-menu-open .hc-header-menu .icon-close {
  display: block;
}
@media (min-width: 769px) {
  .hc-header-inner {
    padding: 0 28px;
  }
  .hc-header-icons {
    margin-right: -8px;  /* アイコンは右端から 20px の位置に置く */
  }
  .hc-header-hobonichi .icon-hobo {
    display: none;
  }
  .hc-header-hobonichi .icon-hobonichi {
    display: block;
    width: 44px;
    height: 20px;
  }
  .hc-header-logo img {
    height: 54px;
  }
  .hc-header-icons a,
  .hc-header-icons button {
    min-width: 44px;
  }
  .hc-header-icons svg {
    width: 28px;
    height: 28px;
  }
  .hc-header-icons .hc-header-menu .icon-close {
    width: 20px;
  }
  /* メニューを開いている間は、下のパネルとつながるように白くする（ふだんは少し透ける） */
  .is-menu-open .hc-header {
    background-color: var(--color-bg-panel);
  }
}

/* ------------------------------------------
   メニュー（SP：右からのドロワー / PC：ヘッダー下のパネル）
------------------------------------------ */
.is-menu-open {
  overflow: hidden;
}
.hc-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  transition: visibility 0s 0.3s;
}
/* タップ・クリックで開閉したときにスクリプトで移したフォーカスは枠を出さない（js/layout.js） */
.is-pointer-focus:focus-visible {
  outline: none;
}
.hc-menu.is-open {
  visibility: visible;
  transition: none;
}
.hc-menu-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}
.hc-menu.is-open .hc-menu-overlay {
  opacity: 1;
}
.hc-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(calc(100% - 20px), 400px);
  height: 100%;
  overflow-y: auto;
  padding: 24px 40px 48px;
  background-color: var(--color-bg-panel);
  color: #000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.hc-menu.is-open .hc-menu-panel {
  transform: none;
}
.hc-menu-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}
.hc-menu-close svg {
  width: 22px;
  height: 22px;
}
.hc-menu-label {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: var(--font-light-weight);
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: -4px;
}
.hc-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  color: #000;
  font-weight: var(--font-bold-weight);
  font-size: 18px;
  line-height: 1.5;
}
.hc-menu-list svg {
  width: 16px;
  height: 16px;
  color: #c4c4c4;
}
.hc-menu-sub {
  margin-top: 28px;
  padding-top: 40px;
  border-top: 1px solid #eaeaea;
}
.hc-menu-sublist {
  margin-top: 8px;
}
.hc-menu-sublist a {
  display: block;
  padding: 10px 0;
  color: #000;
  font-weight: var(--font-bold-weight);
  font-size: 14px;
  line-height: 1.5;
}
.hc-menu-sublist .hc-menu-sublist-store {
  font-size: 14px;
}
@media (min-width: 769px) {
  .hc-menu {
    top: var(--header-height);
    z-index: 40;
  }
  .hc-menu-overlay {
    background-color: rgba(0, 0, 0, 0.3);
  }
  .hc-menu-panel {
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    padding: 0;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hc-menu.is-open .hc-menu-panel {
    opacity: 1;
  }
  .hc-menu-close {
    display: none;
  }
  .hc-menu-inner {
    display: grid;
    grid-template-columns: 1fr minmax(228px, max-content);  /* 右列はリンク名が1行に収まる幅まで広げる */
    max-width: calc(1150px + var(--gutter) * 2);
    margin: 0 auto;
    padding: 40px var(--gutter) 40px;
  }
  .hc-menu-brand {
    padding-right: 48px;
  }
  .hc-menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    column-gap: 48px;
  }
  .hc-menu-list a {
    font-size: 20px;
    padding: 11px 0;
  }
  .hc-menu-sub {
    margin-top: 0;
    padding: 0 0 0 48px;
    border-top: 0;
    border-left: 1px solid #eaeaea;
  }
  /* 左列（20px）と1項目目の文字の上端を揃える */
  .hc-menu-sublist {
    margin-top: 4px;
  }
  .hc-menu-sublist a {
    padding: 8px 0;
    white-space: nowrap;
  }
}

/* ------------------------------------------
   フッター
------------------------------------------ */
.hc-footer {
  margin-top: 0;
  padding: 40px 0 32px;
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 16px;
  line-height: 1.4;
}
.hc-footer a {
  color: var(--color-footer-text);
}
.hc-footer-inner {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.hc-footer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hc-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--font-bold-weight);
}
.hc-footer-links svg {
  width: 20px;
  height: 20px;
}
/* SPではメールを先頭に */
.hc-footer-mail {
  order: -1;
}
.hc-footer-sns {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dotted rgba(255, 255, 255, 0.4);
}
.hc-footer-sns p {
  font-weight: var(--font-bold-weight);
  font-size: 12px;
  letter-spacing: 0;
}
.hc-footer-sns ul {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hc-footer-sns a {
  display: flex;
}
.hc-footer-sns svg {
  width: 26px;
  height: 26px;
}
.hc-footer-bottom {
  margin-top: 28px;
  padding-top: 32px;
  border-top: 1px dotted rgba(255, 255, 255, 0.4);
}
.hc-footer-company {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  font-weight: var(--font-light-weight);
}
.hc-footer-copyright {
  margin-top: 32px;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0;
}
@media (min-width: 769px) {
  .hc-footer {
    padding: 44px 0 36px;
    font-size: 14px;
  }
  .hc-footer-inner {
    max-width: calc(var(--container-width) + var(--gutter) * 2);
    margin: 0 auto;
    padding-left: calc(var(--gutter) + 20px);
    padding-right: calc(var(--gutter) + 20px);
  }
  .hc-footer-links {
    flex-direction: row;
    gap: 48px;
  }
  .hc-footer-mail {
    order: 0;
  }
  .hc-footer-sns {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
  }
  .hc-footer-sns svg {
    width: 22px;
    height: 22px;
  }
  .hc-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
  }
  .hc-footer-company {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    font-size: 12px;
  }
  .hc-footer-company li + li::before {
    content: "|";
    margin: 0 16px;
    opacity: 0.6;
  }
  .hc-footer-copyright {
    margin-top: 0;
  }
}

/* ------------------------------------------
   戻る・進むで来たときの幕（js/restore.js）
   組み立て途中の画面を白い幕で隠し、できあがったらふわっと消す
------------------------------------------ */
html.is-restoring::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: #fff;
  transition: opacity 0.4s;
}
html.is-restored::before {
  opacity: 0;
  pointer-events: none;
}
