@charset "utf-8";

/* ===============================
  Post Detail Layout / Latest Posts
=============================== */

.post-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
  align-items: start;
  justify-content: space-between;
  gap: 40px;
}

.post-detail-main {
  min-width: 0;
}

.latest-posts {
  position: sticky;
  top: 24px;
  padding: 24px 20px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.latest-posts__heading {
  margin: 0 0 16px;
  padding: 0 0 12px;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
  border-bottom: 2px solid #2563eb;
}

.latest-posts__list {
  display: flex;
  flex-direction: column;
}

.latest-posts__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
}

.latest-posts__item:first-child {
  padding-top: 0;
}

.latest-posts__item:hover {
  color: #2563eb;
  text-decoration: none;
}

.latest-posts__thumb {
  display: block;
  width: 88px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 6px;
}

.latest-posts__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.latest-posts__item:hover .latest-posts__thumb img {
  transform: scale(1.04);
}

.latest-posts__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
}

.latest-posts__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.latest-posts__date {
  color: #6b7280;
  font-size: 11px;
}

.latest-posts__more {
  display: block;
  margin-top: 16px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

.latest-posts__more:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .post-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .latest-posts {
    position: static;
  }

  .latest-posts__item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .latest-posts__thumb {
    width: 112px;
  }
}

