/* ==========================================
   プロの道具図鑑 v2
   静かな白、整列、写真主役の「図鑑＋カタログ」UI
   ========================================== */

:root {
  --ptz-bg: #ffffff;
  --ptz-text: #222222;
  --ptz-muted: #68645f;
  --ptz-line: #dedbd6;
  --ptz-soft: #f7f6f3;
  --ptz-soft-2: #f1efeb;
  --ptz-accent: #7f0019;
  --ptz-max: 1320px;
  --ptz-narrow: 820px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ptz-bg);
  color: var(--ptz-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover { color: var(--ptz-accent); }

button, input { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

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

/* ---------- Header ---------- */

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

.admin-bar .site-header { top: 32px; }

.ptz-header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.site-title,
.ptz-footer-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .03em;
}

.custom-logo-link img {
  width: auto;
  max-height: 40px;
}

.primary-nav { justify-self: end; }

.ptz-nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ptz-nav-list a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .015em;
}

.ptz-search-toggle,
.ptz-menu-toggle {
  border: 0;
  background: transparent;
  color: var(--ptz-text);
  cursor: pointer;
}

.ptz-search-toggle {
  font-size: 26px;
  line-height: 1;
  padding: 4px 2px;
}

.ptz-menu-toggle {
  display: none;
  width: 34px;
  padding: 4px;
}

.ptz-menu-toggle > span:not(.screen-reader-text) {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
}

.ptz-search-panel {
  border-top: 1px solid var(--ptz-line);
  background: #fff;
  padding: 18px 0;
}

.ptz-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--ptz-text);
}

.ptz-search-form input {
  border: 0;
  outline: 0;
  padding: 12px 2px;
  font-size: 17px;
  background: transparent;
}

.ptz-search-form button {
  border: 0;
  background: transparent;
  padding: 8px 4px 8px 28px;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.ptz-hero {
  min-height: 350px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ptz-line);
  background: #fff;
}

.ptz-hero-inner {
  padding-block: 58px 62px;
}

.ptz-eyebrow {
  margin: 0 0 14px;
  color: var(--ptz-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.ptz-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 4.7vw, 62px);
  line-height: 1.24;
  letter-spacing: -.03em;
  font-weight: 650;
}

.ptz-hero-copy {
  margin: 20px 0 0;
  color: var(--ptz-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.95;
}

.ptz-hero-links {
  margin-top: 24px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.ptz-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Sections ---------- */

.ptz-section {
  padding: clamp(58px, 6vw, 84px) 0;
}

.ptz-section-muted {
  background: #fff;
  border-top: 1px solid var(--ptz-line);
  border-bottom: 1px solid var(--ptz-line);
}

.ptz-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.ptz-section-head h2,
.ptz-about-inner h2 {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.3;
  letter-spacing: -.018em;
  font-weight: 650;
}

.ptz-section-head > p,
.ptz-section-head > a {
  margin-bottom: 4px;
}

.ptz-section-head p:not(.ptz-section-subcopy) {
  margin-top: 0;
  color: var(--ptz-muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ptz-section-subcopy {
  margin: 7px 0 0;
  color: var(--ptz-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Profession grid ---------- */

.ptz-term-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 34px 22px;
}

.ptz-term-card { display: block; }

.ptz-term-visual {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ptz-soft);
  display: grid;
  place-items: center;
}

.ptz-term-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease, transform .25s ease;
}

.ptz-term-card:hover .ptz-term-visual img {
  opacity: .92;
  transform: scale(1.015);
}

.ptz-term-visual.is-placeholder {
  border: 1px solid #eeeae4;
}

.ptz-term-visual.is-placeholder span {
  font-size: clamp(24px, 3vw, 46px);
  color: #b8b2aa;
  font-weight: 500;
}

.ptz-term-name {
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* ---------- Tool cards ---------- */

.ptz-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 22px;
}

.ptz-tool-card {
  margin: 0;
  min-width: 0;
}

.ptz-tool-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ptz-soft);
}

.ptz-tool-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease, transform .25s ease;
}

