/* ============================================================
   Rakuzen Theme - Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;1,400&family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
  --color-base: #FFFFFF;
  --color-main: #8FAF8C;
  --color-accent: #C4848E;
  --color-text: #333333;
  --color-text-light: #3A3028;
  --color-footer-bg: #FAF6F1;
  --font-ja: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  --font-en: "Bodoni Moda", serif;
  --header-height: 80px;
  --max-width: 1400px;
}

/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-ja);
  background-color: var(--color-base);
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.15em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

img { max-width: 100%; display: block; }

/* ============================================================
   EC-CUBE デフォルトスタイル上書き
   ============================================================ */
.ec-layoutRole { padding-top: var(--header-height); }
.ec-layoutRole .ec-layoutRole__contents { max-width: 100%; }

/* FixedPage / 下層ページ: ec-layoutRole__main の余白をリセットして全幅レイアウトを可能に */
.kiwada-fixed-page-full .ec-layoutRole__main,
.rz-fullwidth-page .ec-layoutRole__main,
.collection_page .ec-layoutRole__main {
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
}
.container {
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}
@media (max-width: 768px) {
  .container { padding: 0 1.5rem !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
.rz-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.rz-header.is-scrolled {
  padding: 1rem 2.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.rz-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* Logo */
.rz-header__logo a {
  display: flex;
  align-items: center;
}

.rz-header__logo img {
  height: 40px;
  width: auto;
}

.rz-header__logo-text {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--color-text);
}

/* Desktop Nav */
.rz-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.rz-header__nav-list {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rz-header__nav-list a {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.7;
  font-weight: 600;
  transition: opacity 0.3s;
}

.rz-header__nav-list a:hover { opacity: 1; }

/* Icons */
.rz-header__icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-left: 1px solid #EEE;
  padding-left: 2rem;
}

.rz-header__icons a {
  color: var(--color-text);
  opacity: 0.7;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.rz-header__icons a:hover { opacity: 1; }

.rz-cart-icon { position: relative; }

.rz-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #8FAF8C;
  color: #FFF;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

/* Hamburger (mobile only) */
.rz-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  width: 60px;
  align-items: center;
  justify-content: flex-start;
}

/* Mobile cart (mobile only) */
.rz-header__mobile-cart {
  display: none;
  width: 60px;
  justify-content: flex-end;
  align-items: center;
}

.rz-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.rz-icon--sm {
  width: 18px;
  height: 18px;
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.rz-drawer-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}

.rz-drawer-overlay.is-open { display: block; }

.rz-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100%;
  background-color: var(--color-base);
  z-index: 201;
  padding: 2rem;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rz-drawer.is-open { right: 0; }

.rz-drawer__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
}

.rz-drawer__nav {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 4rem);
}

.rz-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rz-drawer__list a {
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.rz-drawer__list .is-official { color: #8FAF8C; }

.rz-drawer__bottom {
  margin-top: auto;
  border-top: 1px solid #EEE;
  padding-top: 2rem;
}

.rz-drawer__bottom a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.rz-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text);
  padding: 5rem 2rem 4rem;
  text-align: center;
  width: 100%;
  margin: 0;
}

.rz-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.rz-footer__logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.rz-footer__logo img {
  height: 50px;
  object-fit: contain;
  filter: none;
}

.rz-footer__logo-text {
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: var(--color-text);
}

.rz-footer__nav { margin-bottom: 4rem; }

.rz-footer__nav-list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.rz-footer__nav-list a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.15em;
  color: inherit;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.rz-footer__nav-list a:hover { opacity: 1; }

.rz-footer__legal {
  margin-bottom: 3rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 3rem;
}

.rz-footer__legal-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.rz-footer__legal-list a {
  font-family: var(--font-ja);
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.05em;
  color: inherit;
  transition: opacity 0.3s;
}

.rz-footer__legal-list a:hover { opacity: 0.9; }

.rz-footer__copy {
  font-family: var(--font-en);
  font-size: 0.7rem;
  opacity: 0.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .rz-header { padding: 1rem 1.5rem; }
  .rz-header__nav { display: none; }
  .rz-hamburger { display: flex; }
  .rz-header__mobile-cart { display: flex; }

  .rz-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .rz-header__logo img { height: 30px; }

  .rz-footer__nav-list { gap: 1.5rem; }
  .rz-footer__legal-list { gap: 1rem; }
}