@media (max-width: 480px) {
  .post-detail-layout {
    gap: 32px;
  }

  .latest-posts {
    padding: 20px 16px 16px;
  }

  .latest-posts__item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .latest-posts__thumb {
    width: 96px;
  }
}

  /* ===============================
    PHOTO NOTE Blog Content
  =============================== */

  .pn-blog-content {
    color: #243044;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.02em;
    background: #ffffff;
  }

  .pn-blog-content * {
    box-sizing: border-box;
  }

  .pn-blog-content p {
    margin: 0 0 1.7em;
  }

  .pn-blog-content a {
    color: #1f68d6;
    text-decoration: none;
  }

  .pn-blog-content a:hover {
    text-decoration: underline;
  }

  /* ===============================
    Lead
  =============================== */

  .pn-blog-lead {
    padding: 28px 30px;
    margin: 0 0 42px;
    background: linear-gradient(135deg, #f2f7ff, #ffffff);
    border: 1px solid #dbe8fb;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(20, 45, 80, 0.06);
  }

  .pn-blog-lead p:last-child {
    margin-bottom: 0;
  }

  /* ===============================
    Figure
  =============================== */

  .pn-post-figure {
    margin: 42px 0;
  }

  .pn-post-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eef2f7;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }

  .pn-post-figure figcaption {
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
  }

  .pn-post-figure figcaption a {
    color: #64748b;
  }

  /* ===============================
    TOC
  =============================== */

  .pn-blog-toc {
    margin: 42px 0 52px;
    padding: 28px 30px;
    background: #f7f9fc;
    border: 1px solid #e1e7ef;
    border-radius: 22px;
  }

  .pn-blog-toc__title {
    margin: 0 0 18px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
  }

  .pn-blog-toc ol {
    margin: 0;
    padding-left: 1.4em;
  }

  .pn-blog-toc li {
    margin: 0.45em 0;
    color: #4b5563;
  }

  /* ===============================
    Section
  =============================== */

  .pn-blog-section {
    margin: 56px 0 0;
  }

  .pn-blog-section h2 {
    position: relative;
    margin: 0 0 24px;
    padding: 0 0 16px;
    color: #111827;
    font-size: 24px;
    line-height: 1.45;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
  }



  .pn-blog-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 110px;
    height: 2px;
    background: #2563eb;
    border-radius: 999px;
  }

  .pn-blog-section h2 {
    padding-left: 24px;
  }

  .pn-blog-section h3 {
    margin: 34px 0 14px;
    color: #111827;
    font-size: 21px;
    line-height: 1.5;
  }

  /* ===============================
    Check Box
  =============================== */

  .pn-blog-check {
    margin: 28px 0 34px;
    padding: 26px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
  }

  .pn-blog-check__title {
    margin: 0 0 14px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
  }

  .pn-blog-check ul,
  .pn-blog-card-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pn-blog-check li,
  .pn-blog-card-list li {
    position: relative;
    margin: 0.7em 0;
    padding-left: 1.7em;
    color: #334155;
  }

  .pn-blog-check li::before,
  .pn-blog-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
  }

  /* ===============================
    Quote
  =============================== */

  .pn-blog-quote {
    margin: 36px 0;
    padding: 26px 30px;
    color: #1e3a5f;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 18px 18px 0;
  }

  .pn-blog-quote p {
    margin-bottom: 0;
  }

  /* ===============================
    Industry Card Grid
  =============================== */

  .pn-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin: 36px 0 42px;
  }

  .pn-blog-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
  }

  .pn-blog-card > a:first-child {
    display: block;
    margin: 0 0 18px;
    background: #eef2f7;
    border-radius:8px;
    overflow: hidden;
  }

  .pn-blog-card > a:first-child img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  .pn-blog-card > a:first-child:hover img {
    transform: scale(1.035);
  }

  .pn-blog-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: 0.02em;
  }

  .pn-blog-card p {
    margin: 0;
    color: #334155;
    font-size: 15.5px;
    line-height: 1.9;
    letter-spacing: 0.02em;
  }
  /* ===============================
    FAQ
  =============================== */

  .pn-blog-faq {
    margin: 36px 0 48px;
  }

  .pn-blog-faq__item {
    margin: 0 0 18px;
    padding: 26px 28px;
    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .pn-blog-faq__item:last-child {
    margin-bottom: 0;
  }

  .pn-blog-faq dt,
  .pn-blog-faq dd {
    position: relative;
    padding-left: 48px;
  }

  .pn-blog-faq dt {
    min-height: 34px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 700;
  }

  .pn-blog-faq dd {
    min-height: 34px;
    margin: 18px 0 0;
    padding-top: 18px;
    color: #334155;
    line-height: 1.9;
    border-top: 1px solid #e2e8f0;
  }

  .pn-blog-faq dt::before,
  .pn-blog-faq dd::before {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    border-radius: 50%;
  }

  .pn-blog-faq dt::before {
    content: "Q";
    top: 0;
    color: #ffffff;
    background: #2563eb;
  }

  .pn-blog-faq dd::before {
    content: "A";
    top: 18px;
    color: #1d4ed8;
    background: #eaf2ff;
  }

  .pn-blog-faq dd p {
    margin: 0 0 1em;
  }

  .pn-blog-faq dd p:last-child {
    margin-bottom: 0;
  }

  .pn-blog-faq dd ul,
  .pn-blog-faq dd ol {
    margin: 1em 0 0;
    padding-left: 1.5em;
  }

  .pn-blog-faq dd li {
    margin: 0.4em 0;
  }
  /* ===============================
    Link Box
  =============================== */

  .pn-blog-linkbox {
    margin: 52px 0 0;
    padding: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
  }

  .pn-blog-linkbox h2 {
    margin-top: 0;
  }

  .pn-blog-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
  }

  .pn-blog-category-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 16px;
    color: #1e3a5f;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #d4deeb;
    border-radius: 999px;
  }

  .pn-blog-category-links a:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
    text-decoration: none;
  }

  /* ===============================
    CTA
  =============================== */

  .pn-blog-cta {
    margin: 56px 0 0;
    padding: 34px 32px;
    color: #1e293b;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 55%, #ffffff 100%);
    border: 1px solid #cfe0f7;
    border-radius: 26px;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
  }

  .pn-blog-cta h2 {
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
    border: 0 !important;
  }

  .pn-blog-cta h2::before,
  .pn-blog-cta h2::after {
    display: none !important;
  }

  .pn-blog-cta p {
    margin: 0 0 24px;
    color: #334155 !important;
  }

  .pn-blog-cta__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .pn-blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    color: #ffffff !important;
    font-weight: 700;
    background: #0f172a;
    border: 1px solid #0f172a;
    border-radius: 999px;
    text-decoration: none !important;
  }

  .pn-blog-btn--outline {
    color: #1d4ed8 !important;
    background: #ffffff;
    border: 1px solid #b8cff4;
  }

  .pn-blog-btn:hover {
    opacity: 0.88;
    text-decoration: none !important;
  }

  /* ===============================
    SP
  =============================== */

  @media (max-width: 767px) {
    .pn-blog-content {
      font-size: 15px;
      line-height: 1.9;
    }

    .pn-blog-lead,
    .pn-blog-toc,
    .pn-blog-check,
    .pn-blog-linkbox,
    .pn-blog-cta {
      padding: 22px 20px;
      border-radius: 18px;
    }

    .pn-post-figure {
      margin: 34px 0;
    }

    .pn-post-figure img {
      aspect-ratio: 4 / 3;
      border-radius: 18px;
    }

    .pn-blog-section {
      margin-top: 44px;
    }

    .pn-blog-section h2 {
      padding-left: 18px;
      font-size: 23px;
    }

    .pn-blog-section h2::before {
      width: 4px;
      height: 1.8em;
    }


    .pn-blog-section h2::after {
      width: 80px;
    }

    .pn-blog-section h3 {
      font-size: 19px;
    }

    .pn-blog-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      margin: 28px 0 36px;
    }

    .pn-blog-card {
      padding: 18px;
      border-radius: 20px;
    }

    .pn-blog-card > a:first-child {
      margin-bottom: 15px;
      border-radius: 14px;
    }

    .pn-blog-card > a:first-child img {
      aspect-ratio: 4 / 3;
      border-radius: 14px;
    }

    .pn-blog-card h3 {
      font-size: 20px;
    }

    .pn-blog-card p {
      font-size: 15px;
      line-height: 1.85;
    }

    .pn-blog-category-links {
      gap: 10px;
    }

    .pn-blog-category-links a {
      width: 100%;
      justify-content: center;
    }

    .pn-blog-cta__btns {
      flex-direction: column;
    }

    .pn-blog-btn {
      width: 100%;
    }
  }
