@charset "UTF-8";
/* ==========================================================================
   西田エンジニアリング - 記事詳細ページスタイルシート
   ========================================================================== */

/* ==========================================================================
   記事詳細ページヘッダー
   ========================================================================== */
.p-article-header {
  padding-top: 97px;
  /* ヘッダーの高さ分 */
  background-color: #ffffff;
}

.p-article-header .c-breadcrumb {
  padding-top: 30px;
}

.p-article-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.p-article-header__date {
  font-family: "Figtree", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #b0b0b0;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.p-article-header__title {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-size: 4rem;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.4;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .p-article-header {
    padding-top: 56px;
  }

  .p-article-header .c-breadcrumb {
    padding-top: 20px;
  }

  .p-article-header__inner {
    padding: 30px 5% 0;
  }

  .p-article-header__date {
    font-size: 1.3rem;
  }

  .p-article-header__title {
    font-size: 2.4rem;
    margin-top: 6px;
  }
}

/* ==========================================================================
   記事コンテンツ
   ========================================================================== */
.p-article-content {
  background-color: #ffffff;
}

.p-article-content__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

@media (max-width: 768px) {
  .p-article-content__inner {
    padding: 30px 5% 60px;
  }
}

/* ==========================================================================
   記事本文（WordPress投稿用スタイル）
   ========================================================================== */

/* 本文テキスト */
.p-article-body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.9;
}

.p-article-body p {
  margin-bottom: 24px;
}

.p-article-body p:last-child {
  margin-bottom: 0;
}

/* 見出し1 (h1相当) */
.p-article-body h1,
.p-article-body .heading-1 {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-size: 3.2rem;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: 0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e1e1;
  margin: 48px 0 24px;
}

/* 見出し2 (h2相当) */
.p-article-body h2,
.p-article-body .heading-2 {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-size: 2.8rem;
  font-weight: bold;
  color: #d52300;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 40px 0 20px;
}

/* 見出し3 (h3相当) - ダイヤアイコン付き */
.p-article-body h3,
.p-article-body .heading-3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-size: 2.4rem;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 36px 0 18px;
}

.p-article-body h3::before,
.p-article-body .heading-3::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  background-color: #d52300;
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* 見出し4 (h4相当) */
.p-article-body h4,
.p-article-body .heading-4 {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-size: 2.4rem;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 32px 0 16px;
}

/* 見出し5 (h5相当) */
.p-article-body h5,
.p-article-body .heading-5 {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: #d52300;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 28px 0 14px;
}

/* 見出し6 (h6相当) */
.p-article-body h6,
.p-article-body .heading-6 {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: #b1b1b1;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 24px 0 12px;
}

/* リンク */
.p-article-body a {
  color: #d52300;
  font-weight: 500;
  text-decoration: underline;
}

.p-article-body a:hover {
  opacity: 0.7;
}

/* 画像 */
.p-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px 0;
}

.p-article-body figure {
  margin: 32px 0;
}

.p-article-body figcaption {
  font-size: 1.4rem;
  color: #666666;
  text-align: center;
  margin-top: 8px;
}

/* 画像プレースホルダー */
.p-article-body__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d9d9d9;
  width: 100%;
  height: 400px;
  margin: 32px 0;
}

.p-article-body__image-placeholder span {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* 箇条書きリスト (ul) */
.p-article-body ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.p-article-body ul li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.p-article-body ul li:last-child {
  margin-bottom: 0;
}

.p-article-body ul li::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background-color: #d52300;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 番号付きリスト (ol) */
.p-article-body ol {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: ol-counter;
}

.p-article-body ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 12px;
  counter-increment: ol-counter;
}

.p-article-body ol li:last-child {
  margin-bottom: 0;
}

.p-article-body ol li::before {
  content: counter(ol-counter);
  font-family: "Figtree", sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: #231815;
  width: 12px;
  flex-shrink: 0;
  line-height: 0.65;
}

/* 区切り線 */
.p-article-body hr {
  border: none;
  border-top: 1px solid #e1e1e1;
  margin: 48px 0;
}

@media (max-width: 768px) {
  .p-article-body {
    font-size: 1.4rem;
  }

  .p-article-body p {
    margin-bottom: 20px;
  }

  .p-article-body h1,
  .p-article-body .heading-1 {
    font-size: 2.4rem;
    margin: 36px 0 20px;
  }

  .p-article-body h2,
  .p-article-body .heading-2 {
    font-size: 2rem;
    margin: 32px 0 16px;
  }

  .p-article-body h3,
  .p-article-body .heading-3 {
    font-size: 1.8rem;
    margin: 28px 0 14px;
  }

  .p-article-body h4,
  .p-article-body .heading-4 {
    font-size: 1.8rem;
    margin: 24px 0 12px;
  }

  .p-article-body h5,
  .p-article-body .heading-5 {
    font-size: 1.6rem;
    margin: 20px 0 10px;
  }

  .p-article-body h6,
  .p-article-body .heading-6 {
    font-size: 1.6rem;
    margin: 20px 0 10px;
  }

  .p-article-body img,
  .p-article-body figure {
    margin: 24px 0;
  }

  .p-article-body__image-placeholder {
    height: 250px;
    margin: 24px 0;
  }

  .p-article-body__image-placeholder span {
    font-size: 2.4rem;
  }

  .p-article-body ul,
  .p-article-body ol {
    margin: 20px 0;
  }

  .p-article-body ul li,
  .p-article-body ol li {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .p-article-body hr {
    margin: 36px 0;
  }
}

/* ==========================================================================
   記事フッター（一覧に戻るボタン）
   ========================================================================== */
.p-article-footer {
  background-color: #ffffff;
  padding-bottom: 80px;
}

.p-article-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.p-article-footer__separator {
  width: 100%;
  height: 1px;
  background-color: #000;
  margin-bottom: 48px;
}

.p-article-footer__back {
  display: flex;
  justify-content: center;
}

.p-article-footer__back-btn {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 15px 24px;
  background-color: #1a1a1a;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.p-article-footer__back-btn:hover {
  opacity: 0.8;
}

.p-article-footer__back-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.17);
  border-radius: 2px;
}

.p-article-footer__back-arrow img {
  width: 11px;
  height: 7px;
  transform: rotate(180deg);
}

.p-article-footer__back-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.7rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .p-article-footer {
    padding-bottom: 60px;
  }

  .p-article-footer__inner {
    padding: 0 5%;
  }

  .p-article-footer__separator {
    margin-bottom: 36px;
  }

  .p-article-footer__back-btn {
    width: 100%;
    justify-content: center;
    gap: 24px;
    padding: 14px 20px;
  }

  .p-article-footer__back-text {
    font-size: 1.4rem;
  }

  .p-article-footer__back-arrow {
    width: 26px;
    height: 26px;
  }

  .p-article-footer__back-arrow img {
    width: 9px;
    height: 6px;
  }
}