/* =======================================================
 * YUNO DESIGN - style.css (最終レスポンシブ・動作保証版 V2)
 * FVバランス、ヘッダー、追従ボタンの表示を恒久的に修正済み
 * ======================================================= */

/* -------------------------------------------------------
 * 0. リセット・ベース設定
 * ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:root {
  --color-main: #333;
  --color-sub: #666;
  --color-accent: #ff6347;
  --color-accent-dark: #e5533a;
  --color-accent-light: #ffd9b3;
  --color-bg-light: #f9f9f9;
  --color-bg-dark: #1d1e22;
  --color-success: #2a9d8f;
  --color-warning: #e76f51;
  --color-muted: #aaa;

  --font-family-main: "Noto Sans JP", sans-serif;
  --radius: 10px;
  --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

body.no-scroll {
  overflow: hidden;
}

body {
  font-family: var(--font-family-main);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-main);
  /* ★修正: パララックス背景を表示させるため、bodyの背景を透明化 */
  background-color: transparent !important;
  overflow-x: hidden;
  margin-top: 0;
  padding-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

/* -------------------------------------------------------
  * 1. ユーティリティ・構造
  * ------------------------------------------------------- */
.container {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
}

.section-mgt {
  margin-top: 80px !important;
}

.section-mgb {
  margin-bottom: 80px !important;
}

.taC {
  text-align: center !important;
}

.taL {
  text-align: left !important;
}

.taR {
  text-align: right !important;
}

/* -------------------------------------------------------
  * 2. 見出し・ボタン・共通カード
  * ------------------------------------------------------- */
.page-title {
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 900;
  color: var(--color-main);
  text-transform: uppercase;
}

.page-title .sub-title {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-sub);
  margin-top: 10px;
}

.section-title {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-main);
}

.section-title span {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 4px;
}

.section-lead {
  text-align: center;
  font-size: 1.8rem;
  color: var(--color-sub);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--radius);
  transition: all 0.3s;
  text-align: center;
  min-width: 200px;
  border: 2px solid transparent;
  line-height: 1.5;
}

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

.btn-primary:hover {
  background-color: var(--color-sub);
  opacity: 1;
}

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  opacity: 1;
}

.btn-line {
  background-color: #00c300;
  color: #fff;
  position: relative;
  padding-left: 50px;
}

.btn-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.03 7.03c-2.45-2.45-6.43-2.45-8.88 0l-1.4 1.4L11.3 13.06l1.4-1.4c1.64-1.64 4.3-1.64 5.94 0l1.4 1.4-2.83 2.83-1.4-1.4c-1.64-1.64-4.3-1.64-5.94 0L7.03 15.63l-1.4 1.4c-2.45 2.45-2.45 6.43 0 8.88 2.45 2.45 6.43 2.45 8.88 0l1.4-1.4 2.83 2.83 1.4-1.4c2.45-2.45 2.45-6.43 0-8.88l-1.4-1.4L17.03 7.03zM5.63 8.43l1.4-1.4c1.64-1.64 4.3-1.64 5.94 0l1.4 1.4L8.43 15.63l-1.4-1.4c-1.64-1.64-1.64-4.3 0-5.94z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.btn-line span {
  font-family: sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.btn-line:hover {
  background-color: #00a000;
  opacity: 1;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}


/* -------------------------------------------------------
  * 3. ヘッダー / フッター
  * ------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 999;
  box-shadow: var(--shadow-light);
  padding: 10px 0;
}

.header__inner.container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.header__logo img {
  height: 30px;
  width: auto;
}

.header__navi {
  display: block !important;
  /* デスクトップで表示 */
}

.header__menu {
  display: flex !important;
  /* デスクトップでflex表示 */
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 20px;
}

.header__menu a {
  color: var(--color-main);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 5px 0;
}

/* ハンバーガーアイコンの線 */
.header__menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-main);
  margin: 5px 0;
  transition: all 0.3s;
}

.header__menu-toggle {
  display: none;
  /* デスクトップでは非表示 */
}

.footer {
  background-color: var(--color-bg-dark);
  padding-top: 60px;
  color: #ddd;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo img {
  height: 30px;
  width: auto;
}

.footer__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
  flex-wrap: wrap;
}

.footer__menu a {
  color: #ddd;
  font-size: 1.4rem;
}

.footer-bottom {
  text-align: center;
  padding: 15px 0;
}

