:root {
  --ink: #222222;
  --muted: #666666;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --accent: #ff6b00;
  --accent-hover: #e85f00;
  --link: #222222;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-track {
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.utility-bar {
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.search-box {
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.12);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero — dearmini.jp と同寸法：PC 960×400 中央、SP 1586/992 */
.hero-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  touch-action: pan-y pinch-zoom;
  border-bottom: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero-viewport {
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 520ms ease;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-slide-panel {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .hero-shell {
    line-height: 0;
  }

  .hero-viewport {
    height: 400px;
    mask-image: linear-gradient(90deg, transparent, #000 1.5%, #000 98.5%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5%, #000 98.5%, transparent);
  }

  .hero-track {
    gap: 16px;
    height: 100%;
  }

  .hero-slide {
    flex: 0 0 var(--hero-desk-slide-w, 960px);
    width: var(--hero-desk-slide-w, 960px);
    min-width: var(--hero-desk-slide-w, 960px);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    max-width: 960px;
    max-height: 400px;
    aspect-ratio: 960 / 400;
    object-fit: contain;
  }

  .hero-slide-panel {
    max-width: 960px;
    max-height: 400px;
    aspect-ratio: 960 / 400;
    width: 100%;
    height: 100%;
    padding: 2rem 2.5rem;
  }

  .hero-nav.prev {
    left: max(0.5rem, calc(50% - (var(--hero-desk-slide-w, 960px) / 2) - 3rem));
  }

  .hero-nav.next {
    right: max(0.5rem, calc(50% - (var(--hero-desk-slide-w, 960px) / 2) - 3rem));
  }
}

@media (max-width: 767px) {
  .hero-shell {
    position: relative;
    aspect-ratio: 1586 / 992;
  }

  .hero-stage {
    position: absolute;
    inset: 0;
  }

  .hero-viewport {
    position: absolute;
    inset: 0;
    max-width: none;
  }

  .hero-slide img {
    object-fit: contain;
  }
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #374151;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.hero-nav:hover {
  background: #fff7ed;
  color: var(--accent);
}

.hero-nav.prev {
  left: 0.45rem;
}

.hero-nav.next {
  right: 0.45rem;
}

@media (min-width: 768px) {
  .hero-nav {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 26;
  line-height: normal;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--accent);
  width: 22px;
}

.cat-tile {
  background: var(--bg-soft);
  border-radius: 12px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-thumb {
  aspect-ratio: 1;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
}

.corp-banner {
  background: linear-gradient(105deg, #1a1a1a 0%, #333 55%, #ff6b00 160%);
}

/* —— 导航：账号图标 / 头像悬停菜单（对齐 dearmini） —— */
.dm-user-avatar-initial {
  background-color: #e8dfd4;
  color: #5c4a3a;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dm-nav-icon-btn {
  color: #4b5563;
  padding: 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dm-nav-icon-btn:hover {
  color: var(--accent);
  background: rgba(255, 107, 0, 0.08);
}

.dm-acc-menu-wrap {
  position: relative;
}

.dm-acc-menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 6px;
  width: 13rem;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.dm-acc-menu-panel > div {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  padding: 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  overflow: hidden;
}

.dm-acc-menu-item {
  display: block;
  padding: 0.625rem 1rem;
  color: #1f2937;
}

.dm-acc-menu-item:hover {
  background: #fff7ed;
  color: var(--accent);
}

.dm-acc-menu-item.is-danger {
  color: #dc2626;
}

.dm-acc-menu-item.is-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.dm-acc-menu-backdrop {
  display: none;
}

@media (min-width: 768px) {
  .dm-acc-menu-wrap:hover .dm-acc-menu-panel,
  .dm-acc-menu-wrap:focus-within .dm-acc-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dm-acc-menu-backdrop {
    display: none !important;
  }

  #navAccTriggerDesktop {
    display: inline-flex !important;
  }

  #navAccTriggerMobile {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #navAccTriggerDesktop {
    display: none !important;
  }

  #navAccTriggerMobile {
    display: inline-flex !important;
  }

  .dm-acc-menu-wrap:hover .dm-acc-menu-panel,
  .dm-acc-menu-wrap:focus-within .dm-acc-menu-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .dm-acc-menu-wrap.dm-acc-menu-open .dm-acc-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dm-acc-menu-panel {
    z-index: 70;
    width: 11.5rem;
  }

  .dm-acc-menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.25);
  }
}

/* —— マイページ（对齐 dearmini account.php） —— */
.mypage-bg {
  background: #f5f5f5;
}

.mypage-aside {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 0.5rem 0;
}

@media (min-width: 1024px) {
  .mypage-aside {
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
  }
}

.mypage-nav-group > summary {
  list-style: none;
  cursor: pointer;
}

.mypage-nav-group > summary::-webkit-details-marker {
  display: none;
}

.mypage-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  font-weight: 700;
}

.mypage-nav-item:hover {
  background: #f7f7f7;
}

.mypage-nav-item.is-active {
  background: #fff7ed;
  color: var(--accent);
}

.mypage-nav-item.is-active svg {
  opacity: 1;
  color: var(--accent);
}

.mypage-nav-item svg {
  flex-shrink: 0;
  opacity: 0.55;
}

.mypage-panel {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
}

.mypage-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.mypage-section-hd h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.mypage-section-hd a,
.mypage-section-hd button {
  font-size: 0.8125rem;
  color: #555;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.mypage-section-hd a:hover,
.mypage-section-hd button:hover {
  color: #111;
}

.mypage-empty {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: #777;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
}

.mypage-promo-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  background: #fff;
}

.acct-panel {
  display: none;
}

.acct-panel.is-open {
  display: block;
}

.acct-mobile-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .acct-mobile-nav {
    display: none;
  }
}

.acct-mobile-nav .mypage-nav-item {
  width: auto;
  white-space: nowrap;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ebebeb;
}

.order-list-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  transition: background 0.15s ease;
}

.order-list-card:hover {
  background: #fafaf9;
}

/* —— 静的ドキュメントページ —— */
.legal-doc {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #333;
}

@media (min-width: 768px) {
  .legal-doc {
    padding: 2.25rem 2.5rem;
  }
}

.legal-doc h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 0.75rem;
}

.legal-doc section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}

.legal-doc ul {
  list-style: disc;
  margin: 0.5rem 0 0 1.25rem;
  space: 0.35rem;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.legal-doc .contact-box {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  line-height: 1.9;
}

.page-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 2rem;
  }
}

.page-hero p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.form-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .form-card {
    padding: 2rem;
  }
}

.form-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid rgba(255, 107, 0, 0.35);
  border-color: var(--accent);
}

.form-card .req::after {
  content: "必須";
  margin-left: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  vertical-align: middle;
}
