:root {
  --ifive-post-navy: #071d38;
  --ifive-post-blue: #0867c9;
  --ifive-post-sky: #eaf5ff;
  --ifive-post-orange: #f59b12;
  --ifive-post-ink: #15263c;
  --ifive-post-muted: #60738b;
  --ifive-post-line: #dce8f4;
}

body.single-post {
  background: #f3f7fb;
  color: var(--ifive-post-ink);
}

.single-post #content.content {
  margin-top: 42px;
  margin-bottom: 70px;
}

.single-post .content-in {
  max-width: 1180px;
  gap: 30px;
}

.single-post .main {
  width: min(100%, 820px);
  padding: 46px 52px 58px;
  border: 1px solid var(--ifive-post-line);
  border-top: 5px solid var(--ifive-post-blue);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17,56,94,.09);
}

.single-post .sidebar {
  width: 300px;
}

.single-post .sidebar .widget {
  overflow: hidden;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--ifive-post-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17,56,94,.06);
}

.single-post .sidebar .widget-title,
.single-post .sidebar h2,
.single-post .sidebar h3 {
  margin: -22px -22px 18px;
  padding: 14px 20px;
  border: 0;
  border-left: 4px solid var(--ifive-post-orange);
  background: #edf5fc;
  color: var(--ifive-post-navy);
  font-size: 17px;
}

.single-post .entry-title {
  margin: 0 0 22px;
  color: var(--ifive-post-navy);
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.48;
  letter-spacing: .015em;
}

.single-post .entry-title::before {
  display: block;
  width: 58px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--ifive-post-blue) 0 72%, var(--ifive-post-orange) 72%);
  content: "";
}

.single-post .date-tags {
  color: var(--ifive-post-muted);
  font-size: 12px;
}

.single-post .sns-share.ss-top {
  margin: 12px 0 22px;
}

.single-post .sns-share.ss-top .sns-buttons {
  gap: 7px;
}

.single-post .sns-share.ss-top a {
  min-height: 40px;
  border-radius: 7px;
  box-shadow: none;
}

.single-post .eye-catch-wrap,
.single-post .eye-catch {
  display: none;
}

.single-post .entry-content {
  color: #20334b;
  font-size: 17px;
  line-height: 2;
}

.single-post .entry-content p {
  margin: 1.2em 0;
}

.ifive-post-cover {
  overflow: hidden;
  margin: 5px 0 26px;
  border: 1px solid var(--ifive-post-line);
  border-radius: 13px;
  background: var(--ifive-post-navy);
  box-shadow: 0 12px 28px rgba(6,38,78,.13);
}

.ifive-post-cover img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.ifive-post-deadline {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 15px 20px;
  border: 1px solid #f2d49a;
  border-left: 5px solid var(--ifive-post-orange);
  border-radius: 9px;
  background: #fff9ec;
}

