/* =========================================================
   NEWS POST PAGE
   株式会社LibeRal
   ========================================================= */

body {
  margin: 0;
  background: #f4f6f9;
  color: #101923;
  font-family:
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    Arial,
    sans-serif;
}


/* =========================================================
   記事ページ全体
   ========================================================= */

.post-page {
  padding-top: 90px;
}


/* =========================================================
   記事ヒーロー
   ========================================================= */

.post-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(42, 112, 230, .24), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #08182d 45%, #0b2142 100%);
  color: #fff;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0 42%,
      rgba(31, 116, 255, .08) 42.2% 42.7%,
      transparent 43% 100%
    ),
    linear-gradient(
      rgba(255, 255, 255, .025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .025) 1px,
      transparent 1px
    );
  background-size: auto, 58px 58px, 58px 58px;
  pointer-events: none;
}

.post-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  padding: 110px 0 86px;
}

.post-category {
  display: inline-block;
  margin-bottom: 18px;
  color: #72a9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
}

.post-hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 800;
}

.post-hero time {
  display: block;
  margin-top: 28px;
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
  letter-spacing: .12em;
}


/* =========================================================
   記事本文
   ========================================================= */

.post-article {
  width: min(100% - 64px, 900px);
  margin: 0 auto;
  padding: 80px 0 120px;
}

.post-main-image {
  overflow: hidden;
  margin-bottom: 54px;
  border-radius: 24px;
  background: #dfe5ec;
  box-shadow: 0 24px 70px rgba(13, 28, 50, .12);
}

.post-main-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
}


/* =========================================================
   Markdown本文
   ========================================================= */

.post-content {
  padding: 52px 56px;
  border: 1px solid rgba(17, 30, 48, .07);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(13, 28, 50, .07);
}

.post-content p {
  margin: 0 0 1.8em;
  color: #586474;
  font-size: 16px;
  line-height: 2.05;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content h2 {
  margin: 2.2em 0 .9em;
  padding-left: 18px;
  border-left: 4px solid #367edb;
  color: #101923;
  font-size: 30px;
  line-height: 1.45;
}

.post-content h3 {
  margin: 2em 0 .8em;
  color: #172235;
  font-size: 22px;
  line-height: 1.5;
}

.post-content strong {
  color: #0b2852;
  font-weight: 800;
}

.post-content a {
  color: #2d72d2;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  margin: 1.4em 0 1.8em;
  padding-left: 1.5em;
  color: #586474;
}

.post-content li {
  margin-bottom: .75em;
  line-height: 1.9;
}

.post-content blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 3px solid #659df1;
  background: #f3f7fc;
  color: #536175;
}


/* =========================================================
   記事一覧へ戻る
   ========================================================= */

.post-back {
  margin-top: 34px;
  text-align: right;
}

.post-back a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid #d6dde7;
  border-radius: 999px;
  background: #fff;
  color: #172235;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.post-back a:hover {
  transform: translateY(-2px);
  color: #2f73cf;
  border-color: #93b9ef;
  box-shadow: 0 12px 30px rgba(20, 57, 110, .10);
}


/* =========================================================
   スマホ
   ========================================================= */

@media (max-width: 760px) {

  .post-page {
    padding-top: 72px;
  }

  .post-hero-inner {
    width: calc(100% - 36px);
    padding: 78px 0 62px;
  }

  .post-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .post-article {
    width: calc(100% - 36px);
    padding: 58px 0 84px;
  }

  .post-main-image {
    margin-bottom: 34px;
    border-radius: 18px;
  }

  .post-content {
    padding: 34px 24px;
    border-radius: 18px;
  }

  .post-content p {
    font-size: 15px;
    line-height: 1.95;
  }

  .post-content h2 {
    font-size: 25px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-back {
    text-align: left;
  }
}

/* =========================================================
   NEWS PAGE HEADER
   通常ページと同じ濃紺ヘッダーに固定
   ========================================================= */
.site-header{
  background: rgba(5, 11, 20, .96) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.scrolled{
  background: rgba(5, 11, 20, .98) !important;
}

.site-header .menu > li > a,
.site-header .toggle-submenu{
  color: #fff !important;
}

.site-header .logo{
  opacity: 1;
}

/* =========================================================
   記事メイン画像：表示サイズ調整
   元画像はそのまま、記事ページ上のみコンパクトに表示
   ========================================================= */
.post-main-image {
  width: 82%;
  max-width: 760px;
  margin: 0 auto 54px;
  overflow: hidden;
  border-radius: 20px;
  background: #dfe5ec;
  box-shadow: 0 24px 70px rgba(13, 28, 50, .12);
}

.post-main-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .post-main-image {
    width: 100%;
    margin-bottom: 34px;
    border-radius: 18px;
  }

  .post-main-image img {
    max-height: none;
  }
}
