/* ============================================================
 * single-rpo_column (記事詳細) のスタイル
 * 全ルールを body.is-echoes-blog でスコープ。
 * blog.css の .blog-page / .blog-card / .blog-grid / .blog-sidebar 等を
 * 共有利用するため、body には is-rpo-blog クラスも付与している。
 * ============================================================ */

html {
  scroll-behavior: smooth;
}

body.is-echoes-blog .article {
  min-width: 0;
}

body.is-echoes-blog .blog-article {
  position: relative;
  z-index: 2;
  padding: 200px 0 0;
}

body.is-echoes-blog .contact-bg-bl_article {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  right: -150px;
  bottom: -3%;
  width: 720px;
  height: 400px;
  background-image: url('../images/bg03.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
}

/* ===== Title ===== */
body.is-echoes-blog .article-title {
  font-family: "YakuHanJP", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.6;
  color: var(--blue);
  margin-bottom: 28px;
}

/* ===== Meta (author / date) ===== */
body.is-echoes-blog .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

body.is-echoes-blog .article-meta-author {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: #000;
}

body.is-echoes-blog .article-meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9dcef 0%, #e6eef7 100%);
  flex-shrink: 0;
  overflow: hidden;
}

body.is-echoes-blog .article-meta-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

body.is-echoes-blog .article-meta-date {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--blue);
}

/* ===== Hero banner ===== */
body.is-echoes-blog .article-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 857 / 470;
  background:
    linear-gradient(180deg, rgba(0, 30, 55, 0.15) 0%, rgba(0, 30, 55, 0.7) 100%),
    linear-gradient(120deg, #0a3a63 0%, #047 55%, #0a4d80 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  margin-bottom: 40px;
  border-radius: 8px;
}

body.is-echoes-blog .article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Article body typography ===== */
/* WordPress 出力の <p> / <h2> / <h3> / <ul> 等にも適用するため
   .article-body の子孫セレクタも合わせて指定 */
body.is-echoes-blog .article-body p,
body.is-echoes-blog .article-body > p {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.48px;
  color: #000;
  margin-bottom: 24px;
}

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

body.is-echoes-blog .article-h2,
body.is-echoes-blog .article-body h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.5;
  color: var(--blue);
  margin: 56px 0 24px;
  scroll-margin-top: 120px;
}

body.is-echoes-blog .article-body h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  color: var(--blue);
  margin: 40px 0 18px;
}

body.is-echoes-blog .article-body ul,
body.is-echoes-blog .article-body ol {
  margin: 0 0 24px;
  padding-left: 1.5em;
}

body.is-echoes-blog .article-body li {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.48px;
  color: #000;
}

body.is-echoes-blog .article-body a {
  color: var(--blue);
  text-decoration: underline;
}

body.is-echoes-blog .article-figure {
  aspect-ratio: 857 / 467;
  border-radius: 8px;
  background: linear-gradient(135deg, #d7e4f2 0%, #eaf1f8 50%, #dfe9f4 100%);
  margin: 0 0 28px;
}

body.is-echoes-blog .article-note {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.45px;
  color: #000;
  margin-top: 24px;
}

body.is-echoes-blog .article-note a {
  color: var(--blue);
  text-decoration: underline;
}

/* ===== INDEX box ===== */
body.is-echoes-blog .article-index {
  background: #fff;
  border-radius: 10px;
  padding: 32px 36px;
  margin: 40px 0;
}

body.is-echoes-blog .article-index-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 68, 119, 0.25);
  margin-bottom: 20px;
}

body.is-echoes-blog .article-index-mark {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--blue);
}

body.is-echoes-blog .article-index-list {
  margin: 0;
  padding-left: 1.4em;
  color: var(--blue);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.42px;
}

body.is-echoes-blog .article-index-list li {
  padding-left: 6px;
}

body.is-echoes-blog .article-index-list a {
  color: var(--blue);
  transition: opacity 0.2s;
}

body.is-echoes-blog .article-index-list a:hover {
  opacity: 0.65;
  text-decoration: underline;
}

/* ===== Author bio box ===== */
body.is-echoes-blog .article-author {
  background: #fff;
  border-radius: 10px;
  padding: 35px 31px 30px;
  margin: 56px 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

body.is-echoes-blog .article-author-icon {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9dcef 0%, #e6eef7 100%);
  flex-shrink: 0;
  overflow: hidden;
}

body.is-echoes-blog .article-author-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

body.is-echoes-blog .article-author-name {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.51px;
  color: #000;
  margin-bottom: 6px;
}

body.is-echoes-blog .article-author-bio {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.45px;
  color: #000;
  margin-bottom: 14px;
}

body.is-echoes-blog .article-author-meta {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.45px;
  color: #000;
}

/* ===== Article navigation ===== */
body.is-echoes-blog .article-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin: 56px 0;
  flex-wrap: wrap;
}

body.is-echoes-blog .article-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000;
}

body.is-echoes-blog .article-nav-disabled {
  opacity: 0;
  pointer-events: none;
  width: 120px;
}

body.is-echoes-blog .article-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.is-echoes-blog .article-nav-arrow img {
  object-fit: contain;
}

body.is-echoes-blog .article-nav-prev:hover .article-nav-arrow {
  transform: translateX(-4px);
}

body.is-echoes-blog .article-nav-next:hover .article-nav-arrow {
  transform: translateX(4px);
}

body.is-echoes-blog .article-nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid var(--blue);
  border-radius: 9999px;
  padding: 12px 30px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: var(--blue);
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

body.is-echoes-blog .article-nav-back-arrow {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.is-echoes-blog .article-nav-back-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.is-echoes-blog .article-nav-back-arrow .arrow-hover {
  display: none;
}

body.is-echoes-blog .article-nav-back:hover {
  background: var(--blue);
  color: #fff;
}

body.is-echoes-blog .article-nav-back:hover .arrow-default {
  display: none;
}

body.is-echoes-blog .article-nav-back:hover .arrow-hover {
  display: block;
}

/* ===== Other articles ===== */
body.is-echoes-blog .article-others {
  margin-top: 64px;
}

body.is-echoes-blog .article-others-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}

body.is-echoes-blog .article-others-en {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 35px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue);
}

body.is-echoes-blog .article-others-ja {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
  color: var(--blue);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1200px) {
  body.is-echoes-blog .article-hero img {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  body.is-echoes-blog .blog-article {
    padding: 100px 0 0;
  }

  body.is-echoes-blog .article-title {
    font-size: 24px;
  }

  body.is-echoes-blog .article-hero {
    aspect-ratio: 4 / 3;
  }

  body.is-echoes-blog .article-h2,
  body.is-echoes-blog .article-body h2 {
    font-size: 24px;
    margin: 40px 0 18px;
  }

  body.is-echoes-blog .article-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  body.is-echoes-blog .article-author-name {
    text-align: center;
  }

  body.is-echoes-blog .article-author-icon {
    width: 160px;
    height: 160px;
    align-self: center;
  }

  body.is-echoes-blog .article-nav {
    gap: 24px;
  }

  body.is-echoes-blog .article-nav-link span:not(.article-nav-arrow) {
    display: none;
  }

  body.is-echoes-blog .article-others-en {
    font-size: 26px;
  }
}
