:root {
  --red: #e60012;
  --ink: #171717;
  --muted: #626262;
  --paper: #fff;
  --bg: #f5f5f5;
  --soft: #f6f3ee;
  --line: #e5e0d9;
  --green: #123f2d;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select {
  font: inherit;
}

.wrap {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 116px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero {
  padding: 62px 0 44px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  text-underline-offset: 3px;
}

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

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.hero-lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: #444;
  font-size: 17px;
}

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

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.category-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid #d6d0c8;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.category-nav a:hover,
.category-nav a:focus-visible,
.category-nav a[aria-current="page"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.category-nav a:focus-visible {
  outline: 3px solid rgba(230, 0, 18, .2);
  outline-offset: 2px;
}

.category-note {
  margin: -8px 0 22px;
  padding: 14px 16px;
  border-left: 5px solid var(--red);
  border-radius: 12px;
  background: #fff7f7;
  color: #4d4545;
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 60px 0;
}

.section.alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  letter-spacing: -.025em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 220px 180px;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
}

.field input, .field select {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #cfc8be;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.result-summary {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(43, 31, 20, .08);
}

.product-card[hidden] {
  display: none !important;
}

.product-image {
  display: grid;
  min-height: 270px;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.product-image img {
  max-height: 230px;
  width: auto;
  object-fit: contain;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.product-meta span:first-child {
  color: var(--green);
}

.product-card h2 {
  margin: 10px 0 4px;
  font-size: 22px;
  line-height: 1.4;
}

.product-card h2 a {
  text-decoration: none;
}

.product-catch {
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.product-description {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 20px;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 5px 10px;
  border: 1px solid #d7cec2;
  border-radius: 999px;
  background: #fffaf4;
  font-size: 12px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.card-actions .button {
  min-height: 42px;
  padding-inline: 12px;
  font-size: 13px;
}

.empty-message {
  display: none;
  padding: 34px;
  background: #fff;
  border: 1px dashed #aaa;
  border-radius: 16px;
  text-align: center;
}

.empty-message.is-visible {
  display: block;
}

.detail-hero {
  padding: 48px 0;
  background: linear-gradient(145deg, #f5ede3 0%, #fff 68%);
  border-bottom: 1px solid var(--line);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 52px;
  align-items: center;
}

.detail-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4.7vw, 56px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.detail-catch {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 19px;
  font-weight: 900;
}

.detail-description {
  margin: 0;
  color: #454545;
  font-size: 16px;
}

.detail-visual {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(43, 31, 20, .1);
}

.detail-visual img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .12));
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.fact {
  padding: 14px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fact strong, .fact span {
  display: block;
}

.fact span {
  color: var(--muted);
  font-size: 12px;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.content-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.spec-list {
  display: grid;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  font-weight: 900;
}

.spec-list dd {
  margin: 0;
  color: #444;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.quote-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background: var(--green);
  color: #fff;
  border-radius: 24px;
}

.quote-panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.quote-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.quote-panel .button {
  border-color: #fff;
}

.price-note {
  margin-top: 16px;
  padding: 16px 18px;
  background: #fff8e8;
  border: 1px solid #ead6a8;
  border-radius: 14px;
  color: #5f4b20;
  font-size: 14px;
}

.footer {
  padding: 36px 0 70px;
  background: #111;
  color: #fff;
}

.footer p {
  margin: 4px 0;
}

.footer-small {
  color: #bbb;
  font-size: 13px;
}

/* ---------------------------------------------------------------- 商品詳細 */
.product-detail-page {
  padding-bottom: 88px;
}

.detail-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.detail-anchors a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.detail-anchors a:hover {
  border-color: var(--red);
  color: var(--red);
}

.product-code-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.detail-copy h1 {
  display: grid;
  gap: 10px;
}

.hero-title-main {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.hero-title-sub {
  color: var(--red);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 900;
  line-height: 1.5;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.badge-row .badge {
  padding: 6px 13px;
  border: 1px solid #d7cec2;
  border-radius: 999px;
  background: #fffaf4;
  font-size: 13px;
  font-weight: 800;
}

.badge-row .badge:last-child {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.color-message {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 0 14px 14px 0;
  font-size: 14px;
}

.quick-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.quick-card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.quick-card>b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: .06em;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.size-pills li {
  padding: 4px 10px;
  border: 1px solid #d7cec2;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.price-mini {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.price-mini li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.price-mini li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.price-mini strong {
  color: var(--red);
  white-space: nowrap;
}

.detail-visual {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 28px;
}

.detail-mainpic {
  display: grid;
  place-items: center;
}

.detail-mainpic img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .12));
}

.detail-photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.detail-photo-row figure {
  margin: 0;
}

.detail-photo-row img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f4ef;
}

.detail-photo-row figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.color-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.color-photo-grid figure {
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.color-photo-grid img {
  width: 100%;
  object-fit: contain;
}

.color-photo-grid figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.color-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.color-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.color-chip i {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, #eee 0 6px, #f8f8f8 6px 12px);
}

.color-chip span {
  display: grid;
  min-width: 0;
  line-height: 1.4;
}

.color-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.color-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.color-strip li {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.table-wrap th, .table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table-wrap thead th {
  background: var(--soft);
  font-weight: 900;
}

.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.size-table tbody th {
  background: #fbf9f6;
}

.price-cell {
  color: var(--red);
  font-weight: 900;
}

.upcharge-note {
  margin-top: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
}

.upcharge-note ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.upcharge-note li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.upcharge-note strong {
  color: var(--red);
}

.feature-grid, .print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-grid h3, .print-grid h3, .content-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-grid p, .print-grid p {
  margin: 0;
  color: #454545;
  font-size: 15px;
}

.order-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.order-flow li {
  position: relative;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  counter-increment: flow;
}

.order-flow li::before {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  content: "STEP "counter(flow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.order-flow b {
  display: block;
  font-size: 17px;
}

.order-flow span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: #454545;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.link-card {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
}

.link-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.link-card:hover {
  border-color: var(--red);
  color: var(--red);
}

.fixed-cta {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.fixed-cta .button {
  min-height: 44px;
}

@media (max-width: 900px) {
  .site-nav a:not(.button) {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel .search-field {
    grid-column: 1 / -1;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-visual {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand img {
    width: 98px;
  }

  .site-nav .button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .section {
    padding: 42px 0;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .filter-panel .search-field {
    grid-column: auto;
  }

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

  .product-image {
    min-height: 250px;
  }

  .detail-hero {
    padding: 32px 0 40px;
  }

  .detail-visual {
    min-height: 0;
    padding: 20px;
  }

  .quick-cards {
    grid-template-columns: 1fr;
  }

  .color-chips {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

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

  .fixed-cta .button {
    flex: 1;
    padding-inline: 10px;
    font-size: 14px;
  }

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

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

  .content-card {
    padding: 22px 18px;
  }

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

  .quote-panel {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .quote-panel .button {
    width: 100%;
  }
}
