.entry-content:has(.dp-shell),
.entry-content:has(.dp-login-page),
.wp-block-post-content:has(.dp-shell),
.wp-block-post-content:has(.dp-login-page),
.wp-site-blocks main:has(.dp-shell),
.wp-site-blocks main:has(.dp-login-page) {
  max-width: none !important;
}

body:has(.dp-shell) .wp-site-blocks > header,
body:has(.dp-shell) .wp-site-blocks > footer,
body:has(.dp-login-page) .wp-site-blocks > header,
body:has(.dp-login-page) .wp-site-blocks > footer,
body:has(.dp-shell) .wp-block-post-title,
body:has(.dp-login-page) .wp-block-post-title {
  display: none !important;
}

body:has(.dp-shell) .wp-site-blocks,
body:has(.dp-login-page) .wp-site-blocks {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:has(.dp-shell) .wp-site-blocks > main,
body:has(.dp-login-page) .wp-site-blocks > main,
body:has(.dp-shell) .wp-site-blocks main > .wp-block-group,
body:has(.dp-login-page) .wp-site-blocks main > .wp-block-group,
body:has(.dp-shell) .wp-site-blocks main .wp-block-post-content,
body:has(.dp-login-page) .wp-site-blocks main .wp-block-post-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body:has(.dp-shell) .wp-site-blocks .has-global-padding,
body:has(.dp-login-page) .wp-site-blocks .has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:has(.dp-shell) .wp-site-blocks .alignfull,
body:has(.dp-login-page) .wp-site-blocks .alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.entry-content:has(.dp-shell) > *,
.entry-content:has(.dp-login-page) > *,
.wp-block-post-content:has(.dp-shell) > *,
.wp-block-post-content:has(.dp-login-page) > * {
  max-width: none !important;
}

.dp-login-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 32px);
  padding: 40px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 230, 231, 0.45)),
    #f6f4f1;
  color: #2f2b28;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.dp-login-card {
  width: min(480px, 100%);
  padding: 34px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(49, 39, 31, 0.1);
}

.dp-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.dp-login-brand .dp-brand-mark {
  color: #fff;
}

.dp-login-brand strong {
  display: block;
  font-size: 22px;
}

.dp-login-brand small {
  display: block;
  color: #756c64;
  font-size: 12px;
}

.dp-login-copy h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.35;
}

.dp-login-copy p:last-child {
  margin-bottom: 24px;
  color: #756c64;
}

.dp-login-page .login-username,
.dp-login-page .login-password,
.dp-login-page .login-remember,
.dp-login-page .login-submit {
  margin: 0 0 16px;
}

.dp-login-page label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.dp-login-page input[type="text"],
.dp-login-page input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #f8f5f2;
  color: #2f2b28;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(76, 52, 43, 0.08);
}

.dp-login-page input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #8d3948;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(141, 57, 72, 0.18);
}

.dp-shell {
  box-sizing: border-box;
  display: block;
  position: relative;
  width: 100%;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  transform: none;
  background: #f7f4f0;
  color: #2f2b28;
  font-size: 14px;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.dp-shell * {
  box-sizing: border-box;
}

.dp-shell :where(h1, h2, h3, h4, p, dl, dd) {
  margin-block-start: 0;
}

.dp-shell :where(a) {
  text-decoration: none;
}

.dp-shell :where(a, button),
.dp-login-page input[type="submit"] {
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.dp-shell :where(a, button):focus-visible,
.dp-login-page input[type="submit"]:focus-visible {
  outline: 2px solid rgba(141, 57, 72, 0.38);
  outline-offset: 3px;
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 0 max(40px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  color: #2f2b28;
  box-shadow: 0 10px 34px rgba(44, 34, 28, 0.06);
}

.dp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #2f2b28;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 15px;
}

.dp-brand strong,
.dp-account strong {
  display: block;
}

.dp-brand small,
.dp-account small {
  display: block;
  color: #8a8178;
  font-size: 11px;
}

.dp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.dp-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #625a52;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dp-nav a:hover,
.dp-nav a.is-active {
  background: #f4eeea;
  color: #8d3948;
}

.dp-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(76, 52, 43, 0.08);
}

.dp-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 245px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
}

.dp-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #f2eeeb;
  color: #625a52;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dp-logout-link:hover {
  background: #eee6e2;
  color: #8d3948;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(76, 52, 43, 0.08);
}

.dp-main {
  width: min(1180px, calc(100vw - 80px));
  min-width: 0;
  margin: 0 auto;
  padding: 48px 0 72px;
  overflow: visible;
}

.dp-alert,
.dp-login-required {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf8f2;
  color: #2e6650;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(46, 102, 80, 0.08);
}

.dp-hero,
.dp-panel {
  margin-bottom: 28px;
  padding: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(49, 39, 31, 0.08);
}

