:root {
  --ink: #12313a;
  --muted: #5f7680;
  --line: #d7edf0;
  --paper: #f4fbfb;
  --white: #ffffff;
  --aqua: #42bdd0;
  --aqua-dark: #168ca0;
  --coral: #ff7f68;
  --sun: #ffd86b;
  --mist: #e8f8fa;
  --sand: #fff6df;
  --shadow: 0 18px 42px rgba(43, 133, 150, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #effcfd 0, #ffffff 360px, #f4fbfb 100%);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.7;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(192, 229, 235, 0.9);
  backdrop-filter: blur(14px);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

/* Defensive: older uploaded HTML may still contain the logo image in the header. */
.legacy-logo-wrap {
  display: grid;
  width: 92px;
  height: 46px;
  flex: 0 0 92px;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  border-radius: 6px;
}

.legacy-logo,
.brand-logo,
.site-name img {
  display: block;
  width: auto;
  max-width: 84px;
  max-height: 38px;
  object-fit: contain;
}

.site-name strong,
.site-name small {
  display: block;
  line-height: 1.2;
}

.site-name small,
.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--ink);
}

#about,
#products,
#product-detail,
#guide,
#shop {
  scroll-margin-top: 88px;
}

.shop-entry-link,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.shop-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 140, 160, 0.2);
}

.shop-entry-link strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border-radius: 999px;
}

.hero {
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  padding: clamp(80px, 12vw, 160px) clamp(18px, 5vw, 72px) clamp(56px, 9vw, 110px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 49, 58, 0.58), rgba(25, 139, 159, 0.2) 58%, rgba(255, 255, 255, 0.04)),
    url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-copy {
  width: min(860px, 100%);
}

.hero-logo {
  display: block;
  width: min(360px, 78vw);
  max-width: min(360px, 78vw);
  max-height: 200px;
  height: auto;
  object-fit: contain;
  margin: 0 0 22px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1,
.store-toolbar h2,
.guide h2 {
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.05rem, 4.6vw, 4.6rem);
  font-weight: 900;
}

