/*
Theme Name: Clean Home Service CMS
Theme URI: https://ch-s.jp/
Author: Clean Home Service
Description: Clean Home Service design with WordPress-managed fixed-page, staff, and FAQ content.
Version: 1.1.0
Text Domain: clean-home-service-cms

Design reference: Preserve the existing orange (#E67E00/#E65100), white, and dark-slate visual system exactly. The React bundle provides the page-level styling; these rules only establish stable WordPress integration.
*/

html,
body {
  margin: 0;
  min-height: 100%;
}

#wpadminbar {
  position: fixed;
}

html:has(#wpadminbar) body {
  min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  html:has(#wpadminbar) body {
    min-height: calc(100vh - 46px);
  }
}

/* Native WordPress blog styling: the same orange, white, and dark-slate system as the approved site. */
.chs-blog-shell {
  color: #2c3e50;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

.chs-blog-shell * {
  box-sizing: border-box;
}

.chs-blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(44, 62, 80, .12);
}

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

.chs-blog-header__inner,
.chs-blog-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.chs-blog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.chs-blog-logo img {
  display: block;
  width: auto;
  height: 58px;
}

.chs-blog-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.chs-blog-nav a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.chs-blog-nav a:hover,
.chs-blog-nav a[aria-current="page"] {
  color: #e67e00;
}

.chs-blog-hero {
  padding: 84px 0 74px;
  background: #e67e00;
  color: #fff;
  text-align: center;
}

.chs-blog-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  opacity: .9;
}

.chs-blog-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: .06em;
}

.chs-blog-hero__lead {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.9;
}

.chs-blog-content {
  padding: 72px 0 96px;
}

.chs-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.chs-blog-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(44, 62, 80, .11);
}

.chs-blog-card__image,
.chs-blog-post__image {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #f5f5f5;
}

.chs-blog-card__image {
  aspect-ratio: 16 / 9;
}

.chs-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.chs-blog-date {
  margin: 0 0 12px;
  color: #e67e00;
  font-size: 13px;
  font-weight: 700;
}

.chs-blog-card h2,
.chs-blog-post h1 {
  margin: 0;
  color: #2c3e50;
  line-height: 1.55;
}

.chs-blog-card h2 {
  font-size: 19px;
}

.chs-blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.chs-blog-card h2 a:hover {
  color: #e67e00;
}

.chs-blog-excerpt {
  margin: 14px 0 20px;
  color: #5f6b75;
  font-size: 14px;
  line-height: 1.9;
}

.chs-blog-more {
  margin-top: auto;
  color: #e65100;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.chs-blog-empty {
  padding: 42px;
  border-radius: 14px;
  background: #f5f5f5;
  color: #5f6b75;
  text-align: center;
}

.chs-blog-post {
  width: min(820px, 100%);
  margin: 0 auto;
}

.chs-blog-post__meta {
  margin: 0 0 16px;
  color: #e67e00;
  font-weight: 700;
}

.chs-blog-post h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.chs-blog-post__image {
  margin: 34px 0;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
}

.chs-blog-post__content {
  color: #354653;
  font-size: 16px;
  line-height: 2;
}

.chs-blog-post__content h2,
.chs-blog-post__content h3 {
  margin: 2em 0 .8em;
  color: #2c3e50;
}

.chs-blog-post__content a {
  color: #e65100;
}

.chs-blog-back {
  display: inline-flex;
  margin-top: 38px;
  padding: 13px 22px;
  border-radius: 6px;
  background: #e67e00;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.chs-blog-footer {
  padding: 55px 0;
  background: #2c3e50;
  color: #fff;
}

.chs-blog-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.chs-blog-footer p {
  margin: 0;
  line-height: 1.9;
}

.chs-blog-footer a {
  color: #fff;
  text-decoration: none;
}

.chs-blog-footer__phone {
  color: #ffd700 !important;
  font-size: 23px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .chs-blog-header {
    position: static;
    height: auto;
  }

  .chs-blog-header__inner {
    min-height: 70px;
    flex-wrap: wrap;
    padding: 7px 0;
  }

  .chs-blog-nav {
    width: 100%;
    padding-bottom: 8px;
  }

  .chs-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .chs-blog-header__inner,
  .chs-blog-container {
    width: min(100% - 28px, 1160px);
  }

  .chs-blog-logo img {
    height: 48px;
  }

  .chs-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .chs-blog-hero {
    padding: 58px 0 52px;
  }

  .chs-blog-content {
    padding: 48px 0 66px;
  }

  .chs-blog-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
