/* ============================================
   共通部品スタイル（ボタン・ラベル・バッジなど）
   全ページで読み込まれます
   ============================================ */

/* =============================================
    アイコン（共通）
============================================= */
.common-angel__icon {
  height: 0.8em;
  width: auto;
  display: inline-block;
  /* vertical-align: middle; */
}

/* =============================================
   ボタン
============================================= */
.btn-primary {
  display: inline-block;
  padding: 14px 48px;
  background: var(--color-text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--color-accent);
}

.btn-outline {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
}

/* =============================================
   ページヘッダー
============================================= */
.page-header {
  padding: 80px 0 0;
  margin-bottom: -72px;
  /* border-bottom: 1px solid var(--color-border); */
  background: var(--color-bg);
  text-align: center;
}

/* ページヘッダー */
.page-header__simple {
  padding: 150px 0px 80px;
  margin-bottom: 0;
}
.page-header__title {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 0;
  color: var(--color-title);
}

.page-header__sub {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  text-transform: uppercase;
}

.page-header--bg {
  background-image: url("../images/about.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  height: 400px;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.page-header--bg .container {
  position: relative;
  text-align: center;
}
.page-header--bg .page-header__title {
  color: #fff;
}
.page-header--bg .page-header__title rt {
  font-family: "Lora", serif;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}
.page-header--bg .page-header__sub {
  color: rgba(255, 255, 255, 0.75);
}

.site-main__simple .section {
  padding: 0 0 120px;
}

/* =============================================
   About セクション（会社概要ページ共通）
============================================= */
.about-section {
  padding: var(--section-first-pt) 0 var(--section-py);
}

.about-section .container {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
}

.about__heading {
  font-size: 1.47rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  color: var(--color-title);
}

.about__body {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 250%;
  letter-spacing: 2%;
  /* line-height: 2.2; */
}

.about__btn a {
  display: inline;
}
.about__btn {
  text-align: right;
}

.about__link {
  display: block;
  text-align: right;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--color-text);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.about__link:hover {
  opacity: 0.8;
}

.about__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* 画像右ブリード variant（屋根工事ページなど） */
.about-section--bleed-right {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
  /* padding: var(--section-py) 0 var(--section-py) max(5%, calc((100% - var(--container-max)) / 2)); */
  .about__text {
    padding-left: var(--side-padding-pc);
  }
}

.about-section--bleed-right .about__image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* =============================================
   記事グリッド
============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__body {
  padding: 16px;
}

.post-card__date {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  display: block;
  margin-bottom: 6px;
}

.post-card__title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}

.post-card__title a:hover {
  opacity: 0.8;
}

.post-card__excerpt {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.7;
}

/* =============================================
   アイキャッチ
============================================= */
.single-thumbnail {
  margin-bottom: 48px;
  overflow: hidden;
}
.single-thumbnail img {
  width: 100%;
  height: auto;
}

/* =============================================
   前後記事ナビ
============================================= */
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding-top: 40px;
  /* border-top: 1px solid var(--color-border); */
  font-size: 0.8rem;
}

.post-nav__prev {
  text-align: left;
}
.post-nav__back {
  text-align: center;
}
.post-nav__next {
  text-align: right;
}
.post-nav a {
  color: var(--color-text-sub);
  transition: color 0.2s;
}
.post-nav a:hover {
  opacity: 0.8;
}

/* =============================================
   entry-content
============================================= */
.entry-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
}

.entry-content p {
  margin-bottom: 15px;
  line-height: 2;
}

.entry-content ul,
.entry-content ol {
  margin: 16px 0 24px 24px;
  font-size: 0.9rem;
  line-height: 1.9;
}

/* =============================================
   お知らせカードグリッド
============================================= */
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  row-gap: 55px;
}

.news-card {
  display: block;
}

/* もっと見るボタン（PC では非表示） */
.news-show-more {
  display: none;
}

.news-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  display: block;
  margin-bottom: 6px;
}

.news-card__title {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

.news-card:hover .news-card__title {
  opacity: 0.8;
}

.news-card__cat {
  color: var(--color-text-sub);
  margin-top: 10px;
  word-spacing: 0.5em;
  font-size: 0.75rem;
}

.news-card__cat .works-filter__btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 1em;
}

.news-card__cat .works-filter__btn.is-active {
  background: none;
  border: none;
  color: var(--color-text);
}

/* =============================================
   お知らせリスト
============================================= */
.news-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.news-list__item {
  border-bottom: 1px solid var(--color-border);
}

.news-list__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 8px;
  transition: background 0.15s;
}

