/* ============================================================
   Pattern B — Natural × Editorial
   オフホワイト × コッパー × エディトリアル
   ============================================================ */

:root {
  --paper:        #faf7f2;
  --paper-2:      #f3eee5;
  --paper-3:      #ebe3d3;
  --ink:          #1f1812;
  --ink-soft:     #4a3f33;
  --ink-mute:     #7a6b58;
  --line:         #d8cdb7;
  --line-soft:    #ebe1cd;
  --surface:      #ffffff;

  --copper:       #b67434;
  --copper-deep:  #8a4f1d;
  --copper-soft:  #f6ebd6;
  --olive:        #6b7e3a;
  --terracotta:   #c4583c;
  --indigo:       #2c3856;

  --max:          1180px;
  --radius:       4px;
  --radius-sm:    2px;
  --shadow-sm:    0 1px 2px rgba(60, 40, 20, 0.06);
  --shadow:       0 8px 24px rgba(60, 40, 20, 0.08);
  --shadow-lg:    0 20px 50px rgba(60, 40, 20, 0.12);

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Times New Roman", serif;
  --sans:  "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   戻るバー
   ============================================================ */
.back-strip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  transition: background 0.15s;
}
.back-strip:hover { background: var(--copper-deep); }

/* ============================================================
   共通ユーティリティ
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--copper-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-family: var(--sans);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-lg { padding: 16px 30px; font-size: 14px; }
.btn-primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--copper-deep);
  border-color: var(--copper-deep);
}
.btn-accent {
  color: var(--paper);
  background: var(--copper);
  border-color: var(--copper);
}
.btn-accent:hover { background: var(--copper-deep); border-color: var(--copper-deep); }
.btn-line {
  color: var(--paper);
  background: #06C755;
  border-color: #06C755;
}
.btn-line:hover { background: #05a847; border-color: #05a847; }
.reason-card.line-card .reason-icon {
  background: #f0fdf4;
  border-color: #06C755;
  color: #06C755;
}
.reason-card.line-card strong { color: #064e3b; }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.btn-outline {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--paper);
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.98);
  box-shadow: 0 4px 20px rgba(60, 40, 20, 0.05);
}
.util-bar {
  background: var(--ink);
  color: var(--paper-3);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.util-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.util-tag { font-weight: 600; color: var(--copper-soft); }
.util-right { display: flex; gap: 18px; align-items: center; }
.util-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.util-item svg { width: 12px; height: 12px; color: var(--copper); }
.util-link { color: var(--paper); font-weight: 700; }
.util-link:hover { color: var(--copper); }

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--copper);
}
.brand strong, .brand small { display: block; }
.brand strong {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 700;
}
.brand small {
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.header-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 4px 0 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.15s;
}
.header-search:focus-within {
  border-color: var(--ink);
  background: var(--surface);
}
.search-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink-mute);
}
.search-icon svg { width: 16px; height: 16px; }
.header-search input {
  width: 100%;
  min-width: 0;
  margin-left: 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.header-search button {
  height: 38px;
  padding: 0 22px;
  font-size: 12.5px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--ink);
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-search button:hover { background: var(--copper-deep); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--serif);
  letter-spacing: 0.08em;
}
.header-nav a {
  padding: 9px 14px;
  border-radius: 0;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--copper-deep); }
.cart-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--paper) !important;
  background: var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}
.cart-link svg { width: 14px; height: 14px; }
.cart-link:hover { background: var(--copper-deep); color: var(--paper) !important; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(182, 116, 52, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy { max-width: 560px; }
.hero-num {
  display: block;
  margin-bottom: 22px;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--copper-deep);
  font-weight: 600;
}
.hero .lead {
  max-width: 480px;
  margin: 26px 0 36px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

/* ヒーロー検索 */
.hero-search {
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 0;
}
.hero-search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-search-tabs button {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.hero-search-tabs button:hover { color: var(--copper-deep); }
.hero-search-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.hero-search-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background: var(--paper-2);
}
.hsr-icon {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink-mute);
}
.hsr-icon svg { width: 18px; height: 18px; }
.hero-search-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  font-size: 14.5px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.hero-search-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  background: var(--ink);
  transition: background 0.15s;
}
.hero-search-row button svg { width: 14px; height: 14px; }
.hero-search-row button:hover { background: var(--copper-deep); }

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}
.sug-label {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-right: 4px;
}
.suggestions button {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  border-radius: 0;
  padding: 6px 12px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.suggestions button:hover {
  background: var(--paper-2);
  border-color: var(--copper);
  color: var(--copper-deep);
}

/* ヒーロー統計 */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  align-items: center;
}
.hero-stats .divider {
  width: 1px;
  height: 32px;
  background: var(--line);
  margin: 0 28px;
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0;
}
.hero-stats strong span {
  font-size: 18px;
  color: var(--copper);
  margin-left: 2px;
}
.hero-stats small {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* ヒーロー商品ステージ */
.hero-visual {
  position: relative;
  min-height: 540px;
  transform-style: preserve-3d;
  perspective: 1300px;
}
.product-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px 32px 56px;
  transition: transform 0.18s var(--ease);
  overflow: visible;
}
.product-stage::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--copper);
  z-index: -1;
}
.ps-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 600;
}
.ps-num {
  color: var(--copper-deep);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.ps-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.product-stage img {
  width: 110%;
  max-width: none;
  margin-left: -5%;
  filter: drop-shadow(0 24px 30px rgba(60, 40, 20, 0.16));
}
.product-label {
  margin-top: 8px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line-soft);
}
.product-label strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 700;
}
.product-label small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.pl-meta {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pl-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.pl-meta svg {
  width: 12px; height: 12px;
  color: var(--olive);
  flex-shrink: 0;
}

/* ============================================================
   クイックレーン
   ============================================================ */
.quick-lanes {
  width: min(var(--max), calc(100% - 40px));
  margin: -64px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.lane {
  position: relative;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-right: 1px solid var(--line-soft);
  transition: background 0.18s var(--ease);
}
.lane:last-child { border-right: 0; }
.lane:hover { background: var(--paper-2); }
.lane-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--copper);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.lane-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.lane strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.lane-primary strong { color: var(--ink); }
.lane-secondary strong { color: var(--copper-deep); }
.lane-dark strong { color: var(--ink); }
.lane-converter strong { color: var(--indigo); }
.lane small {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
}
.lane-arrow {
  margin-top: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.2s;
  align-self: flex-start;
}
.lane-arrow svg { width: 14px; height: 14px; }
.lane:hover .lane-arrow {
  background: var(--ink);
  color: var(--paper);
  transform: translateX(3px);
}

/* ============================================================
   主力商品ハイライト
   ============================================================ */
.flagship-section {
  margin-top: 120px;
  padding: 80px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.flagship-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.flagship-image {
  position: relative;
}
.frame-num {
  position: absolute;
  top: -28px; left: -10px;
  font-family: var(--serif);
  font-size: 90px;
  font-weight: 700;
  color: var(--copper);
  opacity: 0.20;
  line-height: 1;
}
.flagship-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 48px 36px;
  z-index: 1;
}
.flagship-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--copper);
  z-index: -1;
}
.flagship-frame img {
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(60, 40, 20, 0.18));
}
.frame-caption {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-align: right;
}