.copyright {
  font-size: 1.2rem;
  color: var(--color-muted);
}

/* -------------------------------------------------------
  * 4. 追従ボタン (Float CTA) の安定版スタイル ★Z-INDEX修正★
  * ------------------------------------------------------- */
.float-cta-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  /* Z-INDEXを大幅に上げて最前面に表示 */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.cta-popup-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  z-index: 9998;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 0;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}

.cta-popup-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cta-popup-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cta-popup-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-main);
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--color-bg-light);
}

.cta-popup-menu li:last-child a {
  border-bottom: none;
}

.cta-toggle-btn {
  display: block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-toggle-btn:hover {
  background-color: var(--color-accent-dark);
  opacity: 1;
}

/* -------------------------------------------------------
  * 5. LP固有セクション (FVバランス修正含む)
  * ------------------------------------------------------- */
/* FV Section ★バランス修正★ */
.fv-modern {
  padding: 80px 0 100px;
  width: 100%;
  box-sizing: border-box;
}

/* 上下の余白を広げた */
.fv-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* テキストエリアを50%の幅に固定 */
.fv-text {
  flex: 0 0 48%;
  /* 50%に近づけ、間隔のために2%減らす */
  min-width: 300px;
}

.fv-title {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  line-height: 1.4;
  margin-bottom: 20px;
}

.fv-title .fv-label {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.fv-title .fv-main {
  display: block;
  font-weight: 800;
  color: var(--color-main);
}

.fv-subtext {
  display: block;
  font-size: 1.8rem;
  color: var(--color-sub);
  margin-top: 10px;
}

.fv-badges {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fv-badges .badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-muted);
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-main);
}

.fv-cta-area {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.fv-cta-area .btn {
  flex: 1 1 auto;
  min-width: 180px;
}

/* 画像エリアを50%の幅に固定 */
.fv-image {
  flex: 0 0 48%;
  /* 50%に近づけ、間隔のために2%減らす */
  text-align: center;
}

.fv-image img {
  max-width: 100%;
  height: auto;
}

/* Problem Section */
.problem-section {
  background-color: var(--color-bg-light);
  padding: 60px 0;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.problem-item {
  background-color: #fff;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  border-left: 5px solid var(--color-accent);
}

.problem-item h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.problem-item p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-sub);
}

/* LPセクションの追加スタイル */

/* 2. LP制作3ステップ (.flow-steps-lp) */
.flow-steps {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.flow-step {
  flex: 1;
  padding: 30px 20px;
  border: 1px solid var(--color-bg-light);
  box-shadow: var(--shadow-light);
}

.flow-step .step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.flow-step .step-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.flow-step .step-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-main);
}

.flow-step .step-desc,
.flow-step .step-time,
.flow-step .step-output {
  font-size: 1.5rem;
  color: var(--color-sub);
  line-height: 1.6;
  margin-top: 5px;
}

/* 3. あなたが準備するもの (.preparation) */
.prep-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  box-shadow: var(--shadow-light);
}

.prep-table th,
.prep-table td {
  border: 1px solid var(--color-bg-light);
  padding: 15px 20px;
  text-align: center;
  font-size: 1.6rem;
}

.prep-table th {
  background-color: var(--color-accent-light);
  font-weight: 800;
  color: var(--color-main);
  width: 30%;
}

.prep-table td {
  background-color: #fff;
  color: var(--color-sub);
}

.prep-table td:nth-child(2) {
  color: var(--color-accent);
  font-weight: 700;
}

.prep-table td:nth-child(3) {
  color: var(--color-success);
  font-weight: 700;
}

/* 4. あなたの不安を解決 (.problem-solving) */
.problem-solving .problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.problem-solving .problem-item {
  background-color: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  border-left: 5px solid var(--color-warning);
}

.problem-solving .problem-item .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.problem-solving .problem-item p {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-main);
}

/* 5. ソリューション (.solution) */
.solution-blocks {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.solution-block {
  flex: 1;
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background-color: var(--color-bg-light);
}

.solution-block .solution-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.solution-block .solution-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.solution-block p {
  font-size: 1.6rem;
  color: var(--color-sub);
  line-height: 1.6;
}

.solution-block .solution-note {
  font-weight: 700;
  margin-top: 10px;
}

.solution-cta {
  margin-top: 40px;
}

/* 6. よくある質問 (.faq-lp) */
.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--color-bg-light);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.faq-q {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-main);
  padding: 15px 20px;
  background-color: var(--color-bg-light);
  position: relative;
  cursor: pointer;
  margin-bottom: 0;
}