.news-list__thumb {
  flex-shrink: 0;
  width: 100px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.news-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-list__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-list__link:hover {
  background: var(--color-bg-gray);
}

.news-list__date {
  font-size: 0.8rem;
  color: var(--color-text-sub);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-list__title {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =============================================
   お知らせ 単票記事
============================================= */
.news-article__header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.news-article__thumb {
  margin-bottom: 32px;
  overflow: hidden;
}

.news-article__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.news-article__date {
  display: block;
  color: var(--color-text-sub);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.news-article__title {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.news-article__body {
  margin-bottom: 56px;
}

/* =============================================
   ハッシュタグフィルター（共通）
============================================= */
.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.works-filter__btn {
  padding: 6px 16px;
  background: #e6e6e6;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-text-sub);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.works-filter__btn:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.works-filter__btn.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.works-filter__sep {
  display: flex;
  align-items: center;
  color: var(--color-border);
  padding: 0 4px;
  font-size: 1rem;
  user-select: none;
  pointer-events: none;
}

.works-filter__group {
  display: contents;
}

.works-empty {
  text-align: center;
  color: var(--color-text-sub);
  padding: 64px 0;
  font-size: 0.875rem;
}

/* topページのセクション毎の余白設定 */
.home section:nth-of-type(2) {
  padding: 120px 0;
}
.home section:nth-of-type(n + 3):nth-of-type(-n + 5) {
  padding: 32px 0 120px;
}
.home section:nth-of-type(6) {
  padding: 32px 0 60px;
}

/* =============================================
   レスポンシブ
   タブレット: 800px - 1279px
   スマホ:     〜799px
============================================= */
@media (min-width: 800px) and (max-width: 1279px) {
  /* ページヘッダー */
  .page-header__simple {
    padding: 184px 0px 80px;
    margin-bottom: 0;
  }

  .page-header__simple .page-header__title {
    margin-bottom: 0;
  }

  .site-main__simple .section {
    padding: 0 0 80px;
  }

  /* About bleed-right */
  .about-section--bleed-right {
    gap: 36px;
    grid-template-columns: 6fr 6fr;
  }

  /* About */
  .about__body {
    line-height: 200%;
    letter-spacing: 0%;
  }

  /* サブページ：ページヘッダー */
  .page-header--bg {
    height: 350px;
  }
  /* topページのセクション毎の余白設定 */
  .home section:nth-of-type(2) {
    padding: 80px 0;
  }
  .home section:nth-of-type(n + 3):nth-of-type(-n + 5) {
    padding: 40px 0 80px;
  }
  .home section:nth-of-type(6) {
    padding: 40px 0;
  }
}

@media (max-width: 799px) {
  /* サブページ：ページヘッダー */
  .page-header--bg {
    height: 250px;
  }
  /* ページヘッダー */
  .page-header__simple {
    padding: 140px 0 50px;
    margin-bottom: 0px;
  }
  .page-header__simple .page-header__title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  section .page-header__title {
    font-size: 1.1rem;
  }
  .site-main__simple .section {
    padding: 0 0 50px;
  }

  /* About */
  .about__heading {
    text-align: center;
    font-size: 1.1rem;
  }
  .about-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* About */
  .about__body {
    font-size: 0.8rem;
    line-height: 200%;
    letter-spacing: 0%;
  }
  .about__image img {
    height: 260px;
  }

  /* About bleed-right */
  .about-section--bleed-right {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: var(--section-first-pt) var(--side-padding-sp) var(--section-py);
  }
  .about-section--bleed-right .about__text {
    padding-left: 0;
  }
  /* トップページのみ画像を右端ブリード */
  .home .about-section--bleed-right {
    padding: var(--section-py) 0 var(--section-py) 3%;
  }
  .home .about-section--bleed-right .about__text {
    padding: 0 var(--side-padding-sp);
  }
  .about-section--bleed-right .about__image img {
    height: 260px;
  }
  /* topのaboutの画像 */
  .home .about-section--bleed-right .about__image {
    padding-left: var(--side-padding-sp);
  }

  /* ニュースカードグリッド */
  .news-card-grid {
    grid-template-columns: 1fr;
  }
  /* お知らせアーカイブのみ 5件で折りたたむ */
  .post-type-archive-news .news-card-grid .news-card:nth-child(n + 6) {
    display: none;
  }
  .post-type-archive-news
    .news-card-grid.is-expanded
    .news-card:nth-child(n + 6) {
    display: block;
  }

  /* もっと見るボタン（スマホのみ） */
  .news-show-more {
    display: block;
    margin: 28px auto 0;
    padding: 10px 36px;
    background: none;
    border: 1px solid var(--color-text);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text);
  }

  /* topページのセクション毎の余白設定 */
  .home section:nth-of-type(2) {
    padding: 50px 0;
  }
  .home section:nth-of-type(n + 3):nth-of-type(-n + 5) {
    padding: 25px 0 50px;
  }
  .home section:nth-of-type(6) {
    padding: 20px 0 50px;
  }
}