.flagship-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.flagship-copy h2 em {
  font-style: italic;
  color: var(--copper-deep);
}
.flagship-copy > p {
  margin: 22px 0 28px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
}
.flagship-copy strong { color: var(--ink); }

.flagship-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.flagship-points li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.fp-num {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--copper);
  letter-spacing: 0.06em;
  font-weight: 700;
  width: 36px;
}
.flagship-points li > span:last-child {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.flagship-points strong {
  display: block;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.flagship-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section,
.finder-section,
.flow-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 110px auto 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 44px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2,
.finder-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--ink);
}
.section-head h2 em,
.finder-copy h2 em {
  font-style: italic;
  color: var(--copper-deep);
}
.section-head p:not(.eyebrow),
.finder-copy p:not(.eyebrow) {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
  max-width: 580px;
}

/* ============================================================
   商品カテゴリ
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.category-card {
  position: relative;
  min-height: 180px;
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s var(--ease);
  overflow: hidden;
}
.category-card:hover { background: var(--paper-2); }
.category-card:nth-child(4n) { border-right: 0; }
.category-card:nth-last-child(-n+4) { border-bottom: 0; }
.cat-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--copper);
  letter-spacing: 0.18em;
  font-weight: 600;
}
.cat-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
}
.cat-icon svg { width: 22px; height: 22px; }
.category-card strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 700;
  padding-top: 12px;
}
.category-card small {
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.cat-arrow {
  position: absolute;
  right: 22px; bottom: 22px;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  transition: all 0.2s;
}
.cat-arrow svg { width: 12px; height: 12px; }
.category-card:hover .cat-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* 主力カテゴリ */
.category-card.featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
}
.category-card.featured:hover { background: #2a2017; }
.category-card.featured.amber {
  background: var(--copper-deep);
}
.category-card.featured.amber:hover { background: #6f3d12; }
.category-card.featured.indigo {
  background: var(--indigo);
}
.category-card.featured.indigo:hover { background: #1f2f4a; }
.category-card.featured .cat-num { color: var(--copper); }
.category-card.featured.amber .cat-num { color: var(--copper-soft); }
.category-card.featured.indigo .cat-num { color: #c9d4ed; }
.category-card.featured strong {
  font-size: 26px;
  color: var(--paper);
}
.category-card.featured small { color: rgba(250, 247, 242, 0.7); }
.category-card.featured .cat-arrow {
  border-color: rgba(250, 247, 242, 0.4);
  color: var(--paper);
}
.category-card.featured:hover .cat-arrow {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ============================================================
   メーカー
   ============================================================ */
.maker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.maker-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s var(--ease);
  position: relative;
}
.maker-tile:nth-child(4n) { border-right: 0; }
.maker-tile:nth-last-child(-n+4) { border-bottom: 0; }
.maker-tile:hover { background: var(--paper-2); }
.m-jp {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.m-en {
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  font-weight: 600;
}
.m-count {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--copper-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
}
.maker-tile.more {
  background: var(--ink);
}
.maker-tile.more:hover { background: var(--copper-deep); }
.maker-tile.more .m-jp { color: var(--paper); }
.maker-tile.more .m-en { color: var(--copper); }

/* ============================================================
   人気機種ランキング
   ============================================================ */
.rank-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.rank-tabs button {
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--serif);
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.1em;
  transition: all 0.15s;
}
.rank-tabs button:hover { color: var(--copper-deep); }
.rank-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.rank-card {
  position: relative;
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s var(--ease);
}
.rank-card:hover { background: var(--paper-2); }
.rank-card:nth-child(3n) { border-right: 0; }
.rank-card:nth-last-child(-n+3) { border-bottom: 0; }
.rank-no {
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--copper);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.rank-img {
  width: 100px;
  height: 90px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-img img {
  width: 130%;
  max-width: none;
  margin-left: -15%;
}
.rank-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rank-tag {
  font-size: 10.5px;
  color: var(--copper-deep);
  font-weight: 700;
  letter-spacing: 0.1em;
  align-self: flex-start;
}
.rank-body strong {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  margin-top: 6px;
}
.rank-price small {
  color: var(--ink-mute);
  font-weight: 600;
  font-size: 11px;
  margin-left: 6px;
  font-family: var(--sans);
}

/* ============================================================
   五十音
   ============================================================ */
.aiueo-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 40px;
}
.aiueo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
  justify-content: center;
}
.aiueo-tabs button {
  width: 48px; height: 48px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--line-soft);
  transition: all 0.15s;
}
.aiueo-tabs button:last-child { border-right: 0; }
.aiueo-tabs button:hover {
  background: var(--paper-2);
  color: var(--copper-deep);
}
.aiueo-tabs button.active {
  background: var(--ink);
  color: var(--copper);
}
.aiueo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 24px;
}
.aiueo-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.12s;
}
.aiueo-list a:hover {
  color: var(--copper-deep);
  background: var(--paper-2);
}
.aiueo-list .cnt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--copper);
  font-weight: 600;
}

