@charset "UTF-8";
/* サイト共通ヘッダー（スマホ: CSS チェックボックスドロワー / PC: フレックスバー） */
/* line 9, app/assets/stylesheets/header.scss */
header#site-header.p-header.phone-header,
header.pc-header.pc-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(60px + env(safe-area-inset-top, 0px));
  background: linear-gradient(135deg, #fe5b35 0%, #e54d28 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

/* line 25, app/assets/stylesheets/header.scss */
.header-emptiness {
  height: calc(60px + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
}

/* line 30, app/assets/stylesheets/header.scss */
.purchase-title-area {
  height: calc(60px + env(safe-area-inset-top, 0px));
  text-align: center;
}

/* line 35, app/assets/stylesheets/header.scss */
.purchase-title {
  height: 25px;
}

/* --- スマホヘッダー --- */
/* line 40, app/assets/stylesheets/header.scss */
.phone-header {
  display: block;
}

/* line 44, app/assets/stylesheets/header.scss */
.pc-header.pc-header-bar {
  display: none;
}

/* line 48, app/assets/stylesheets/header.scss */
.p-header__inner {
  position: relative;
  height: inherit;
  max-width: 1200px;
  margin: 0 auto;
}

/* チェックボックス（視覚のみ非表示・スクリーンリーダー用に保持） */
/* line 56, app/assets/stylesheets/header.scss */
.p-header__drawer-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* line 70, app/assets/stylesheets/header.scss */
.p-header__brand {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  /* バックドロップより下に置き、開いたときにマスクの下で消える */
  z-index: 1;
  line-height: 0;
  display: block;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* line 82, app/assets/stylesheets/header.scss */
#p-header-drawer:checked ~ .p-header__brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* line 88, app/assets/stylesheets/header.scss */
.p-header__brand img.logo {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* 背面マスク（ロゴ・帯より前面。ドロワーより後ろ） */
/* line 96, app/assets/stylesheets/header.scss */
.p-header__drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5;
  margin: 0;
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* line 110, app/assets/stylesheets/header.scss */
#p-header-drawer:checked ~ .p-header__drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

/* ハンバーガー（閉じているときのみ操作。開いたら × はドロワー内に任せて非表示） */
/* line 116, app/assets/stylesheets/header.scss */
.p-header__drawer-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 7;
  width: 48px;
  height: 48px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

/* line 135, app/assets/stylesheets/header.scss */
#p-header-drawer:checked ~ .p-header__drawer-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* line 141, app/assets/stylesheets/header.scss */
.p-header__drawer-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* line 145, app/assets/stylesheets/header.scss */
.p-header__drawer-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 24px;
}

/* line 154, app/assets/stylesheets/header.scss */
.p-header__drawer-icon span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.32s ease, opacity 0.24s ease, margin 0.24s ease;
  transform-origin: center;
}

/* line 164, app/assets/stylesheets/header.scss */
#p-header-drawer:checked ~ .p-header__drawer-toggle .p-header__drawer-icon span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

/* 開閉トグルは checked 時に非表示のため、アニメは見えないが閉じる際のちらつき防止に残す */
/* line 169, app/assets/stylesheets/header.scss */
#p-header-drawer:checked ~ .p-header__drawer-toggle .p-header__drawer-icon span:nth-child(2) {
  opacity: 0;
  margin: -9px 0 0;
  width: 0;
}

/* line 175, app/assets/stylesheets/header.scss */
#p-header-drawer:checked ~ .p-header__drawer-toggle .p-header__drawer-icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ドロワー */
/* line 180, app/assets/stylesheets/header.scss */
.p-header__nav {
  display: block;
  box-sizing: border-box;
  position: fixed;
  right: 0;
  top: 0;
  width: min(86vw, 320px);
  height: 100vh;
  height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  margin: 0;
  transform: translateX(100%);
  background: linear-gradient(180deg, #e54d28 0%, #c73f1a 100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.38s;
  pointer-events: none;
  visibility: hidden;
  /* バックドロップより前面（× やメニューが確実に操作できる） */
  z-index: 10;
  box-shadow: none;
  will-change: transform;
}

/* line 202, app/assets/stylesheets/header.scss */
#p-header-drawer:checked ~ .p-header__nav {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.22);
}

/* line 209, app/assets/stylesheets/header.scss */
.p-header__nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 1;
}

/* line 219, app/assets/stylesheets/header.scss */
.p-header__nav-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

/* line 226, app/assets/stylesheets/header.scss */
.p-header__drawer-close {
  width: 40px;
  height: 40px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  transition: background 0.2s ease;
}

/* line 242, app/assets/stylesheets/header.scss */
.p-header__drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* line 246, app/assets/stylesheets/header.scss */
.p-header__nav .nav-slide-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -moz-column-gap: 10px;
       column-gap: 10px;
  row-gap: 18px;
  justify-items: center;
  align-items: center;
  padding: 20px 14px 32px;
  box-sizing: border-box;
}

/* line 257, app/assets/stylesheets/header.scss */
.p-header__nav .nav-slide-menu a {
  display: block;
  line-height: 0;
}

/* line 262, app/assets/stylesheets/header.scss */
.p-header__nav .nav-slide-menu .header-menu-icon--takuhai {
  grid-column: 1;
  justify-self: center;
}

/* line 267, app/assets/stylesheets/header.scss */
.p-header__nav .nav-slide-menu .login-logo,
.p-header__nav .nav-slide-menu .takuhai-logo,
.p-header__nav .nav-slide-menu .purchase-logo,
.p-header__nav .nav-slide-menu .ec-logo {
  position: static !important;
  height: 52px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

/* line 278, app/assets/stylesheets/header.scss */
.purchase-logo:hover,
.login-logo:hover,
.takuhai-logo:hover,
.ec-logo:hover {
  opacity: 0.88;
}

/* ドロワー開閉中の背面スクロール（:has は Safari 15.4+ / 主要 Chromium） */
/* line 286, app/assets/stylesheets/header.scss */
html:has(#p-header-drawer:checked) {
  overflow: hidden;
}

/* --- PC ヘッダー --- */
/* line 291, app/assets/stylesheets/header.scss */
.pc-header-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  gap: 16px;
}

/* line 299, app/assets/stylesheets/header.scss */
.pc-header-bar__brand {
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  align-items: center;
}

/* line 306, app/assets/stylesheets/header.scss */
.pc-header-bar__brand img.logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

/* line 313, app/assets/stylesheets/header.scss */
.pc-header-bar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* line 322, app/assets/stylesheets/header.scss */
.pc-header-bar__icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* line 332, app/assets/stylesheets/header.scss */
.pc-header-bar__icon-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* line 337, app/assets/stylesheets/header.scss */
.pc-header-bar__icon-link img {
  height: 40px;
  width: auto;
  max-width: 100%;
}

@media screen and (min-width: 1120px) {
  /* line 344, app/assets/stylesheets/header.scss */
  .purchase-title {
    height: 40px;
  }
  /* line 348, app/assets/stylesheets/header.scss */
  .phone-header {
    display: none !important;
  }
  /* line 352, app/assets/stylesheets/header.scss */
  .pc-header.pc-header-bar {
    display: flex !important;
  }
}

/* line 357, app/assets/stylesheets/header.scss */
header#site-header.p-header.phone-header,
header.pc-header.pc-header-bar {
  background: linear-gradient(135deg, #fe5b35 0%, #e54d28 100%) !important;
}