.ptz-tool-card-link:hover .ptz-tool-card-image img {
  opacity: .93;
  transform: scale(1.012);
}

.ptz-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  background: var(--ptz-soft);
  color: #aaa49b;
  font-size: 10px;
  letter-spacing: .14em;
}

.ptz-image-placeholder.is-large { min-height: 520px; }

.ptz-tool-card-body { padding-top: 13px; }

.ptz-card-kicker,
.ptz-single-kicker {
  color: var(--ptz-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .035em;
}

.ptz-tool-card h3 {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.62;
  font-weight: 600;
}

.ptz-card-product {
  margin-top: 6px;
  color: var(--ptz-muted);
  font-size: 12px;
}

/* ---------- Categories ---------- */

.ptz-category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  border-top: 1px solid var(--ptz-line);
}

.ptz-category-links a {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 0 0;
  border-bottom: 1px solid var(--ptz-line);
  font-size: 14px;
  font-weight: 600;
}

.ptz-category-links a:nth-child(odd) {
  margin-right: 34px;
}

/* ---------- About ---------- */

.ptz-about-strip {
  border-top: 1px solid var(--ptz-line);
  background: var(--ptz-soft);
  color: var(--ptz-text);
  padding: 72px 0;
}

.ptz-about-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: start;
}

.ptz-about-inner .ptz-eyebrow { color: var(--ptz-muted); }

.ptz-about-inner > p {
  margin: 4px 0 0;
  color: var(--ptz-muted);
  line-height: 2;
  font-size: 14px;
}

.ptz-empty,
.ptz-empty-box { color: var(--ptz-muted); }

.ptz-empty-box {
  padding: 34px;
  border: 1px solid var(--ptz-line);
  background: #fff;
}

/* ---------- Archive / pages ---------- */

.ptz-archive-head,
.ptz-page-header {
  padding: 74px 0 46px;
  border-bottom: 1px solid var(--ptz-line);
}

.ptz-archive-head h1,
.ptz-page-header h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.ptz-archive-head > .ptz-container > p:last-child {
  color: var(--ptz-muted);
  margin-bottom: 0;
}

/* ---------- Single tool ---------- */

.ptz-single-header {
  padding: 66px 0 40px;
}

.ptz-single-title-wrap { max-width: 980px; }

.ptz-single-kicker {
  display: inline-block;
  margin-bottom: 14px;
  border-bottom: 1px solid currentColor;
}

.ptz-single-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.28;
  letter-spacing: -.03em;
  font-weight: 650;
}

.ptz-single-toolname {
  margin: 16px 0 0;
  color: var(--ptz-muted);
  font-size: 17px;
}

.ptz-single-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
  padding-bottom: 76px;
}

.ptz-single-image { background: var(--ptz-soft); }

.ptz-single-image img {
  width: 100%;
  height: auto;
}

.ptz-fact-panel {
  position: sticky;
  top: 104px;
  border-top: 1px solid var(--ptz-text);
}

.admin-bar .ptz-fact-panel { top: 136px; }

.ptz-fact-panel > .ptz-eyebrow { padding-top: 16px; }

.ptz-fact-row {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--ptz-line);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
}

.ptz-fact-row dt {
  color: var(--ptz-muted);
  font-size: 11px;
}

.ptz-fact-row dd {
  margin: 0;
  font-size: 13px;
}

.ptz-fact-reason {
  padding: 20px 0;
  border-bottom: 1px solid var(--ptz-line);
}

.ptz-fact-reason strong { font-size: 12px; }

.ptz-fact-reason p {
  margin: 8px 0 0;
  color: var(--ptz-muted);
  font-size: 13px;
}

.ptz-action-stack {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.ptz-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--ptz-text);
  font-weight: 600;
  font-size: 13px;
}

.ptz-btn-primary {
  background: var(--ptz-text);
  color: #fff;
}