.hero p {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-lead {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 800;
}

.hero-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.share-links {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f7fcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.share-links strong {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.share-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--white);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.share-links a:hover {
  filter: brightness(0.96);
}

.share-x {
  background: #111111;
}

.share-facebook {
  background: #1877f2;
}

.share-line {
  background: #06c755;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), #ff9a7c);
  box-shadow: 0 12px 26px rgba(255, 127, 104, 0.22);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.button.full {
  width: 100%;
}

.store-toolbar,
.guide,
.brand-story,
.page-share {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.page-share {
  padding: 0 0 58px;
}

.detail-share .share-links {
  padding: 0;
  background: transparent;
  border: 0;
}

.store-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 58px 0 24px;
}

.category-tabs {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 18px;
}

.category-tabs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tab {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.category-tab.is-active {
  color: var(--white);
  background: var(--aqua);
  border-color: var(--aqua);
}

.store-toolbar h2,
.guide h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.brand-story {
  padding: 78px 0 54px;
}

.brand-story h2 {
  margin: 0;
  line-height: 1.15;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.lead-copy {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 18px;
}

.lead-copy p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.9;
}

.lead-copy .button {
  width: fit-content;
  margin-top: 4px;
}

.item-ideas {
  padding: 72px 0;
  background:
    linear-gradient(180deg, rgba(232, 248, 250, 0.1), rgba(232, 248, 250, 0.92)),
    linear-gradient(135deg, #ffffff, #e8f8fa);
  border-top: 1px solid rgba(215, 237, 240, 0.7);
  border-bottom: 1px solid rgba(215, 237, 240, 0.85);
}

.item-ideas-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.item-scene {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.item-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  height: auto;
  object-fit: cover;
}


.filters label {
  display: grid;
  gap: 6px;
}

.filters span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.product-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-grid > .empty {
  grid-column: 1 / -1;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--product-bg, var(--mist));
  color: inherit;
}

.product-media.is-white-logo {
  background: #122126;
}

.product-media img {
  display: block;
}

.product-image {
  width: min(78%, 340px);
  height: auto;
  max-height: 78%;
  object-fit: contain;
}

.missing-image {
  display: none;
  color: var(--muted);
  font-weight: 800;
}

.product-media.is-missing .missing-image {
  display: block;
}

.detail-media .missing-image {
  display: block;
}

.product-body {
  display: grid;
  flex: 1;
  gap: 12px;
  padding: 16px;
}

.product-body h3,
.guide h3 {
  margin: 0;
  line-height: 1.35;
}

.product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-category {
  width: fit-content;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--mist);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-size {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.product-body p,
.guide p,
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-sales {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-size: 1.08rem;
  font-weight: 900;
}

.sales-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-link,
.sales-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 900;
}

.sales-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
}

.sales-pending {
  color: var(--muted);
  background: var(--mist);
}

.product-detail {
  width: min(1240px, calc(100% - 48px));
  margin: 24px auto 0;
}

.product-detail-page {
  margin-top: 22px;
  margin-bottom: 72px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.product-buy-box {
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 8px;
  align-content: start;
  align-self: start;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-media {
  display: grid;
  min-height: 0;
  aspect-ratio: 16 / 10;
  place-items: center;
  background: var(--product-bg, var(--mist));
  border-radius: 8px;
}

.detail-media.is-white-logo {
  background: #122126;
}

.detail-media img {
  display: block;
  width: min(84%, 560px);
  max-height: 82%;
  object-fit: contain;
}

.detail-image-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.purchase-panel {
  position: sticky;
  top: 96px;
}

.detail-body h1,
.detail-body h2 {
  margin: 0;
  line-height: 1.25;
  font-size: clamp(1.42rem, 1.8vw, 1.8rem);
}

.detail-lead {
  margin: 0;
  color: var(--muted);
}

.back-link {
  width: fit-content;
  color: var(--aqua-dark);
  font-weight: 900;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-meta div {
  padding: 12px;
  background: var(--mist);
  border-radius: 8px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.purchase-price {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.purchase-price span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.purchase-price strong {
  line-height: 1.15;
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
}

.purchase-price small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.summary-specs {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary-specs div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.summary-specs dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.summary-specs dd {
  margin: 0;
  font-weight: 900;
}

.buy-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #f2fcfd, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.buy-actions h2,
.detail-section h2 {
  margin: 0;
  line-height: 1.25;
  font-size: 1.12rem;
}

.buy-actions p,
.detail-section p,
.notice-grid p {
  margin: 0;
  color: var(--muted);
}

.sales-links-large {
  display: grid;
}

.sales-links-large .sales-link,
.sales-links-large .sales-pending {
  min-height: 44px;
  font-size: 0.95rem;
}

.detail-section {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-list {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 48px;
}

.spec-list div + div {
  border-top: 1px solid var(--line);
}

.spec-list dt,
.spec-list dd {
  margin: 0;
  padding: 12px 14px;
}

.spec-list dt {
  color: var(--muted);
  background: var(--mist);
  font-weight: 900;
}

.spec-list dd {
  font-weight: 800;
}

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

.notice-grid article {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-grid h3 {
  margin: 0 0 8px;
  line-height: 1.35;
}

.related-card {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.related-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--product-bg, var(--mist));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-media.is-white-logo {
  background: #122126;
}

.related-media img {
  display: block;
  width: 78%;
  max-height: 76%;
  object-fit: contain;
}

.guide {
  padding: 70px 0 58px;
}

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

.guide-steps {
  display: grid;
  gap: 14px;
  max-width: 840px;
  margin-top: 22px;
}

.guide-steps article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--aqua);
  border-radius: 999px;
  font-weight: 900;
}

.guide-steps h3 {
  margin: 0 0 4px;
}

.guide-steps p {
  margin: 0;
  color: var(--muted);
}

.guide article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.guide article .button {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.empty {
  color: var(--muted);
  background: var(--mist);
  border-radius: 8px;
  padding: 16px;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .product-grid,
  .detail-card,
  .notice-grid,
  .related-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .site-name small,
  .shop-entry-link span {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .store-toolbar {
    display: grid;
  }

  .filters,
  .filters label,
  .product-grid,
  .detail-card,
  .notice-grid,
  .related-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .lead-copy .button {
    width: 100%;
  }

  .detail-media {
    min-height: 260px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .spec-list div {
    grid-template-columns: 1fr;
  }

  .summary-specs div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .filters {
    display: grid;
  }
}
