html:has(.store-shell-header) { scrollbar-gutter: stable; }

body header.store-shell-header,
body footer.store-shell-footer {
  --shell-ink: #293a40;
  --shell-white: #fff;
  --shell-focus: #946742;
  box-sizing: border-box;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

body header.store-shell-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e7e4dc;
  container-type: inline-size;
}

/* Override the legacy base rule, which sets padding-top: 1vw !important. */
body.new header.store-shell-header { padding-top: 0 !important; }

.store-shell-header .store-shell-row,
.store-shell-footer .store-shell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.3vw, 22px);
  width: min(1450px, calc(100% - 44px));
  margin-inline: auto;
}

.store-shell-header .store-shell-row { min-height: 78px; }

body :is(header.store-shell-header, footer.store-shell-footer) a.store-shell-brand {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  width: 154px;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.store-shell-brand .store-shell-mark {
  display: block;
  width: 88%;
  aspect-ratio: 400 / 94;
  overflow: hidden;
}

.store-shell-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.store-shell-brand .store-shell-tag {
  color: inherit;
  font: 600 11px/1.25 Arial, sans-serif;
  letter-spacing: .11em;
}

body header.store-shell-header nav,
body header.store-shell-header nav ul,
body footer.store-shell-footer nav ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

body header.store-shell-header nav ul { flex-wrap: nowrap; }
body header.store-shell-header nav,
body header.store-shell-header nav ul { gap: clamp(10px, 1.4cqw, 22px); }

body :is(header.store-shell-header, footer.store-shell-footer) nav li {
  list-style: none;
  padding: 0;
  margin: 0;
}

body header.store-shell-header nav li a,
body footer.store-shell-footer nav li a {
  display: inline-block;
  color: var(--shell-ink);
  padding: 0;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

body header.store-shell-header a.store-shell-line {
  display: block;
  width: clamp(230px, 19vw, 300px);
  width: clamp(230px, 19cqw, 300px);
  max-width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
}

body header.store-shell-header a.store-shell-line::after { content: none; }

body header.store-shell-header .store-shell-line .original-line-banner {
  display: block;
  width: 100%;
  height: auto;
  transition: none;
}

body header.store-shell-header .store-shell-line:is(:hover,:active) .original-line-banner { opacity: .88; }

body.new header.store-shell-header a.store-shell-direct,
body header.store-shell-header .store-shell-toggle { display: none; }

body :is(header.store-shell-header, footer.store-shell-footer) a.store-shell-instagram {
  display: block;
  flex: 0 0 auto;
  width: 22px;
}

.store-shell-instagram img { display: block; width: 100%; height: auto; }
body header.store-shell-header .store-shell-instagram {
  margin-inline-start: calc(22px - clamp(10px, 1.4cqw, 22px));
}
body footer.store-shell-footer {
  width: 100%;
  margin: 0;
  padding: 32px 0 20px;
  background: #293b43;
  color: var(--shell-white);
}

.store-shell-footer .store-shell-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  width: min(1120px, calc(100% - 44px));
  gap: 22px;
}

body footer.store-shell-footer nav ul {
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}

body footer.store-shell-footer nav li a { color: var(--shell-white); }
body footer.store-shell-footer a.store-shell-brand { width: 154px; gap: 3px; }
body footer.store-shell-footer .store-shell-brand .store-shell-tag { font-size: 9px; }
body footer.store-shell-footer .store-shell-brand img { filter: brightness(0) invert(1); }
body footer.store-shell-footer small { display: block; margin: 24px 0 0; padding: 0; color: #fff; font-size: 12px; line-height: 1.5; }

body :is(header.store-shell-header, footer.store-shell-footer) nav li a:hover { text-decoration: underline; }
body :is(header.store-shell-header, footer.store-shell-footer) :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
body header.store-shell-header :is(a, button):focus-visible {
  outline-color: var(--shell-focus);
  outline-offset: 4px;
}

body main .store-shell-title {
  background: #efebe4;
  color: #263840;
  padding: clamp(36px, 5vw, 72px) 22px;
  text-align: center;
}
body main .store-shell-title h1 {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.35;
  margin: .35em auto 0;
  max-width: 24em;
  width: auto;
  color: inherit;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-wrap: balance;
}
body main .store-shell-title p { margin: 0; color: #52635c; letter-spacing: .08em; }

@media (max-width: 1040px) {
  .store-shell-header .store-shell-row { min-height: 68px; gap: 10px; }
  body header.store-shell-header a.store-shell-brand { width: 136px; }
  body header.store-shell-header .store-shell-brand .store-shell-tag { font-size: 10px; }
  body.new header.store-shell-header a.store-shell-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 76px;
    box-sizing: border-box;
    padding: 0 11px;
    margin-left: auto;
    border-radius: 4px;
    background: #c9d5bd;
    color: #254235;
    font: 600 12px/1.4 Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }
  body.new header.store-shell-header a.store-shell-direct:is(:hover,:active) {
    background: #b9c9aa;
  }
  body header.store-shell-header .store-shell-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cccfc8;
    border-radius: 4px;
    color: var(--shell-ink);
    background: #fff;
  }
  .store-shell-toggle span { width: 20px; height: 2px; background: currentColor; }
  body header.store-shell-header nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: #fff;
    max-height: 75vh;
    overflow-y: auto;
    padding: 14px 22px 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }
  body header.store-shell-header nav.is-open { display: block; }
  body header.store-shell-header nav ul { display: grid; gap: 0; }
  body header.store-shell-header nav li a { display: block; padding: 10px 0; }
  body header.store-shell-header a.store-shell-line { width: 230px; }
  body header.store-shell-header nav .store-shell-instagram { margin: 8px 0 0; }
}

@media (max-width: 600px) {
  .store-shell-header .store-shell-row,
  .store-shell-footer .store-shell-row { width: calc(100% - 32px); }
  .store-shell-footer .store-shell-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .store-shell-footer nav { grid-column: 1 / -1; grid-row: 2; }
  .store-shell-footer .store-shell-instagram { grid-column: 2; grid-row: 1; }
}

@media (max-width: 360px) {
  body#top.omiya-design .omiya-store-brands .omiya-store-brand {
    min-width: 0;
  }
  body#top.omiya-design .omiya-store-brands .omiya-store-brand span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