.faq-q::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.faq-q.is-open::after {
  content: "ー";
}

.faq-a {
  padding: 0 20px;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.faq-a p {
  font-size: 1.6rem;
  color: var(--color-sub);
  padding: 15px 0;
}

/* 7. 制作実績 (.works-lp) - LP内の実績表示用 */
.works-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.works-item {
  text-align: center;
  transition: transform 0.3s;
}

.works-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.works-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

.works-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-main);
  margin-top: 10px;
}

.works-note {
  font-size: 1.4rem;
  color: var(--color-sub);
  margin-bottom: 10px;
}

/* 8. ブログ (.blog-lp) */
.blog-lp .blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.blog-lp .blog-item {
  text-align: left;
  transition: transform 0.3s;
}

.blog-lp .blog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-lp .blog-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

.blog-lp .blog-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 5px;
  padding: 10px 15px 0;
}

.blog-lp .blog-excerpt {
  font-size: 1.4rem;
  color: var(--color-sub);
  margin-bottom: 8px;
  padding: 0 15px;
}

.blog-lp .blog-date {
  display: block;
  font-size: 1.2rem;
  color: var(--color-muted);
  padding: 0 15px 15px;
}

.blog-lp .blog-cta {
  text-align: center;
}

/* 9. CONTACT (.contact-info) */
.contact-info {
  margin-top: 30px;
  font-size: 1.6rem;
  color: var(--color-sub);
}


/* -------------------------------------------------------
  * 10. 全体パララックス背景 (追加)
  * ------------------------------------------------------- */