/* ============================================================
   MACHINE FINDER
   ============================================================ */
.finder-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.finder-panel::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--copper);
  z-index: -1;
}
.finder-copy h2 { text-align: left; }
.finder-copy p { text-align: left; margin-left: 0; }
.finder-widget {
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.tabs button {
  min-height: 44px;
  border-right: 1px solid var(--line-soft);
  color: var(--ink-soft);
  background: var(--surface);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: all 0.15s;
}
.tabs button:last-child { border-right: 0; }
.tabs button:hover { color: var(--copper-deep); background: var(--paper-2); }
.tabs button.active {
  color: var(--copper);
  background: var(--ink);
}
.finder-body {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 20px;
}
.search-line {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
}
.search-line input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
}
.search-line button {
  min-height: 44px;
  padding: 0 22px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.15s;
}
.search-line button:hover { background: var(--copper-deep); }
.maker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.maker-chips button {
  padding: 7px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.maker-chips button:hover {
  color: var(--copper-deep);
  border-color: var(--copper);
  background: var(--copper-soft);
}

/* ============================================================
   選ばれる理由
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.reason-card {
  position: relative;
  padding: 36px 24px 32px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
  transition: background 0.18s var(--ease);
}
.reason-card:last-child { border-right: 0; }
.reason-card:hover { background: var(--paper-2); }
.reason-num {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--copper);
  opacity: 0.4;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-style: italic;
}
.reason-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 16px auto 18px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.reason-icon svg { width: 28px; height: 28px; }
.reason-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.reason-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* ============================================================
   購入フロー
   ============================================================ */
.flow-section { margin-bottom: 100px; }
.flow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.flow-card {
  position: relative;
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line-soft);
  transition: background 0.18s var(--ease);
}
.flow-card:last-child { border-right: 0; }
.flow-card:hover { background: var(--paper-2); }
.flow-step {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--copper);
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 14px;
  font-style: italic;
}
.flow-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.flow-card small {
  display: block;
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
}
.flow-card.goal .flow-step { color: var(--terracotta); }

