:root {
  --navy: #2f3440;
  --navy-light: #4b5364;
  --navy-soft: rgba(47, 52, 64, 0.16);

  --beige: #cfc39c;
  --beige-deep: #bca873;
  --beige-soft: #f7f4eb;
  --beige-bg: #ede7d6;

  --line: #d8d5cc;
  --text: #333;
  --white: #fff;
}

/* =========================
   single post layout
========================= */
#main_contents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 6.5% 100px;
  box-sizing: border-box;
}

#main_col {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

/* =========================
   article
========================= */
.post-single {
  padding: 40px 40px 44px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.06);
}

.entry-header {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--navy-light);
  font-size: 14px;
  line-height: 1.7;
}

.entry-terms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--beige-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.columnttl {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* =========================
   entry content
========================= */
.entry-content {
  color: var(--text);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 1.6em;
  line-height: 2;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  line-height: 1.6;
  font-weight: 700;
}

.entry-content h2 {
  margin: 56px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige);
  font-size: 2.4rem;
}

.entry-content h3 {
  margin: 40px 0 16px;
  font-size: 2rem;
}

.entry-content h4 {
  margin: 28px 0 12px;
  font-size: 1.7rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.8em 1.4em;
  padding: 0;
}

.entry-content li {
  margin-bottom: 0.6em;
  line-height: 1.9;
}

.entry-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--beige);
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--beige-deep);
}

.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.entry-content figure {
  margin: 32px 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
}

.entry-content th,
.entry-content td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  line-height: 1.8;
}

.entry-content th {
  background: var(--beige-soft);
  color: var(--navy);
  font-weight: 700;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--beige-deep);
  background: var(--beige-soft);
}

.entry-content .page-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.news-title {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

@media screen and (max-width: 767px) {
  .news-title {
    margin-bottom: 20px;
    font-size: 2.2rem;
  }
}

/* =========================
   author
========================= */
#main_col > .author-doctor,
#main_col > .author-box,
#main_col > [class*="author"] {
  margin-top: 40px;
}

/* =========================
   related posts
========================= */
.related-posts {
  margin-top: 60px;
}

.related-posts .term-title {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.related-case-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.05);
}

.related-case-thumbnail {
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--beige-soft);
}

.related-case-thumbnail a {
  display: block;
}

.related-case-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-case-item:hover .related-case-thumbnail img {
  transform: scale(1.03);
}

.related-case-title {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.7;
  font-weight: 700;
}

.related-case-a {
  color: var(--navy);
  text-decoration: none;
}

.related-case-a:hover {
  color: var(--beige-deep);
}

.related-case-meta {
  margin-top: auto;
  color: var(--navy-light);
  font-size: 13px;
  line-height: 1.7;
}

.related_hr {
  width: 100%;
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--line);
}

.related-case-link {
  margin-top: auto;
}

.case_btn,
.btn.case_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--beige-soft);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
  transition: 0.3s ease;
}

.case_btn:hover,
.btn.case_btn:hover {
  background: var(--beige-bg);
}

/* =========================
   archive button
========================= */
.btn-center {
  margin-top: 48px;
  text-align: center;
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 58px;
  padding: 12px 24px;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
  transition: 0.3s ease;
}

.btn-blue:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

/* =========================
   sidebar
========================= */
.sidebar {
  position: relative;
}

.sidebar-section {
  position: sticky;
  top: 30px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.05);
}

.sidebar-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 700;
}

.sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1.8;
  transition: 0.3s ease;
}

.sidebar-list a:hover {
  color: var(--beige-deep);
}

/* =========================
   responsive
========================= */
@media screen and (max-width: 1100px) {
  #main_contents {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sidebar-section {
    position: static;
  }

  .related-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  #main_contents {
    padding: 36px 7.7% 70px;
    gap: 28px;
  }

  .post-single {
    padding: 24px 18px 28px;
  }

  .entry-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .entry-meta {
    font-size: 13px;
  }

  .columnttl {
    margin-bottom: 20px;
    font-size: 2.2rem;
    line-height: 1.5;
  }

  .entry-content p,
  .entry-content li,
  .entry-content th,
  .entry-content td,
  .sidebar-list a {
    font-size: 14px;
    line-height: 1.9;
  }

  .entry-content h2 {
    margin: 40px 0 16px;
    font-size: 2rem;
  }

  .entry-content h3 {
    margin: 30px 0 12px;
    font-size: 1.8rem;
  }

  .entry-content h4 {
    margin: 22px 0 10px;
    font-size: 1.6rem;
  }

  .related-posts {
    margin-top: 44px;
  }

  .related-posts .term-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }

  .related-cases-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .related-case-item {
    padding: 16px;
  }

  .related-case-title {
    font-size: 1.6rem;
  }

  .btn-blue {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 14px;
  }

  .sidebar-section {
    padding: 22px 18px;
  }

  .sidebar-title {
    margin-bottom: 14px;
    font-size: 1.8rem;
  }

  .case_btn,
  .btn.case_btn {
    width: 100%;
    min-height: 42px;
    font-size: 14px;
  }
}