.dp-hero {
  min-height: 260px;
  display: grid;
  align-items: center;
  background: linear-gradient(112deg, #fff 0%, #fff 58%, #fbf3f2 100%);
}

.dp-eyebrow {
  margin: 0 0 5px;
  color: #8d3948;
  font-size: 11px;
  font-weight: 700;
}

.dp-hero h2,
.dp-section-head h3 {
  margin: 0 0 12px;
  color: #2f2b28;
  line-height: 1.35;
}

.dp-hero h2 {
  max-width: 720px;
  font-size: 24px;
  font-weight: 700;
}

.dp-hero p {
  max-width: 640px;
  color: #72695f;
  font-size: 14px;
  line-height: 1.85;
}

.dp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: #f2eeeb;
  color: #2f2b28;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dp-button:hover {
  background: #e8ded8;
  color: #8d3948;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(76, 52, 43, 0.1);
}

.dp-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(76, 52, 43, 0.08);
}

.dp-button.primary {
  background: #8d3948;
  color: #fff;
  box-shadow: 0 12px 30px rgba(141, 57, 72, 0.18);
}

.dp-button.primary:hover {
  background: #74313d;
  color: #fff;
  box-shadow: 0 14px 34px rgba(141, 57, 72, 0.24);
}

.dp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.dp-top-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.dp-order-panel {
  box-shadow: 0 22px 64px rgba(76, 52, 43, 0.1);
}

.dp-list {
  display: grid;
  gap: 10px;
}

.dp-list article {
  padding: 16px 18px;
  border: 0;
  border-radius: 8px;
  background: #fbf8f5;
}

.dp-list time {
  display: block;
  margin-bottom: 5px;
  color: #8d3948;
  font-size: 11px;
  font-weight: 700;
}

.dp-notice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dp-list .dp-notice-meta time,
.dp-notice-menu-list .dp-notice-meta time {
  margin: 0;
}

.dp-read-state {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.dp-read-state.is-unread {
  background: #8d3948;
  color: #fff;
}

.dp-read-state.is-read {
  background: #ebe5df;
  color: #81766d;
}

.dp-list strong,
.dp-list span {
  display: block;
}

.dp-list span,
.dp-muted {
  color: #756c64;
}

.dp-list .dp-read-state,
.dp-notice-menu-list .dp-read-state {
  display: inline-flex;
}

.dp-list .dp-read-state.is-unread,
.dp-notice-menu-list .dp-read-state.is-unread {
  color: #fff;
}

.dp-list .dp-read-state.is-read,
.dp-notice-menu-list .dp-read-state.is-read {
  color: #81766d;
}

.dp-panel-more {
  margin: 14px 0 0;
  text-align: right;
}

.dp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dp-stats div {
  padding: 14px;
  border-radius: 8px;
  background: #f7f1ed;
  text-align: center;
}

.dp-stats strong {
  display: block;
  color: #8d3948;
  font-size: 22px;
}

.dp-stats span {
  color: #756c64;
  font-size: 12px;
}

.dp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dp-card {
  min-height: 180px;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background: #fbf8f5;
}

.dp-card h4 {
  margin: 8px 0 8px;
  color: #2f2b28;
  font-size: 16px;
  line-height: 1.35;
}

.dp-card p {
  color: #756c64;
  font-size: 13px;
  line-height: 1.75;
}

.dp-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2e4e4;
  color: #8d3948;
  font-size: 11px;
  font-weight: 700;
}

.dp-product-table-wrap {
  max-height: 520px;
  overflow: auto;
  border-radius: 8px;
  background: #fbf8f5;
}

.dp-product-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  color: #2f2b28;
  font-size: 13px;
  table-layout: fixed;
}

.dp-product-table th,
.dp-product-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(76, 52, 43, 0.08);
  text-align: left;
  vertical-align: top;
}

.dp-product-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4eee9;
  color: #8d3948;
  font-size: 11px;
  font-weight: 700;
}

.dp-product-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.68);
}

.dp-product-table td:first-child,
.dp-product-table th:first-child {
  width: 90px;
}

.dp-product-table td:nth-child(2),
.dp-product-table th:nth-child(2) {
  width: 94px;
}

.dp-product-table td:nth-child(3),
.dp-product-table th:nth-child(3) {
  width: 84px;
}

.dp-product-table td:nth-child(4),
.dp-product-table th:nth-child(4) {
  width: auto;
}

.dp-product-table td:last-child,
.dp-product-table th:last-child {
  width: 54px;
}

.dp-lead-time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: #8d3948;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(141, 57, 72, 0.12);
}

.dp-card dl {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
}

.dp-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dp-card dt {
  color: #756c64;
}

.dp-card dd {
  margin: 0;
  font-weight: 700;
}

.dp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dp-form label {
  display: grid;
  gap: 6px;
}

.dp-form label span {
  font-size: 13px;
  font-weight: 700;
}

.dp-form input,
.dp-form select,
.dp-form textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 13px;
  background: #f8f5f2;
  color: #2f2b28;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(76, 52, 43, 0.08);
}

.dp-form .dp-full {
  grid-column: 1 / -1;
}

.dp-ring-lines {
  display: grid;
  gap: 12px;
}

