/* ======================================================
   Color Lab Hub
   モバイルファースト
====================================================== */

.clh-page {
  --clh-ink: #1d1b1a;
  --clh-muted: #6c6762;
  --clh-line: #ded8d1;
  --clh-paper: #fffdf9;
  --clh-soft: #f5f1eb;
  --clh-accent: #842a21;
  color: var(--clh-ink);
  background: var(--clh-paper);
}

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

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

.clh-hero {
  padding: 28px 0 20px;
}

.clh-hero__visual {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(28, 23, 17, 0.12);
}

.cl-hero-image{
    width:100%;
    max-height:420px;
    object-fit:cover;
    border-radius:16px;
}

.clh-intro {
  padding: 22px 2px 0;
}

.clh-eyebrow,
.clh-section-heading__sub {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clh-accent);
}

.clh-title,
.clh-section-heading h2 {
  margin: 0;
  line-height: 1.25;
}

.clh-title {
  font-size: clamp(1.9rem, 8vw, 3.4rem);
}

.clh-lead,
.clh-section-heading p {
  margin: 10px 0 0;
  line-height: 1.85;
  color: var(--clh-muted);
}

.clh-finder,
.clh-latest,
.clh-reading {
  padding: 42px 0;
}

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

.clh-section-heading {
  margin-bottom: 22px;
}

.clh-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 28px;
}

.clh-search__input {
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #bbb3aa;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.clh-search__input:focus {
  outline: 3px solid rgba(132, 42, 33, 0.15);
  border-color: var(--clh-accent);
}

.clh-search__button {
  min-width: 54px;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--clh-ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.clh-search__button-text {
  display: none;
}

.clh-hues__title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.clh-hues__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.clh-hue {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--clh-line);
  border-radius: 12px;
  background: #fff;
  color: var(--clh-ink);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clh-hue:hover,
.clh-hue:focus-visible {
  transform: translateY(-2px);
  border-color: #aaa198;
  box-shadow: 0 8px 18px rgba(30, 25, 20, 0.1);
}

.clh-hue__swatch {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.clh-hue.is-red .clh-hue__swatch {
  background: linear-gradient(135deg, #b6002c, #f0829f);
}

.clh-hue.is-orange-yellow .clh-hue__swatch {
  background: linear-gradient(135deg, #e97819, #f4d94e);
}

.clh-hue.is-green .clh-hue__swatch {
  background: linear-gradient(135deg, #1d8057, #9bcf69);
}

.clh-hue.is-blue .clh-hue__swatch {
  background: linear-gradient(135deg, #15398a, #4aa6d8);
}

.clh-hue.is-purple .clh-hue__swatch {
  background: linear-gradient(135deg, #49216d, #a06dde);
}

.clh-hue.is-neutral .clh-hue__swatch {
  background: linear-gradient(135deg, #4c2f24, #d2d0cb 60%, #252525);
}

.clh-all-colors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--clh-ink);
  border-radius: 12px;
  color: var(--clh-ink);
  background: transparent;
  text-decoration: none;
  font-weight: 700;
}

.clh-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.clh-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--clh-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(35, 28, 20, 0.06);
}

.clh-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.clh-card__media {
  margin: 0;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4 / 3;
}

.clh-card__image,
.clh-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.clh-card__placeholder {
  background: var(--clh-main-color);
}

.clh-card__link:hover .clh-card__image {
  transform: scale(1.035);
}

.clh-card__body {
  padding: 12px;
}

.clh-card__swatch-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.clh-card__swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clh-main-color);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.clh-card__hex {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--clh-muted);
}

.clh-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.clh-card__reading,
.clh-card__type {
  margin: 4px 0 0;
  color: var(--clh-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.clh-more-wrap {
  margin-top: 26px;
  text-align: center;
}

.clh-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: min(100%, 360px);
  padding: 0 22px;
  border-radius: 999px;
  background: var(--clh-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.clh-section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.clh-text-link {
  display: none;
  color: var(--clh-accent);
  text-decoration: none;
  font-weight: 700;
}

.clh-reading {
  background: #f0ece6;
}

.clh-guide-grid {
  display: grid;
  gap: 12px;
}

.clh-guide-card a {
  position: relative;
  display: block;
  min-height: 116px;
  padding: 20px 54px 20px 20px;
  border: 1px solid var(--clh-line);
  border-radius: 12px;
  background: #fff;
  color: var(--clh-ink);
  text-decoration: none;
}

.clh-guide-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--clh-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clh-guide-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.clh-guide-card__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.clh-empty {
  padding: 24px;
  border: 1px dashed var(--clh-line);
  text-align: center;
  color: var(--clh-muted);
}

@media (min-width: 640px) {
  .clh-search__button-text {
    display: inline;
    margin-left: 6px;
  }

  .clh-hues__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clh-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .clh-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .clh-hero {
    padding: 54px 0 30px;
  }

  .clh-hero__visual {
    width: min(100%, 920px);
    margin-inline: auto;
  }

  .clh-intro {
    width: min(100%, 920px);
    margin-inline: auto;
    padding-top: 30px;
  }

  .clh-finder,
  .clh-latest,
  .clh-reading {
    padding: 68px 0;
  }

  .clh-finder .clh-container {
    width: min(100% - 48px, 920px);
  }

  .clh-hues__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .clh-hue {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 104px;
  }

  .clh-hue__swatch {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .clh-text-link {
    display: inline-block;
  }
}