:root {
  --navy: #2f3440;
  --navy-light: #4b5364;
  --navy-soft: rgba(47, 52, 64, 0.16);

  --beige: #cfc39c;
  --beige-deep: #bca873;
  --beige-soft: #f7f4eb;
  --beige-bg: #ede7d6;

  --line: #d8d5cc;
  --text: #333;
  --white: #fff;
}

/* =========================
   layout
========================= */
#main_contents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 6.5% 100px;
  box-sizing: border-box;
}

#main_col {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

/* =========================
   single news
========================= */
.news-single {
  padding: 40px 40px 44px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.06);
}

.news-single .entry-header {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.news-single .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--navy-light);
  font-size: 14px;
  line-height: 1.7;
}

.news-single .entry-terms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--beige-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* =========================
   content
========================= */
.news-single .entry-content {
  color: var(--text);
}

.news-single .entry-content > *:first-child {
  margin-top: 0;
}

.news-single .entry-content p {
  margin: 0 0 1.6em;
  line-height: 2;
}

.news-single .entry-content h1,
.news-single .entry-content h2,
.news-single .entry-content h3,
.news-single .entry-content h4 {
  color: var(--navy);
  line-height: 1.6;
  font-weight: 700;
}

.news-single .entry-content h1 {
  margin: 0 0 28px;
  font-size: 2rem;
  letter-spacing: 0.03em;
}

.news-single .entry-content h2 {
  margin: 56px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige);
  font-size: 2.4rem;
}

.news-single .entry-content h3 {
  margin: 40px 0 16px;
  font-size: 2rem;
}

.news-single .entry-content h4 {
  margin: 28px 0 12px;
  font-size: 1.7rem;
}

.news-single .entry-content ul,
.news-single .entry-content ol {
  margin: 0 0 1.8em 1.4em;
  padding: 0;
}

.news-single .entry-content li {
  margin-bottom: 0.6em;
  line-height: 1.9;
}

.news-single .entry-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--beige);
  text-underline-offset: 3px;
}

.news-single .entry-content a:hover {
  color: var(--beige-deep);
}

.news-single .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.news-single .entry-content figure {
  margin: 32px 0;
}

.news-single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
}

.news-single .entry-content th,
.news-single .entry-content td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  line-height: 1.8;
}

.news-single .entry-content th {
  background: var(--beige-soft);
  color: var(--navy);
  font-weight: 700;
}

.news-single .entry-content blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--beige-deep);
  background: var(--beige-soft);
}

.news-single .entry-content .page-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* =========================
   related news
========================= */
.related-posts {
  margin-top: 60px;
}

.related-posts .term-title {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.related-case-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.05);
}

.related-case-thumbnail {
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--beige-soft);
}

.related-case-thumbnail a {
  display: block;
}

.related-case-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-case-item:hover .related-case-thumbnail img {
  transform: scale(1.03);
}

.related-case-title {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.7;
  font-weight: 700;
}

.related-case-a {
  color: var(--navy);
  text-decoration: none;
}

.related-case-a:hover {
  color: var(--beige-deep);
}

.related-case-meta {
  margin-top: auto;
  color: var(--navy-light);
  font-size: 13px;
  line-height: 1.7;
}

.related_hr {
  width: 100%;
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--line);
}

.related-case-link {
  margin-top: auto;
}

.case_btn,
.btn.case_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--beige-soft);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
  transition: 0.3s ease;
}

.case_btn:hover,
.btn.case_btn:hover {
  background: var(--beige-bg);
}

/* =========================
   archive button
========================= */
.btn-center {
  margin-top: 48px;
  text-align: center;
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 58px;
  padding: 12px 24px;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
  transition: 0.3s ease;
}

.btn-blue:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

/* =========================
   sidebar
========================= */
.sidebar {
  position: relative;
}

.sidebar-section {
  position: sticky;
  top: 30px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.05);
}

.sidebar-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 700;
}

.sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1.8;
  transition: 0.3s ease;
}

.sidebar-list a:hover {
  color: var(--beige-deep);
}