.global-parallax-bg {
  /* 画面全体に固定 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* 背景画像の設定（top-bg.pngのパスを確認してください） */
  background-image: url('../img/top-bg.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* ★パララックス効果の核となる指定 */
  background-position: center top;
  background-size: cover;

  /* ページ内容の下に隠す */
  z-index: -10;
}


/* -------------------------------------------------------
  * 6. レスポンシブ調整
  * ------------------------------------------------------- */

/* ★★★ ハンバーガーメニューが押されたとき (JSで.is-openがHeaderに付与される前提) ★★★ */

/* 1. ハンバーガーアイコンのアニメーション */
.header.is-open .header__menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header.is-open .header__menu-toggle span:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 2. メニューのオーバーレイ表示 */
.header.is-open .header__navi {
  display: block !important;
  position: fixed;
  top: 50px;
  /* ヘッダーの高さに合わせて調整 */
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 998;
  overflow-y: auto;
  padding-top: 30px;
  transition: all 0.3s ease;
}

.header.is-open .header__menu {
  /* ★最重要修正: display: none !important; を上書きし、リストを確実に表示 */
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.header.is-open .header__menu a {
  font-size: 2.2rem;
  padding: 10px 0;
  font-weight: 800;
}

.sp-only {
  display: none;
}


@media screen and (max-width: 1024px) {

  /* FVの調整 */
  .fv-inner {
    flex-direction: column;
    text-align: center;
  }

  .fv-image {
    order: -1;
  }

  .fv-text,
  .fv-image {
    flex: 0 0 100%;
    /* SPでは幅100%に戻す */
    max-width: 500px;
    /* 中央に寄せるための最大幅 */
  }

  .fv-inner {
    align-items: center;
  }

  .fv-cta-area {
    justify-content: center;
  }

  /* LP固有の調整（1024px以下） */
  .flow-steps {
    flex-wrap: wrap;
  }

  .flow-step {
    flex: 1 1 45%;
  }

  .solution-blocks {
    flex-direction: column;
  }

  .prep-table th {
    width: 40%;
  }
}


@media screen and (max-width: 768px) {
  .sp-only {
    display: block;
  }

  .fv-badges {
    justify-content: center;
  }

  .section-mgt {
    margin-top: 50px !important;
  }

  .section-mgb {
    margin-bottom: 50px !important;
  }

  .header {
    padding: 8px 0;
  }

  /* ★修正: ロゴとハンバーガーの並びを安定させるため、ナビ全体を非表示に */
  .header__navi {
    display: none !important;
  }

  /* メニューリスト自体も非表示（このルールがis-openで上書きされます） */
  .header__menu {
    display: none !important;
  }

  .header__menu-toggle {
    display: block !important;
    /* 必ず表示 */
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
    align-self: center;
    /* 垂直中央揃え */
  }

  /* FVの調整 (768px以下) */
  .fv-title {
    font-size: clamp(2.8rem, 8vw, 4rem);
  }

  .fv-cta-area {
    flex-direction: column;
  }

  .fv-cta-area .btn {
    min-width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .problem-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__logo {
    margin-bottom: 15px;
  }

  .footer__menu {
    justify-content: center;
  }

  .contact-cta {
    flex-direction: column;
    gap: 15px;
  }

  .contact-cta .btn {
    min-width: 100%;
    max-width: 300px;
    margin: 0 auto 10px 0;
  }

  /* 追従ボタンのSP調整 */
  .float-cta-wrap {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .cta-toggle-btn {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.2rem;
  }

  .cta-popup-menu {
    bottom: 60px;
    min-width: 180px;
  }

  /* LP固有の調整（768px以下） */
  .flow-steps {
    flex-direction: column;
    gap: 15px;
  }

  .flow-step {
    flex: 1 1 100%;
  }

  .prep-table th {
    width: 35%;
  }

  .prep-table th,
  .prep-table td {
    padding: 10px 15px;
    font-size: 1.4rem;
  }

  .works-slider {
    grid-template-columns: 1fr;
  }

  .blog-lp .blog-list {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------
 * 11. ヘッダー重複防止の修正 (追加)
 * ------------------------------------------------------- */

/* 内部ページのタイトルエリア（.hero-section）に固定ヘッダーの高さ分の余白を設ける */
.hero-section {
  /* PCの場合: ヘッダーの高さ（例：80px） + 上下のデザイン余白（例：40px） = 120px */
  padding-top: 120px !important;
}

/* page-about.phpなどで使用されている上部のマージンをリセット/調整（二重の余白を防ぐため） */
.hero-section.section-mgt-small,
.hero-section.section-mgt {
  margin-top: 0 !important;
}


/* モバイル（画面幅 768px 以下）での調整 */
@media screen and (max-width: 768px) {
  .hero-section {
    /* SPの場合: ヘッダーの高さ（例：50px） + 上下のデザイン余白（例：30px） = 80px */
    padding-top: 80px !important;
  }
}

/* =======================================================
   SINGLE.PHP (個別記事) のレイアウト定義
======================================================= */

/* 1. コンテナの最大幅と中央寄せ */
.single-container {
  max-width: 800px;
  /* 記事の読みやすさのために幅を制限 */
  margin: 0 auto;
  padding: 0 20px;
  /* SPで両端に余白を確保 */
}

/* 2. 記事ヘッダー */
.single-article .post-header {
  margin-bottom: 40px;
}

/* 3. 記事タイトル */
.single-article .single-title {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  /* PC: 3.2rem, SP: 2.6rem */
  margin-bottom: 10px;
}

/* 4. メタ情報 (日付・カテゴリ) */
.single-article .single-meta {
  font-size: 1.4rem;
  color: #777;
}

.single-article .category-link {
  color: var(--color-sub);
  text-decoration: underline;
}

/* 5. 記事サムネイル */
.single-article .post-thumbnail {
  margin-bottom: 40px;
}

/* 6. 記事本文エリア */
.single-article .post-body {
  font-size: 1.6rem;
  line-height: 1.9;
  color: #333;
}

/* 画像などの本文要素にもSPで調整を加える場合はこちらに追記 */
.single-article .post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: var(--radius);
}


/* 7. ページネーション */
.single-article .post-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.single-article .post-pagination a {
  color: var(--color-sub);
  text-decoration: none;
  transition: color 0.3s;
}

.single-article .post-pagination a:hover {
  color: var(--color-accent);
}


/* 8. CTAセクション */
.single-article .single-cta {
  padding: 40px 20px;
  /* SPで余白を調整 */
  margin-top: 60px;
}

.single-article .single-cta .cta-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.single-article .single-cta .cta-lead {
  font-size: 1.6rem;
  margin-bottom: 30px;
}


/* -------------------------------\n   レスポンシブ (768px以下)
--------------------------------*/
@media (max-width: 768px) {

  /* 記事内の余白をタイトにする */
  .single-article .post-header,
  .single-article .post-thumbnail {
    margin-bottom: 30px;
  }

  /* ページネーションを縦積みにする */
  .single-article .post-pagination {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 40px;
  }
}
