@charset "UTF-8";

/* 色の変更はここでまとめて設定できます。 */
:root {
  --page-bg: #f5f7fa;
  --surface: #ffffff;
  --text: #172b3a;
  --muted: #526271;
  --accent: #2256cf;
  --border: #dce3e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2 { margin: 0; }
a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--text);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 88px; padding-block: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.brand { font-family: Arial, sans-serif; font-size: 1.75rem; font-weight: 800; line-height: 1.2; letter-spacing: -.06em; }
.brand-dot, .heading-dot { color: var(--accent); }
.header-label { font-size: .875rem; font-weight: 700; white-space: nowrap; }

main { flex: 1; padding-block: 64px 88px; }
.page-heading { margin-bottom: 36px; }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-family: Arial, sans-serif; font-size: .8125rem; font-weight: 700; letter-spacing: .15em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.45; font-weight: 800; }
.heading-dot { margin-left: .15em; }
.page-description { margin-top: 12px; color: var(--muted); }

/* 商品は自動で折り返します。追加してもCSSの変更は不要です。 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.product-grid > li { min-width: 0; }

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

/* 写真を入れるまでの、商品番号を表示するエリア。 */
.product-visual { position: relative; display: grid; aspect-ratio: 20 / 11; min-height: 12rem; padding: 26px 30px 20px; overflow: hidden; color: #fff; }
.visual-navy { background: #192e40; }
.visual-blue { background: #315d78; }
.visual-label { align-self: start; font-family: Arial, sans-serif; font-size: .8125rem; font-weight: 700; letter-spacing: .18em; }
.visual-number { align-self: end; justify-self: end; font-family: Arial, sans-serif; font-size: clamp(5rem, 10vw, 8rem); font-weight: 400; line-height: 1; letter-spacing: -.075em; }
.product-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* 商品全体を切り取らずに見せたい写真は object-fit: contain; に変更します。 */

.product-body { flex: 1; display: flex; flex-direction: column; padding: 30px; overflow-wrap: anywhere; }
.product-category { margin-bottom: 8px; color: var(--accent); font-size: .875rem; font-weight: 700; }
.product-body h2 { font-size: 1.5rem; line-height: 1.6; }
.product-description { margin-top: 12px; margin-bottom: 28px; color: var(--muted); }
.product-link { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; }
.link-arrow { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: #fff; font-family: Arial, sans-serif; font-size: 1.25rem; transition: background .2s ease; }

@media (hover: hover) {
  .product-card:hover { transform: translateY(-5px); border-color: #a7b8c8; box-shadow: 0 14px 32px rgb(23 43 58 / 10%); }
  .product-card:hover .link-arrow { background: var(--accent); }
}

.site-footer { border-top: 1px solid var(--border); }
.footer-inner { padding-block: 26px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-family: Arial, sans-serif; font-size: .875rem; font-weight: 700; }
.footer-label { color: var(--muted); font-size: .75rem; font-weight: 400; letter-spacing: .12em; }

@media (max-width: 44rem) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; }
  .brand { font-size: 1.5rem; }
  main { padding-block: 40px 56px; }
  .page-heading { margin-bottom: 28px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-body { padding: 24px; }
  .product-visual { padding: 22px 24px; }
  .visual-number { font-size: clamp(5rem, 20vw, 8rem); }
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .link-arrow { transition: none; }
  .product-card:hover { transform: none; }
}