/* ============================================================
   お知らせ
   ============================================================ */
.news-list {
  background: var(--surface);
  border: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 110px 80px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--paper-2); }
.n-date {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--copper-deep);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.n-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  border: 1px solid;
  letter-spacing: 0.08em;
}
.n-tag.new { color: var(--terracotta); border-color: var(--terracotta); }
.n-tag.info { color: var(--indigo); border-color: var(--indigo); }
.n-tag.maint { color: var(--ink-mute); border-color: var(--ink-mute); }
.n-title {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
}

/* ============================================================
   フッター CTA
   ============================================================ */
.footer-cta {
  margin-top: 110px;
  padding: 80px 0;
  color: var(--paper);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid var(--copper);
  pointer-events: none;
}
.fc-inner {
  position: relative;
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.fc-text .eyebrow { color: var(--copper); }
.fc-text .eyebrow::before { background: var(--copper); }
.fc-text h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.fc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.f-brand p {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-mute);
  max-width: 320px;
}
.f-col h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.f-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.f-col a {
  color: var(--ink-soft);
  font-size: 12.5px;
  transition: color 0.15s;
}
.f-col a:hover { color: var(--copper-deep); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-mute);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  letter-spacing: 0.04em;
}

/* ============================================================
   reveal アニメーション
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1100px) {
  .category-grid, .reasons-grid, .maker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card.featured { grid-column: span 2; }
  .category-card:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .category-card:nth-child(2n) { border-right: 0; }
  .maker-tile:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .maker-tile:nth-child(2n) { border-right: 0; }
  .reason-card:nth-child(2n) { border-right: 0; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-card:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .rank-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 980px) {
  .util-bar { display: none; }
  .header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }
  .header-nav { overflow-x: auto; padding-bottom: 2px; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 0 80px;
    gap: 44px;
  }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .hero-stats .divider { margin: 0 18px; }

  .quick-lanes {
    grid-template-columns: 1fr;
    margin-top: -32px;
  }
  .lane { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .lane:last-child { border-bottom: 0; }

  .flagship-section { margin-top: 80px; padding: 60px 0; }
  .flagship-inner { grid-template-columns: 1fr; gap: 48px; }
  .frame-num { font-size: 60px; top: -14px; }

  .finder-panel {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .flow-track { grid-template-columns: repeat(2, 1fr); }
  .flow-card:nth-child(2) { border-right: 0; }
  .flow-card:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }

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

  .section, .finder-section, .flow-section { margin-top: 80px; }
}

@media (max-width: 640px) {
  .header-inner, .hero-inner, .quick-lanes,
  .section, .finder-section, .flow-section,
  .footer-grid, .footer-bottom, .fc-inner,
  .flagship-inner, .util-inner {
    width: min(100% - 28px, var(--max));
  }

  .hero h1 { font-size: 30px; line-height: 1.3; }
  .hero-search-row { flex-direction: column; padding: 6px; gap: 6px; }
  .hero-search-row input { padding: 12px 14px; }
  .hero-search-row button { width: 100%; justify-content: center; }
  .hsr-icon { display: none; }

  .hero-stats { gap: 14px 18px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats .divider { display: none; }

  .product-stage { padding: 28px 22px 36px; }

  .category-grid, .maker-grid, .reasons-grid, .rank-grid, .flow-track {
    grid-template-columns: 1fr;
  }
  .category-card, .maker-tile, .reason-card, .rank-card, .flow-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line-soft) !important;
  }
  .category-card:last-child, .maker-tile:last-child,
  .reason-card:last-child, .rank-card:last-child, .flow-card:last-child {
    border-bottom: 0 !important;
  }
  .category-card.featured { grid-column: auto; }

  .aiueo-panel { padding: 22px; }
  .aiueo-list { grid-template-columns: 1fr; }
  .aiueo-tabs button { width: 38px; height: 38px; font-size: 14px; }

  .footer-grid { grid-template-columns: 1fr; padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }
  .n-tag { align-self: flex-start; padding: 3px 10px; }

  .fc-inner { grid-template-columns: 1fr; }
}