.ptz-btn-primary:hover {
  background: var(--ptz-accent);
  border-color: var(--ptz-accent);
  color: #fff;
}

.ptz-btn-secondary { background: #fff; }

.ptz-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--ptz-narrow)) 1fr;
  padding-bottom: 100px;
}

.ptz-article-content {
  grid-column: 1;
  font-size: 16px;
  line-height: 2.05;
}

.ptz-article-content > *:first-child { margin-top: 0; }

.ptz-article-content h2 {
  margin: 72px 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ptz-text);
  font-size: clamp(25px, 2.8vw, 35px);
  line-height: 1.45;
}

.ptz-article-content h3 {
  margin: 44px 0 16px;
  font-size: 21px;
}

.ptz-article-content p { margin: 0 0 1.75em; }

.ptz-article-content blockquote {
  margin: 40px 0;
  padding: 26px 30px;
  border-left: 2px solid var(--ptz-accent);
  background: var(--ptz-soft);
}

.ptz-article-content figure { margin: 46px 0; }

.ptz-page-content {
  max-width: var(--ptz-narrow);
  padding-top: 54px;
  padding-bottom: 90px;
}

/* ---------- Pagination / standard ---------- */

.ptz-pagination { margin-top: 64px; }

.ptz-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ptz-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ptz-line);
  font-size: 13px;
}

.ptz-pagination .current {
  background: var(--ptz-text);
  color: #fff;
  border-color: var(--ptz-text);
}

.ptz-standard-list { max-width: 900px; }

.ptz-standard-card {
  padding: 26px 0;
  border-bottom: 1px solid var(--ptz-line);
}

.ptz-standard-card h2 { margin: 0 0 9px; }

.ptz-not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 90px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--ptz-line);
  padding: 50px 0 28px;
  background: #fff;
}

.ptz-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
}

.ptz-footer-copy {
  max-width: 500px;
  color: var(--ptz-muted);
  font-size: 13px;
}

.ptz-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.ptz-footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--ptz-line);
  color: var(--ptz-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .ptz-term-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }

  .ptz-menu-toggle {
    display: block;
    justify-self: end;
  }

  .ptz-header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ptz-line);
  }

  .primary-nav.is-open { display: block; }

  .ptz-nav-list {
    width: min(calc(100% - 48px), var(--ptz-max));
    margin: auto;
    padding: 18px 0 22px;
    display: grid;
    gap: 0;
  }

  .ptz-nav-list li { border-bottom: 1px solid var(--ptz-line); }
  .ptz-nav-list a { display: block; padding: 14px 0; }

  .ptz-term-grid { grid-template-columns: repeat(3, 1fr); }
  .ptz-tool-grid { grid-template-columns: repeat(3, 1fr); }

  .ptz-single-hero-grid { grid-template-columns: 1fr; }
  .ptz-fact-panel { position: static; }

  .ptz-about-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .ptz-container {
    width: min(calc(100% - 32px), var(--ptz-max));
  }

  .ptz-header-inner { min-height: 64px; }
  .primary-nav { top: 64px; }
  .site-title { font-size: 17px; }

  .ptz-hero { min-height: auto; }
  .ptz-hero-inner { padding-block: 52px 54px; }
  .ptz-hero-copy br { display: none; }

  .ptz-section { padding: 54px 0; }

  .ptz-section-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .ptz-term-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 14px;
  }

  .ptz-tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 12px;
  }

  .ptz-tool-card h3 {
    font-size: 13px;
    line-height: 1.55;
  }

  .ptz-card-kicker,
  .ptz-card-product { font-size: 10px; }

  .ptz-category-links { grid-template-columns: 1fr; }
  .ptz-category-links a:nth-child(odd) { margin-right: 0; }

  .ptz-single-header { padding: 50px 0 28px; }
  .ptz-single-hero-grid { padding-bottom: 56px; }

  .ptz-article-layout {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }

  .ptz-article-content { font-size: 15px; }

  .ptz-footer-grid { grid-template-columns: 1fr; }
}