.ifive-post-deadline span {
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--ifive-post-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.ifive-post-deadline strong {
  color: #9a5200;
  font-size: 18px;
}

.ifive-post-deadline small {
  justify-self: end;
  color: #79664b;
  font-size: 11px;
}

.single-post .entry-content h2 {
  margin: 58px 0 23px;
  padding: 17px 20px 17px 23px;
  border: 0;
  border-left: 6px solid var(--ifive-post-blue);
  border-radius: 8px;
  background: linear-gradient(110deg, #e9f4ff, #f8fbff);
  color: var(--ifive-post-navy);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.45;
}

.single-post .entry-content h3 {
  margin: 38px 0 17px;
  padding: 0 0 9px 15px;
  border: 0;
  border-left: 4px solid var(--ifive-post-orange);
  border-bottom: 1px solid var(--ifive-post-line);
  color: #123d6c;
  font-size: 21px;
}

.single-post .entry-content ul:not(.toc-list),
.single-post .entry-content ol:not(.toc-list) {
  padding: 19px 22px 19px 44px;
  border-radius: 9px;
  background: #f7faff;
}

.single-post .entry-content li {
  margin: .38em 0;
}

.single-post .toc {
  margin: 34px auto 43px;
  padding: 25px 30px;
  border: 1px solid #bfd8ef;
  border-radius: 12px;
  background: #f5faff;
  box-shadow: none;
}

.single-post .toc-title {
  color: var(--ifive-post-navy);
  font-weight: 800;
  letter-spacing: .08em;
}

.single-post .toc a {
  color: #165d9e;
  text-decoration: none;
}

.single-post .entry-content table {
  overflow: hidden;
  border: 1px solid #cbdceb;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(23,68,109,.05);
}

.single-post .entry-content th {
  border-color: #1d66a5;
  background: #0c5595;
  color: #fff;
}

.single-post .entry-content td {
  border-color: #d8e5f0;
  background: #fff;
}

.single-post .entry-content tr:nth-child(even) td {
  background: #f6faff;
}

.ifive-ad-slot {
  margin: 34px 0;
  text-align: center;
}

.ifive-ad-slot > span {
  display: block;
  margin-bottom: 7px;
  color: #8b9aab;
  font-size: 10px;
  letter-spacing: .1em;
}

.ifive-ad-slot__placeholder {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #b7c9da;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg,#f7faff,#f7faff 12px,#f1f6fb 12px,#f1f6fb 24px);
  color: #698098;
}

.ifive-ad-slot__placeholder strong {
  font-size: 14px;
}

.ifive-ad-slot__placeholder small {
  margin-top: 2px;
  font-size: 10px;
}

.ifive-ad-slot__code {
  overflow: hidden;
  min-height: 90px;
}

.ifive-post-cta {
  position: relative;
  overflow: hidden;
  margin: 58px 0 36px;
  padding: 38px 42px;
  border-radius: 14px;
  background: linear-gradient(125deg, #06264b, #0b63b5);
  color: #fff;
  box-shadow: 0 18px 36px rgba(5,52,102,.2);
}

.ifive-post-cta::after {
  position: absolute;
  right: -52px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border: 28px solid rgba(255,255,255,.07);
  border-radius: 50%;
  content: "";
}

.single-post .entry-content .ifive-post-cta h2 {
  position: relative;
  z-index: 1;
  margin: 6px 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 27px;
}

.single-post .entry-content .ifive-post-cta p {
  position: relative;
  z-index: 1;
  margin: 0 0 21px;
  color: #e0efff;
  line-height: 1.75;
}

.single-post .entry-content .ifive-post-cta .ifive-post-cta__label {
  margin: 0;
  color: #ffbf4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

.ifive-post-cta > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-post .entry-content .ifive-post-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ifive-post-cta__primary {
  background: var(--ifive-post-orange);
  color: #112843 !important;
}

.ifive-post-cta__line {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff !important;
}

@media screen and (max-width: 1023px) {
  .single-post .content-in {
    display: block;
  }
  .single-post .main,
  .single-post .sidebar {
    width: 100%;
  }
  .single-post .sidebar {
    margin-top: 28px;
  }
}

@media screen and (max-width: 782px) {
  .single-post #content.content {
    margin-top: 16px;
  }
  .single-post .main {
    padding: 28px 21px 42px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .single-post .entry-title {
    font-size: 26px;
  }
  .single-post .entry-content {
    font-size: 16px;
    line-height: 1.9;
  }
  .ifive-post-deadline {
    grid-template-columns: auto 1fr;
  }
  .ifive-post-deadline small {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .single-post .toc {
    padding: 21px 19px;
  }
  .single-post .entry-content h2 {
    margin-top: 46px;
    padding: 14px 15px;
  }
  .ifive-ad-slot__placeholder {
    min-height: 92px;
  }
  .ifive-post-cta {
    padding: 31px 23px;
  }
  .ifive-post-cta > div,
  .single-post .entry-content .ifive-post-cta a {
    width: 100%;
  }
}
