:root {
  --bg: #efefef;
  --surface: #ffffff;
  --line: #d4d4d4;
  --text: #202020;
  --muted: #5f5f5f;
  --brand: #d30000;
  --brand-dark: #a50000;
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1220px, calc(100% - 20px));
  margin-inline: auto;
}

.top-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.utility-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.logo-wrap {
  display: flex;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-wrap img {
  display: block;
  width: 180px;
  max-width: 40vw;
}

.search-box {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.search-box input {
  flex: 1;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}

.search-box button {
  width: 40px;
  padding: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

.search-box button:hover {
  background: var(--brand-dark);
}

.global-nav {
  background: #f9f9f9;
  border-bottom: 1px solid var(--line);
}

.global-nav .container {
  padding: 0;
}

.global-nav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.global-nav-item {
  border-right: 1px solid var(--line);
}

.global-nav-item:last-child {
  border-right: none;
}

.global-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70px;
  padding: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
}

.global-nav-link:hover {
  background: #efefef;
  text-decoration: none;
}

.global-nav-link .icon {
  font-size: 28px;
}

.global-nav-link .label {
  text-align: center;
}

.hero-banner {
  background: var(--brand);
  color: #fff;
  padding: 12px 0;
  text-align: center;
  margin-top: 0;
}

.hero-banner-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-banner-shipping {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffeb3b;
}

.hero-banner-note {
  margin: 2px 0 0;
  font-size: 12px;
}

.contact-bar {
  background: #f9f9f9;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
}

.contact-phone,
.contact-email {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-email a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.contact-email a:hover {
  text-decoration: underline;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 21px;
  cursor: pointer;
}

.main-nav {
  background: linear-gradient(0deg, #f6f6f6, #e4e4e4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-scroll {
  display: grid;
  grid-template-columns: repeat(9, minmax(90px, 1fr));
  overflow-x: auto;
}

.nav-scroll .nav-link {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-right: 1px solid #c9c9c9;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 6px;
  white-space: nowrap;
  color: var(--accent);
}

.nav-scroll .nav-link.active {
  background: var(--surface);
  border-bottom: 3px solid var(--brand);
}

.page-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.panel h2,
.panel h3 {
  margin: 0;
  padding: 9px 12px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.search-form,
.login-form {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.search-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  padding: 7px 8px;
  background: #fff;
}

button {
  border: none;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 9px 10px;
}

button:hover {
  background: var(--brand-dark);
}

.btn-link {
  display: inline-block;
  margin: 0 12px 12px;
  background: var(--brand);
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.panel p {
  margin: 10px 12px;
  font-size: 14px;
}

.service-intro {
  padding-bottom: 10px;
}

.service-copy {
  padding: 12px 12px 0;
}

.service-copy h2 {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 20px;
  margin-bottom: 6px;
}

.service-copy p {
  margin: 0 0 12px;
  color: #333;
}

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

.service-grid article {
  border: 1px solid #e1e1e1;
  background: #fafafa;
  border-radius: 4px;
  padding: 10px 12px;
}

.service-grid h3 {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  margin-bottom: 6px;
}

.service-grid p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.remember {
  font-size: 13px;
  color: var(--muted);
}

.category-list,
.category-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list > li {
  border-bottom: 1px solid #ececec;
}

.category-list a,
.cat-toggle {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.category-list li ul {
  padding: 4px 0 8px 12px;
}

.category-list li ul li a {
  padding: 6px 12px;
  font-size: 13px;
  color: #3d3d3d;
}

.calendar {
  width: calc(100% - 16px);
  margin: 8px;
  border-collapse: collapse;
  text-align: center;
  font-size: 12px;
}

.calendar th,
.calendar td {
  border: 1px solid #e5e5e5;
  padding: 6px 0;
}

.closed {
  color: var(--brand);
  font-weight: 700;
}

.closed-note {
  color: var(--muted);
  font-size: 12px;
}

.content {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-section {
  display: none;
}

.page-section.active {
  display: contents;
}

.hero {
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #fdfdfd, #efefef);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.hero-text {
  padding: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.45;
}

.hero p {
  margin: 12px 0;
  color: var(--muted);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
}

.news-item {
  border-top: 1px solid #ededed;
}

.news-toggle {
  width: 100%;
  text-align: left;
  padding: 12px;
  background: #fff;
  color: var(--text);
  border-radius: 0;
}

.news-toggle span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}

.news-body {
  display: none;
  padding: 0 12px 12px;
  color: #444;
  font-size: 14px;
}

.news-item.open .news-body {
  display: block;
}

.products-wrap {
  padding-bottom: 10px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.title-row h2 {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 19px;
  margin: 0;
}

.title-row a {
  font-size: 13px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.product {
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f5f5f5;
}

.product h3 {
  margin: 8px 8px 4px;
  font-size: 12px;
  line-height: 1.45;
  min-height: 52px;
}

.price {
  margin: 0 8px 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}

.sale-zone {
  padding-bottom: 12px;
}

.sale-banner {
  margin: 12px;
  background: #101010;
  color: #fff;
  border-radius: 4px;
  padding: 14px;
  font-weight: 700;
}

.site-footer {
  background: #111;
  color: #efefef;
  padding-top: 20px;
}

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

.site-footer h3,
.site-footer h4 {
  margin: 0 0 8px;
}

.site-footer p,
.site-footer li {
  font-size: 13px;
  color: #d2d2d2;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #fff;
}

.copyright {
  text-align: center;
  border-top: 1px solid #353535;
  margin-top: 14px;
  padding: 10px;
  font-size: 12px;
}

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(280px, 78vw);
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform 220ms ease;
  z-index: 1000;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-head button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  padding: 0;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.mobile-drawer a {
  display: block;
  padding: 10px 12px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 900;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.buyback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 16px 0 24px;
}

.buyback-panel {
  padding: 24px;
}

.buyback-intro h1,
.buyback-steps h2,
.buyback-achievements h2,
.buyback-complete-panel h1 {
  margin: 0 0 12px;
}

.buyback-eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.buyback-intro p {
  margin: 0 0 20px;
}

.buyback-form {
  display: grid;
  gap: 18px;
}

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

.buyback-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.buyback-form input,
.buyback-form select,
.buyback-form textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.buyback-form textarea {
  resize: vertical;
}

.buyback-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.buyback-consent input {
  width: auto;
  margin-top: 3px;
}

.buyback-actions,
.buyback-complete-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary,
.btn-primary-link,
.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary,
.btn-primary-link {
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.btn-secondary-link {
  border: 1px solid var(--line);
  background: #f5f5f5;
  color: var(--text);
}

.btn-primary:hover,
.btn-primary-link:hover,
.btn-secondary-link:hover {
  text-decoration: none;
}

.buyback-side {
  display: grid;
  gap: 12px;
}

.buyback-steps,
.buyback-achievements {
  padding: 20px;
}

.buyback-steps ol,
.buyback-achievements ul {
  margin: 0;
  padding-left: 20px;
}

.buyback-complete-wrap {
  padding: 40px 0 64px;
}

.buyback-complete-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}

@media (max-width: 1040px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .buyback-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .utility-right {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .nav-scroll a {
    min-height: 44px;
    font-size: 12px;
  }

  .buyback-panel,
  .buyback-complete-panel,
  .buyback-steps,
  .buyback-achievements {
    padding: 18px;
  }

  .buyback-grid {
    grid-template-columns: 1fr;
  }

  .buyback-actions,
  .buyback-complete-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== SOLD OUT badge ===== */
.thumb {
  position: relative;
  overflow: hidden;
  display: block;
}

.sold-out-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  z-index: 2;
  pointer-events: none;
}

.product.sold-out .price {
  color: var(--muted);
  text-decoration: line-through;
}

/* ===== Card logos ===== */
.card-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 4px;
  flex-wrap: wrap;
}

.card-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* ===== Action buttons (buyback section) ===== */
.action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
  background: var(--brand);
}

.action-btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}

.action-btn--achievements {
  background: #0e7d1f;
}

.action-btn__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.action-btn__body {
  display: flex;
  flex-direction: column;
}

.action-btn__body strong {
  font-size: 15px;
  font-weight: 700;
}

.action-btn__body small {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 400;
  margin-top: 2px;
}

/* service-intro update: remove old 3-column grid on this page */
.service-copy > p {
  margin: 0;
  padding: 14px 12px 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Info pages (faq / flow / guide / tokusho / privacy) ===== */
.info-wrap {
  padding: 16px 0 40px;
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 32px;
  max-width: 860px;
  margin: 0 auto;
}

.info-panel h1 {
  margin: 0 0 6px;
  font-size: 24px;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 10px;
}

.info-panel .page-lead {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.info-panel h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  padding: 8px 12px;
  background: #f4f4f4;
  border-left: 4px solid var(--brand);
}

.info-panel h3 {
  font-size: 15px;
  margin: 18px 0 8px;
  color: var(--brand-dark);
}

.info-panel p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 12px;
  color: #333;
}

.info-panel ul,
.info-panel ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.info-panel li {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.info-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}

.info-panel th,
.info-panel td {
  border: 1px solid #d0d0d0;
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.info-panel th {
  background: #f4f4f4;
  width: 36%;
  font-weight: 600;
}

.faq-item {
  border-top: 1px solid #e8e8e8;
  padding: 14px 0;
}

.faq-q {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.faq-q::before {
  content: "Q";
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.faq-a {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin: 8px 0 0 30px;
}

.flow-method {
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.flow-method-head {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
}

.flow-step {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid #eeeeee;
  align-items: flex-start;
}

.flow-step-num {
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 2px;
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.flow-step strong {
  display: block;
  margin-bottom: 4px;
}

.info-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 10px 20px;
  background: #444;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.info-back-btn:hover {
  text-decoration: none;
  filter: brightness(1.15);
}

@media (max-width: 680px) {
  .info-panel {
    padding: 18px 16px;
  }
}
