/*
 * 共通補助CSS。静的HTMLの見た目を正とするため、既存インラインCSSは急に削らず、
 * 競合しないエラー表示・空状態などだけを外部化する。
 */
:root {
  --estado-ecru: #FDFCF8;
  --estado-ivory: #F5F2EA;
  --estado-brown: #2C2621;
  --estado-khaki: #5B5041;
  --estado-brass: #A89F91;
  --estado-warm-gray: #E5E1D8;
  --estado-error: #A52A2A;
}
body {
  background-color: var(--estado-ecru);
  color: var(--estado-brown);
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
*, *::before, *::after {
  border-radius: 0 !important;
}
.cart-count-badge {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  min-height: 1rem !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  line-height: 1 !important;
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--estado-brass);
  transition: width 0.3s ease;
}
.nav-link[aria-current="page"]::after,
.nav-link:hover::after {
  width: 100%;
}
.product-image,
.product-media-area img {
  border-radius: 0 !important;
}
.product-summary-price {
  border-bottom: 1px solid rgba(168, 159, 145, 0.18);
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
}
.product-summary-feature {
  margin-bottom: 3rem;
  padding: 1.75rem;
}
.product-summary-feature li {
  line-height: 2;
}
.filter-btn {
  border: 1px solid var(--estado-warm-gray);
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--estado-brown);
  background-color: var(--estado-ivory);
}
#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-open #mobile-menu {
  transform: translateX(0);
}
.menu-open {
  overflow: hidden;
}
.content-table th {
  border-bottom: 1px solid var(--estado-warm-gray);
  text-align: left;
  vertical-align: top;
}
.content-table td {
  border-bottom: 1px solid var(--estado-warm-gray);
}
.content-table--spec th {
  padding: 1rem;
  background-color: var(--estado-ivory);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.content-table--spec td {
  padding: 1rem;
  font-size: 0.875rem;
}
.estado-error-summary {
  background: rgba(165, 42, 42, 0.06);
  border-left: 2px solid var(--estado-error);
  color: var(--estado-error);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.9;
  margin: 0 auto 2rem;
  max-width: 56rem;
  padding: 1rem 1.25rem;
}
.estado-success-summary {
  background: rgba(91, 80, 65, 0.08);
  border-left: 2px solid #5b5041;
  color: #2c2621;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.9;
  margin: 0 auto 2rem;
  max-width: 56rem;
  padding: 1rem 1.25rem;
}
.estado-empty-state {
  border: 1px solid var(--estado-warm-gray);
  background: var(--estado-ivory);
  padding: 3rem 2rem;
  text-align: center;
}
.estado-header-search-dialog::backdrop {
  background: rgba(44, 38, 33, 0.45);
}
.estado-header-search-dialog {
  z-index: 100;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* お問い合わせ確認画面の操作エリア。
 * 静的HTML由来の w-full ボタンだけに頼ると、画面幅やフッター位置に引きずられて
 * 横長の帯に見えるため、確認画面専用の意味を持つブロックとして幅・余白を固定する。
 */
.estado-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 28rem;
  margin: 4rem auto 0;
  padding-bottom: 9rem;
}
.estado-contact-actions form {
  width: 100%;
}
.estado-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4rem;
  padding: 1.15rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.estado-contact-button:active {
  transform: scale(0.98);
}
.estado-contact-button--primary {
  background: var(--estado-brown);
  color: var(--estado-ecru);
  box-shadow: 0 12px 24px rgba(44, 38, 33, 0.16);
}
.estado-contact-button--primary:hover {
  background: var(--estado-khaki);
}
.estado-contact-button--secondary {
  border: 1px solid rgba(44, 38, 33, 0.35);
  background: var(--estado-ecru);
  color: var(--estado-brown);
  box-shadow: 0 6px 16px rgba(44, 38, 33, 0.06);
}
.estado-contact-button--secondary:hover {
  background: var(--estado-ivory);
  border-color: var(--estado-brown);
}

.estado-header-account__menu {
  transition: opacity 0.15s ease, visibility 0.15s, transform 0.15s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.25rem);
}
@media (min-width: 1024px) {
  .estado-header-account:hover .estado-header-account__menu,
  .estado-header-account:focus-within .estado-header-account__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}
@media (max-width: 1023.98px) {
  .estado-header-account.estado-header-account--open .estado-header-account__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}
/* マイページ：親が icon 幅しかないと shrink-to-fit で縦1文字化するのを防ぐ */
.estado-mypage-wrap {
  position: relative;
  z-index: 0;
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
.estado-mypage-wrap > a {
  line-height: 0;
  display: inline-block;
}
.estado-header-tooltip {
  position: absolute;
  left: 50%;
  right: auto;
  top: 100%;
  z-index: 80;
  margin-top: 0.45rem;
  margin-left: 0;
  margin-right: 0;
  /* 幅を確保（親の狭さに引きずられない） */
  box-sizing: border-box;
  min-width: 11rem;
  max-width: min(17rem, calc(100vw - 1.5rem));
  width: max-content;
  padding: 0.5rem 0.7rem;
  background: #2c2621;
  color: #fdfcf8;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: left;
  writing-mode: horizontal-tb;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  box-shadow: 0 6px 16px rgba(33, 28, 24, 0.2);
  transform: translateX(-50%) translateY(0.15rem);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s, transform 0.18s ease;
}
@media (min-width: 1024px) {
  .estado-mypage-wrap:hover .estado-header-tooltip,
  .estado-mypage-wrap:focus-within .estado-header-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
