@charset "UTF-8";

/* ==========================================================
   共通（ecforce：ヘッダー・ハンバーガーメニュー・フッター）
========================================================== */

/* ==========================================================
   変数
   サイズはデザイン幅750px基準：min(750px時の値, vw換算値)
========================================================== */
.header,
.gnav,
.footer {
  --c-white: #fff;
  --c-footer: #4a342d;
  --c-nav: rgba(94, 68, 48, 0.8); /* #5e4430 / 80% */
  --fz-body: clamp(13px, 3.467vw, 26px);
  --fz-menu-main: clamp(17px, 4.533vw, 34px);
  --fz-menu-sub: clamp(12px, 3.2vw, 24px);
}

/* ----------------------------------------------------------
   【一旦非表示】PC で750pxより外側の背景色を #f7e8df にする指定
   使う場合は下の指定を囲んでいるコメントの開始・終了記号を削除する
---------------------------------------------------------- */
/*
html body {
  background-color: #f7e8df;
}

html body.u-color__bg--base,
html body .u-color__bg--base:has(#js-header, .page-top, .page-product) {
  background: #f7e8df !important;
}
*/

body.is-menu-open {
  overflow: hidden;
}

/* ==========================================================
   リセット（ヘッダー・メニュー・フッター内のみ）
   :where() で詳細度を0にし、各パーツの指定（.footer__nav など）を上書きしない
========================================================== */
:where(.header, .gnav, .footer) * {
  box-sizing: border-box;
}

:where(.header, .gnav, .footer) :where(p, h1, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ecforce テーマの見出し指定（h1〜h6 { font-family: "游ゴシック", serif; }）を打ち消し、ページのフォントを継承する
   詳細度はクラス1つ分なので、各パーツの font-family 指定（Josefin Sans など）は上書きしない */
.header :where(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
}

:where(.header, .footer) :where(img) {
  display: block;
}

:where(.header, .gnav, .footer) :where(a) {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

:where(.header, .gnav, .footer) :where(a:hover) {
  opacity: 0.7;
}

:where(.header, .gnav) :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ==========================================================
   ヘッダー
========================================================== */
/* 通常のページは本文の上に配置（本文と重ならない） */
.header {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* トップページ・商品詳細ページのみ、背景透明で本文の上に重ねる */
.header--overlay {
  position: absolute;
  top: 0;
  left: 0;
}

/* 中身は最大750pxで中央に配置 */
.header__inner {
  position: relative;
  max-width: 750px;
  height: min(120px, 16vw);
  margin: 0 auto;
}

.header__logo {
  position: absolute;
  top: min(41px, 5.467vw);
  left: 0;
  width: 100%;
}

.header__logo a {
  display: block;
  width: 25.6%;
  max-width: 192px;
  margin: 0 auto;
}

.header__logo img {
  width: 100%;
  max-width: 192px;
}

/* アイコン群の幅152px（28 + 24 + 42 + 24 + 34）を基準に割合指定 */
.header__icons {
  position: absolute;
  top: min(44px, 5.867vw);
  right: min(14px, 1.867vw);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15.789%;
  width: 20.267%;
  max-width: 152px;
}

/* カートアイコンは非表示（残りのアイコンは右端に寄せる） */
.header__cart {
  display: none;
}

.header__icons li:nth-child(1) { flex: 0 0 18.421%; }
.header__icons li:nth-child(2) { flex: 0 0 27.632%; }
.header__icons li:nth-child(3) { flex: 0 0 22.368%; }

.header__icons a,
.header__menu-btn {
  display: block;
  width: 100%;
}

.header__icons li:nth-child(1) img { width: 100%; max-width: 28px; }
.header__icons li:nth-child(2) img { width: 100%; max-width: 42px; }
.header__icons li:nth-child(3) img { width: 100%; max-width: 34px; }

/* ==========================================================
   ハンバーガーメニュー
========================================================== */
.gnav {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-nav);
  color: var(--c-white);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  overflow-y: auto;
}

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

.gnav__close {
  position: absolute;
  top: min(36px, 4.8vw);
  right: min(24px, 3.2vw);
  width: min(48px, 6.4vw);
  height: min(48px, 6.4vw);
}

.gnav__close::before,
.gnav__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-white);
}

.gnav__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.gnav__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.gnav__inner {
  width: min(400px, 53.333vw);
  padding: min(80px, 10.667vw) 0;
  text-align: center;
}

.gnav__main {
  padding-bottom: min(70px, 9.333vw);
  border-bottom: 1px solid var(--c-white);
}

.gnav__main li + li {
  margin-top: min(52px, 6.933vw);
}

.gnav__main a {
  display: inline-block;
  font-size: var(--fz-menu-main);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  white-space: nowrap;
}

.gnav__main span {
  margin-left: 1.2em;
  font-size: clamp(15px, 4vw, 30px);
}

.gnav__sub {
  padding-top: min(80px, 10.667vw);
}

.gnav__sub li + li {
  margin-top: min(62px, 8.267vw);
}

.gnav__sub a {
  font-size: var(--fz-menu-sub);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ==========================================================
   フッター
========================================================== */
.footer {
  padding: min(145px, 19.333vw) 0 min(125px, 16.667vw);
  background: var(--c-footer);
  color: var(--c-white);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fz-body);
  line-height: 1.8;
  text-align: center;
}

.footer__logo img {
  width: 26%;
  max-width: 195px;
  margin: 0 auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: min(28px, 3.733vw) min(58px, 7.733vw);
  max-width: 750px;
  margin: min(115px, 15.333vw) auto 0;
  padding: 0 min(30px, 4vw);
}

.footer__nav a {
  font-size: var(--fz-body);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.footer__sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: min(62px, 8.267vw);
  max-width: 750px;
  margin: min(120px, 16vw) auto 0;
}

.footer__sns li:nth-child(1) { flex: 0 0 5.733%; }
.footer__sns li:nth-child(2) { flex: 0 0 6.133%; }

.footer__sns li:nth-child(1) img { width: 100%; max-width: 43px; }
.footer__sns li:nth-child(2) img { width: 100%; max-width: 46px; }