.dp-ring-line {
  display: grid;
  grid-template-columns: minmax(128px, 0.7fr) minmax(150px, 1fr) minmax(132px, 0.8fr) minmax(84px, 0.55fr) minmax(80px, 0.45fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 10px;
  background: #fbf8f5;
}

.dp-ring-select {
  align-self: center;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  min-height: 42px;
}

.dp-ring-select input {
  width: auto;
  box-shadow: none;
}

.dp-ring-select strong {
  font-size: 14px;
}

.dp-order-confirm {
  display: grid;
  gap: 18px;
}

.dp-confirm-lead {
  color: #756c64;
  line-height: 1.75;
}

.dp-confirm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dp-confirm-summary div,
.dp-confirm-rings article,
.dp-confirm-memo {
  padding: 16px;
  border-radius: 10px;
  background: #fbf8f5;
}

.dp-confirm-summary dt {
  color: #8d3948;
  font-size: 11px;
  font-weight: 700;
}

.dp-confirm-summary dd {
  margin: 4px 0 0;
  color: #2f2b28;
  font-weight: 700;
}

.dp-confirm-rings {
  display: grid;
  gap: 10px;
}

.dp-confirm-rings article {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(150px, 1fr) minmax(132px, 0.8fr) minmax(84px, 0.55fr) minmax(72px, 0.45fr) minmax(150px, 1fr);
  gap: 10px;
}

.dp-confirm-rings strong {
  color: #2f2b28;
}

.dp-confirm-rings span,
.dp-confirm-memo p {
  color: #756c64;
}

.dp-confirm-memo strong {
  display: block;
  margin-bottom: 6px;
  color: #8d3948;
  font-size: 11px;
}

.dp-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dp-form button {
  justify-self: start;
}

.dp-text-link {
  color: #8d3948;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.dp-text-link:hover {
  color: #6f2c38;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.dp-material-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dp-notice-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dp-material-menu,
.dp-notice-menu {
  padding: 26px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(49, 39, 31, 0.08);
}

.dp-material-menu-list,
.dp-notice-menu-list {
  display: grid;
  gap: 8px;
}

.dp-material-menu-list a,
.dp-notice-menu-list a {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 0;
  border-radius: 8px;
  color: #2f2b28;
  background: #fbf8f5;
}

.dp-material-menu-list a:hover,
.dp-material-menu-list a.is-active,
.dp-notice-menu-list a:hover,
.dp-notice-menu-list a.is-active {
  background: #f3ece8;
}

.dp-material-menu-list a:hover,
.dp-notice-menu-list a:hover {
  color: #8d3948;
  transform: translateX(2px);
  box-shadow: 0 8px 22px rgba(76, 52, 43, 0.08);
}

.dp-notice-menu-list a.is-read:not(.is-active) strong {
  color: #756c64;
  font-weight: 600;
}

.dp-material-menu-list span,
.dp-notice-menu-list time {
  color: #8d3948;
  font-size: 11px;
  font-weight: 700;
}

.dp-notice-body {
  color: #4a433d;
  font-size: 14px;
  line-height: 1.9;
}

.dp-notice-body p {
  margin-bottom: 1em;
}

.dp-material-description {
  max-width: 720px;
  margin-bottom: 22px;
  color: #756c64;
  line-height: 1.8;
}

.dp-asset-list {
  display: grid;
  gap: 12px;
}

.dp-asset-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: #fbf8f5;
}

.dp-asset-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.dp-asset-card p {
  margin: 0;
  color: #756c64;
  font-size: 13px;
}

@media (max-width: 900px) {
  .dp-shell {
    width: 100%;
  }

  .dp-grid,
  .dp-material-layout,
  .dp-notice-layout,
  .dp-cards,
  .dp-form,
  .dp-ring-line,
  .dp-confirm-summary,
  .dp-confirm-rings article {
    grid-template-columns: 1fr;
  }

  .dp-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    min-height: 0;
    padding: 18px 20px 16px;
  }

  .dp-brand {
    gap: 10px;
  }

  .dp-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .dp-brand strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .dp-brand small {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .dp-nav {
    flex: none;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
    padding: 4px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(49, 39, 31, 0.06);
    overflow-x: visible;
  }

  .dp-nav a {
    flex: 1;
    padding: 8px 6px;
    text-align: center;
    font-size: 12px;
  }

  .dp-account {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    margin-top: 2px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(49, 39, 31, 0.06);
    text-align: left;
  }

  .dp-account strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .dp-account small {
    margin-top: 2px;
    font-size: 10px;
  }

  .dp-logout-link {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .dp-main {
    width: calc(100vw - 40px);
    padding: 32px 0 56px;
  }

  .dp-hero,
  .dp-panel {
    padding: 24px;
  }

  .dp-hero h2 {
    font-size: 21px;
  }

  .dp-hero p {
    font-size: 13px;
    line-height: 1.75;
  }

  .dp-material-menu,
  .dp-notice-menu {
    padding: 20px;
  }

  .dp-asset-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dp-asset-card .dp-button {
    justify-self: start;
  }
}
