/* ============================================================
   Dance Shoes Navi — Main Stylesheet
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --bg-subtle:     #f9f8f6;
  --bg-warm:       #faf7f2;
  --text:          #1a1a1a;
  --text-sub:      #555555;
  --text-muted:    #888888;
  --gold:          #9a7b4f;
  --gold-deep:     #7a5f3a;
  --gold-pale:     #f4ede0;
  --border:        #e8e2d8;
  --border-light:  #f0ece6;
  --max-w:         1100px;
  --article-w:     720px;
  --tr:            0.2s ease;
  --radius:        4px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont,
    'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
    'Noto Sans JP', 'Yu Gothic Medium', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--article {
  max-width: var(--article-w);
}

/* ── Section spacing ──────────────────────────────────────── */
.section {
  padding: 72px 0;
}
.section--sm {
  padding: 48px 0;
}
.section--alt {
  background: var(--bg-subtle);
}
.section--warm {
  background: var(--bg-warm);
}

/* ── Section header ──────────────────────────────────────── */
.section-hd {
  margin-bottom: 48px;
}
.section-hd__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.section-hd__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-hd__desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}
.section-hd--center {
  text-align: center;
}
.section-hd--center .section-hd__desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.site-logo__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}
.site-logo__tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  transition: color var(--tr);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 58px 0 0;
  background: var(--bg);
  z-index: 190;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-sub);
  letter-spacing: 0.03em;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #c8c0b8;
  padding: 56px 0 36px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer__brand .site-logo__name {
  color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
}
.site-footer__brand p {
  font-size: 12px;
  line-height: 1.8;
  color: #888;
  margin: 0;
}
.footer-nav__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.footer-nav a {
  display: block;
  font-size: 13px;
  color: #888;
  padding: 5px 0;
  transition: color var(--tr);
}
.footer-nav a:hover { color: #ccc; }
.site-footer__bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  font-size: 11px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bottom a {
  color: #666;
  transition: color var(--tr);
}
.site-footer__bottom a:hover { color: #999; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--gold-pale);
  opacity: 0.4;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.hero__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  font-weight: 500;
}
.hero__desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 440px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: all var(--tr);
  font-weight: 500;
}
.btn--primary {
  background: var(--text);
  color: #fff;
}
.btn--primary:hover {
  background: #333;
}
.btn--outline {
  border: 1px solid var(--border-strong, var(--border));
  color: var(--text-sub);
}
.btn--outline:hover {
  border-color: var(--text-sub);
  color: var(--text);
}
.btn--gold {
  background: var(--gold);
  color: #fff;
}
.btn--gold:hover {
  background: var(--gold-deep);
}

/* ── Guide Cards ──────────────────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 28px 0 0;
  border-top: 2px solid var(--border);
  transition: border-color var(--tr);
}
.guide-card:hover {
  border-top-color: var(--gold);
}
.guide-card:hover .guide-card__title {
  color: var(--gold-deep);
}
.guide-card__cat {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.guide-card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 10px;
  transition: color var(--tr);
}
.guide-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.guide-card__meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-card__read-more {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* ── Category Cards ──────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--tr);
  text-align: center;
}
.category-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(154,123,79,0.08);
  transform: translateY(-2px);
}
.category-card__icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}
.category-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.category-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Foot Problem Cards ──────────────────────────────────── */
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.foot-card {
  padding: 24px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--tr);
}
.foot-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(154,123,79,0.08);
}
.foot-card__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.foot-card__title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.foot-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Product Cards ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--tr);
  background: var(--bg);
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.product-card__img {
  aspect-ratio: 4/3;
  background: var(--bg-subtle);
  overflow: hidden;
  position: relative;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img {
  transform: scale(1.04);
}
.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border);
}
.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: var(--text);
  color: #fff;
  border-radius: 2px;
}
.product-card__tag--own {
  background: var(--gold);
}
.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__brand {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}
.product-card__usage {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.product-card__for {
  margin-bottom: 12px;
}
.product-card__for-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 500;
}
.product-card__for-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}
.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.product-card__spec {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-sub);
  letter-spacing: 0.03em;
}
.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.product-card__price {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.product-card__price span {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 2px;
}
.product-card__link {
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 12px;
  border-radius: 2px;
  transition: all var(--tr);
  letter-spacing: 0.04em;
}
.product-card__link:hover {
  background: var(--gold);
  color: #fff;
}

/* ── Comparison Axes ──────────────────────────────────────── */
.axis-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.axis-bar__label {
  font-size: 11px;
  color: var(--text-muted);
  width: 72px;
  flex-shrink: 0;
}
.axis-bar__track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.axis-bar__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

/* ── Article layout ──────────────────────────────────────── */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}
.article-header__cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.article-header__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 20px;
}
.article-header__desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 540px;
}
.article-header__meta {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-body {
  padding: 56px 0 80px;
}
.article-body h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 48px 0 16px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.article-body h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 1.6em;
}
.article-body ul,
.article-body ol {
  list-style: none;
  margin: 1.2em 0 1.6em;
}
.article-body ul li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.article-body ol {
  counter-reset: ol-count;
}
.article-body ol li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border-light);
  counter-increment: ol-count;
  position: relative;
}
.article-body ol li::before {
  content: counter(ol-count);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.article-note {
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-note p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ── Inline info box ─────────────────────────────────────── */
.info-box {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--gold-pale);
  border-radius: var(--radius);
}
.info-box__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.info-box p {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
}

/* ── Table ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  padding: 12px 16px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: left;
  white-space: nowrap;
  font-weight: 500;
}
td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-sub);
  line-height: 1.6;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--border); }

/* ── Loading state ───────────────────────────────────────── */
.loading-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.loading-state__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.api-notice {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}
.api-notice a { color: var(--gold); text-decoration: underline; }

/* ── Page hero (category/guide pages) ───────────────────── */
.page-hero {
  padding: 64px 0 48px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.page-hero__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
  display: block;
}
.page-hero__title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.page-hero__desc {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 520px;
  line-height: 1.9;
}

/* ── Article list ────────────────────────────────────────── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-list-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  transition: opacity var(--tr);
}
.article-list-item:hover { opacity: 0.7; }
.article-list-item__cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.article-list-item__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
}
.article-list-item__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.article-list-item__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero { padding: 64px 0 56px; }
  .guide-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero::before { width: 280px; height: 280px; right: -80px; top: -80px; }
  .article-list-item { flex-direction: column; gap: 12px; }
}
@media (max-width: 380px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ── Responsive 2-col utility ────────────────────────────── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 700px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