/* =========================
   responsive
========================= */
@media screen and (max-width: 1100px) {
  #main_contents {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sidebar-section {
    position: static;
  }

  .related-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  #main_contents {
    padding: 36px 7.7% 70px;
    gap: 28px;
  }

  .news-single {
    padding: 24px 18px 28px;
  }

  .news-single .entry-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .news-single .entry-meta {
    font-size: 13px;
  }

  .news-single .entry-content p,
  .news-single .entry-content li,
  .news-single .entry-content th,
  .news-single .entry-content td,
  .sidebar-list a {
    font-size: 14px;
    line-height: 1.9;
  }

  .news-single .entry-content h1 {
    margin-bottom: 20px;
    font-size: 2.2rem;
    line-height: 1.5;
  }

  .news-single .entry-content h2 {
    margin: 40px 0 16px;
    font-size: 2rem;
  }

  .news-single .entry-content h3 {
    margin: 30px 0 12px;
    font-size: 1.8rem;
  }

  .news-single .entry-content h4 {
    margin: 22px 0 10px;
    font-size: 1.6rem;
  }

  .related-posts {
    margin-top: 44px;
  }

  .related-posts .term-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }

  .related-cases-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .related-case-item {
    padding: 16px;
  }

  .related-case-title {
    font-size: 1.6rem;
  }

  .btn-blue {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 14px;
  }

  .sidebar-section {
    padding: 22px 18px;
  }

  .sidebar-title {
    margin-bottom: 14px;
    font-size: 1.8rem;
  }

  .case_btn,
  .btn.case_btn {
    width: 100%;
    min-height: 42px;
    font-size: 14px;
  }
}

:root {
  --navy: #2f3440;
  --navy-light: #4b5364;
  --navy-soft: rgba(47, 52, 64, 0.16);

  --beige: #cfc39c;
  --beige-deep: #bca873;
  --beige-soft: #f7f4eb;
  --beige-bg: #ede7d6;

  --line: #d8d5cc;
  --text: #333;
  --white: #fff;
}

/* =========================
   archive layout
========================= */
.column_main.page {
  padding: 60px 6.5% 100px;
}

.wysiwyg-editor {
  max-width: 1280px;
  margin: 0 auto;
}

.content-sidebar-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.contentout {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* =========================
   blog card
========================= */
.blog-list__list-item {
  margin: 0;
}

.blog-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.05);
  text-decoration: none;
  transition: 0.3s ease;
  overflow: hidden;
}

.blog-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(47, 52, 64, 0.08);
}

.blog-item__thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--beige-soft);
}

.blog-item__thumbnail::before {
  content: "";
  display: block;
  padding-top: 66%;
}

.blog-item__thumbnail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-item:hover .blog-item__thumbnail-image {
  transform: scale(1.04);
}

.blog-item__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.blog-item__title {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.9rem;
  line-height: 1.7;
  font-weight: 700;
  transition: 0.3s ease;
}

.blog-item:hover .blog-item__title {
  color: var(--beige-deep);
}

.blog-item__button {
  margin-top: auto;
}

.blog-item__button-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--beige-soft);
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  transition: 0.3s ease;
}

.blog-item:hover .blog-item__button-more {
  background: var(--beige-bg);
}

/* =========================
   sidebar
========================= */
.sidebar {
  min-width: 0;
  width: auto !important;
  position: relative;
}

.sidebar-section {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(47, 52, 64, 0.05);
}

.sidebar-section + .sidebar-section {
  margin-top: 24px;
}

.sidebar-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.5;
  font-weight: 700;
}

.sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  transition: 0.3s ease;
}

.sidebar-list a:hover {
  color: var(--beige-deep);
}

/* wp_list_categories count */
.sidebar-list .count {
  color: var(--navy-light);
  font-size: 0.95em;
}

/* nested category */
.sidebar-list .children {
  margin: 0 0 10px 14px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

/* =========================
   responsive
========================= */
@media screen and (max-width: 1100px) {
  .content-sidebar-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contentout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .column_main.page {
    padding: 36px 7.7% 70px;
  }

  .content-sidebar-wrapper {
    gap: 28px;
  }

  .contentout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-item__content {
    padding: 18px 16px 20px;
  }

  .blog-item__title {
    margin-bottom: 14px;
    font-size: 1.7rem;
    line-height: 1.7;
  }

  .blog-item__button-more {
    width: 100%;
    min-height: 42px;
    font-size: 1.3rem;
  }

  .sidebar-section {
    padding: 22px 18px;
  }

  .sidebar-title {
    margin-bottom: 14px;
    font-size: 1.8rem;
  }

  .sidebar-list a {
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.8;
  }
}