:root {
  --dpc-bg-start: #21180f;
  --dpc-bg-end: #151210;
  --dpc-active-bg: #ffb84d;
  --dpc-text: #fff7e9;
  --dpc-border: rgba(255, 176, 65, .24);
  --dpc-logo-width: 44px;
  --dpc-wrap: min(calc(100% - 32px), 1360px);
}

/* Only suppress Cocoon after our own header actually exists. */
body.dpc-header-enabled.dpc-header-ready #header-container,
body.dpc-header-enabled.dpc-header-ready #header,
body.dpc-header-enabled.dpc-header-ready #navi,
body.dpc-header-enabled.dpc-header-ready #navi-in { display: none !important; }
body.dpc-header-enabled.dpc-header-ready .content,
body.dpc-header-enabled.dpc-header-ready #content,
body.dpc-header-enabled.dpc-header-ready .container,
body.dpc-header-enabled.dpc-header-ready .main,
body.dpc-header-enabled.dpc-header-ready .wrap { margin-top: 0; }

.dpc-header, .dpc-header *, .dpc-header *::before, .dpc-header *::after,
.dpc-sidebar, .dpc-sidebar * { box-sizing: border-box; }
.dpc-header {
  position: relative !important; inset: auto !important; z-index: 9999;
  margin: 0 0 8px; border-bottom: 1px solid rgba(255, 173, 56, .55);
  background: #121110; color: #fff7e9; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
.dpc-header a { text-decoration: none; }
.dpc-header__wrap {
  width: var(--dpc-page-width, var(--dpc-wrap));
  max-width: 100%;
  margin: 0 auto;
  margin-left: var(--dpc-page-left, auto);
  margin-right: var(--dpc-page-right, auto);
}
.dpc-header__brand { position: relative; background: linear-gradient(105deg, #201a13 0%, #121110 48%, #18130e 100%); }
.dpc-header__brand-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 9px 0; }
.dpc-header__brand-link { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: #fff7e9; }
.dpc-header__logo-frame { display: block; flex: 0 0 auto; width: var(--dpc-logo-width); height: var(--dpc-logo-width); }
.dpc-header__logo { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; border: 0; border-radius: 0; background: transparent; animation: dpc-flower-turn 12s linear infinite; }
@keyframes dpc-flower-turn { to { transform: rotate(360deg); } }
.dpc-header__brand-text { display: block; min-width: 0; }
.dpc-header__company-ja { display: block; margin: 0; color: #fff5e5; font-size: clamp(23px, 2vw, 28px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dpc-header__company-en { display: block; margin-top: 4px; color: #f3b967; font-size: 9px; font-weight: 750; line-height: 1.2; letter-spacing: .28em; }
.dpc-header__tagline { display: block; margin-top: 4px; color: #c6b6a3; font-size: 11px; line-height: 1.35; }
.dpc-header__utility-right { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; flex: 0 0 auto; gap: 7px; }
.dpc-header__utility-link, .dpc-header__sidebar-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 36px; margin: 0; padding: 7px 11px; border: 1px solid #765127; border-radius: 7px;
  background: #241c13; color: #ffe2b5; font-family: inherit; font-size: 12px; line-height: 1.2;
  font-weight: 700; white-space: nowrap; cursor: pointer;
}
.dpc-header__utility-link:hover, .dpc-header__sidebar-toggle:hover { border-color: #ffc66d; background: #3a2916; color: #fff9f0; }
.dpc-header__icon { font-size: 15px; line-height: 1; }
.dpc-header__nav { position: relative; z-index: 30; overflow: visible; border-top: 1px solid var(--dpc-border); background: linear-gradient(90deg, var(--dpc-bg-start), var(--dpc-bg-end)); }
.dpc-header__menu { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; width: 100%; max-width: 100%; margin: 0; padding: 0; list-style: none; overflow: visible; }
.dpc-header__menu-item { position: relative; flex: 1 0 auto; min-width: 0; margin: 0; padding: 0; border-right: 1px solid rgba(255, 176, 65, .12); }
.dpc-header__menu-link { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 7px 15px; border-bottom: 2px solid transparent; color: var(--dpc-text); text-align: center; transition: background .16s ease, border-color .16s ease; }
.dpc-header__menu-item.is-current > .dpc-header__menu-link,
.dpc-header__menu-link:hover, .dpc-header__menu-link:focus-visible { border-bottom-color: var(--dpc-active-bg); background: rgba(255, 171, 47, .13); }
.dpc-header__menu-ja { display: block; color: var(--dpc-text); font-size: 13px; line-height: 1.3; font-weight: 750; letter-spacing: .01em; white-space: nowrap; }
.dpc-header__menu-en { display: block; margin-top: 3px; color: #ddc4a0; font-size: 9px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.dpc-header__chev { margin-left: 4px; color: #efb561; font-size: 10px; }
.dpc-header__submenu { display: none; position: absolute; left: 0; top: 100%; min-width: 210px; max-width: min(320px, 90vw); margin: 0; padding: 5px; border: 1px solid #79532a; border-top: 2px solid #e7a347; border-radius: 0 0 9px 9px; list-style: none; background: #211b14; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); z-index: 100000; }
.dpc-header__submenu .dpc-header__submenu { left: calc(100% - 2px); top: -6px; }
.dpc-header__menu-item:last-child > .dpc-header__submenu { left: auto; right: 0; }
.dpc-header__menu-item:last-child .dpc-header__submenu .dpc-header__submenu { left: auto; right: calc(100% - 2px); }
.dpc-header__submenu-item { position: relative; margin: 0; padding: 0; }
.dpc-header__menu-item:hover > .dpc-header__submenu,
.dpc-header__menu-item:focus-within > .dpc-header__submenu,
.dpc-header__submenu-item:hover > .dpc-header__submenu,
.dpc-header__submenu-item:focus-within > .dpc-header__submenu { display: block; }
.dpc-header__submenu-link { display: block; padding: 10px 11px; border-radius: 5px; }
.dpc-header__submenu-link:hover, .dpc-header__submenu-link:focus-visible { background: #3b2a17; }
.dpc-header__submenu-ja { display: block; color: #fff0d9; font-size: 13px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.dpc-header__submenu-en { display: block; margin-top: 3px; color: #d5b992; font-size: 10px; line-height: 1.35; }
.dpc-header__menu-empty { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #ffe5c2; font-size: 13px; line-height: 1.5; }
.dpc-header a:focus-visible, .dpc-header button:focus-visible, .dpc-sidebar button:focus-visible { outline: 2px solid #ffd899; outline-offset: -3px; }

/* Narrow layouts scroll in one row; open submenus stay inside that row. */
@media (max-width: 1024px) {
  .dpc-header { --dpc-wrap: calc(100% - 24px); }
  .dpc-header__brand-wrap { padding-left: 12px; padding-right: 12px; }
  .dpc-header__nav { overflow: hidden; }
  .dpc-header__nav > .dpc-header__wrap { padding: 0; overflow-x: auto !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #9b682d #1c1711; }
  .dpc-header__menu { display: inline-flex; flex-wrap: nowrap; width: max-content; min-width: 100%; max-width: none; }
  .dpc-header__menu-item { flex: 1 0 auto; }
  .dpc-header__menu-link { min-height: 44px; padding: 8px 13px; }
  .dpc-header__menu-item:hover > .dpc-header__submenu,
  .dpc-header__menu-item:focus-within > .dpc-header__submenu,
  .dpc-header__submenu-item:hover > .dpc-header__submenu,
  .dpc-header__submenu-item:focus-within > .dpc-header__submenu { display: none; }
  .dpc-header__menu-item.is-open > .dpc-header__submenu,
  .dpc-header__submenu-item.is-open > .dpc-header__submenu { display: block !important; }
  .dpc-header__submenu, .dpc-header__submenu .dpc-header__submenu { position: static; left: auto; right: auto; top: auto; min-width: 190px; width: max-content; max-width: 280px; margin: 0; box-shadow: none; z-index: auto; }
  .dpc-header__submenu .dpc-header__submenu { margin-left: 7px; min-width: 170px; border-left: 2px solid #b47b35; }
}
@media (max-width: 600px) {
  .dpc-header__brand-wrap { min-height: 64px; gap: 10px; padding: 9px 12px; }
  .dpc-header__brand-link { gap: 8px; }
  .dpc-header__logo-frame { width: min(var(--dpc-logo-width), 40px); height: min(var(--dpc-logo-width), 40px); }
  .dpc-header__company-ja { font-size: 23px; }
  .dpc-header__company-en { font-size: 8px; letter-spacing: .22em; }
  .dpc-header__utility-right { max-width: 46%; gap: 5px; }
  .dpc-header__utility-link, .dpc-header__sidebar-toggle { min-height: 34px; padding: 6px 8px; font-size: 11px; }
}
@media (max-width: 380px) {
  .dpc-header__brand-wrap { flex-wrap: wrap; gap: 8px; }
  .dpc-header__utility-right { margin-left: auto; max-width: 100%; }
}
@media (hover: none) and (pointer: coarse) {
  .dpc-header__menu-item.is-open > .dpc-header__submenu,
  .dpc-header__submenu-item.is-open > .dpc-header__submenu { display: block !important; }
}

/* Open dialogs remain above this header without changing their geometry. */
.dpc-header.dpc-header--behind-popup { z-index: 0 !important; pointer-events: none; }
.dpc-header.dpc-header--behind-popup .dpc-header__submenu { display: none !important; }
.dpc-header__sidebar-toggle, .dpc-header__sidebar-toggle[hidden], .dpc-sidebar[hidden] { display: none !important; }
@media (max-width: 834px) {
  .dpc-header__sidebar-toggle:not([hidden]) { display: inline-flex !important; }
}
.dpc-sidebar { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: flex-end; overscroll-behavior: contain; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
.dpc-sidebar__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 5, .65); touch-action: none; }
.dpc-sidebar__panel { position: relative; display: flex; flex-direction: column; width: min(92vw, 380px); height: 100%; max-height: 100dvh; min-height: 0; margin: 0; padding: 0; border-left: 1px solid #9c6b32; background: #faf7f1; color: #302315; box-shadow: -8px 0 30px rgba(0, 0, 0, .3); }
.dpc-sidebar__heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) 8px 12px; border-bottom: 1px solid #a87336; background: #21180f; color: #ffe7c6; font-size: 15px; line-height: 1.4; }
.dpc-sidebar__close { flex: 0 0 auto; min-width: 82px; min-height: 44px; margin: 0; padding: 6px 12px; border: 1px solid #a82032; border-radius: 6px; background: #c6293e; color: #fff; font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, sans-serif; cursor: pointer; }
.dpc-sidebar__content { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px calc(8px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) 8px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
#dpc-sidebar-panel #sidebar, #dpc-sidebar-panel #slide-in-sidebar { display: block !important; position: static !important; float: none !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: auto !important; margin: 0 !important; padding: 0 !important; transform: none !important; visibility: visible !important; }
#dpc-sidebar-panel .sidebar-scroll { position: static !important; width: auto !important; top: auto !important; }
@media (prefers-reduced-motion: reduce) {
  .dpc-header__logo { animation: none; }
  .dpc-header__menu-link { transition: none; }
}
