/**
* SP
**/
/**
* PC
**/
/**
* Custom min-width, max-width. Example:
* @include media(500px, 900px) { ... }
* @include media($max-width: 900px) { ... }
* @include media($min-width: 500px) { ... }
**/
.main2 {
  padding: 0 15px;
  padding-top: 198px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .main2 {
    padding: 0;
    padding-top: 112px;
  }
}

.mar20 {
  margin-top: 20px;
}

.main2.--single {
  background: #f2f2f2;
  padding-top: 158px;
  padding-bottom: 80px;
  border-bottom: 1px solid #F1F3F5;
}

@media (max-width: 768px) {
  .main2.--single {
    padding: 0 15px;
    padding-top: 48px;
    padding-bottom: 80px;
  }
}

.title-main {
  font-weight: 700;
  font-size: 40px;
  line-height: 150%;
}

@media (max-width: 768px) {
  .title-main {
    font-size: 28px;
    line-height: 2;
  }
}

.title-main+.sec {
  margin-top: 0;
}

.title-cat {
  font-weight: 700;
  font-size: 32px;
  line-height: 150%;
}

@media (max-width: 768px) {
  .title-cat {
    font-size: 24px;
    line-height: 2;
  }
}

.archive-sec {
  margin-top: 120px;
  border-bottom: 2px solid #F1F3F5;
  padding-bottom: 64px;
}

@media (max-width: 768px) {
  .archive-sec {
    margin-top: 64px;
  }
}

.archive-sec+.archive-sec {
  margin-top: 64px;
}

.view-more {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 2;
  margin-top: 42px;
}

@media (max-width: 768px) {
  .view-more {
    margin-top: 20px;
  }
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
  font-family: sans-serif;
}

.nav-links a,
.nav-links span {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #3D3C3A;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.nav-links a.current,
.nav-links span.current {
  background: #7F8891;
  color: #fff;
  border-color: #7F8891;
  font-weight: bold;
}

.nav-links a:hover {
  background: #7F8891;
  color: #fff;
  border-color: #7F8891;
}

.single_base {
  width: 900px;
  max-width: 100%;
  background: #fff;
}

@media (min-width: 769px) {
  .single_base {
    padding: 40px 45px 70px 40px;
  }
}

@media (max-width: 768px) {
  .single_base {
    padding: 20px 20px;
    margin-top: 20px;
  }
}

.title-head {
  font-size: 20px;
  font-weight: bold;
  line-height: 2;
  color: #7F8891;
}

.title-single {
  margin-bottom: 50px;
  font-weight: 500;
  line-height: 1.5;
  font-size: 32px;
}

@media (max-width: 768px) {
  .title-single {
    font-size: 28px;
    margin-top: 16px;
  }
}

.cms-thumb {
  margin-bottom: 40px;
  line-height: 0;
  text-align: center;
}

@media (min-width: 769px) {
  .cms-thumb {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-top: 48px;
  }

  .cms-thumb__column {
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .cms-thumb {
    /* margin-left: -15px;
    margin-right: -15px; */
  }
}

.cms-thumb img {
  max-width: 100%;
}

.cms-content {
  overflow: auto;
  font-weight: 400;
}

.cms-content>p,
.cms-content>figure {
  margin-top: 40px;
}

.cms-content>p {
  line-height: 2;
}

@media (max-width: 768px) {
  .cms-content>p {
    margin-top: 48px;
  }

  .cms-content>p:first-child {
    margin-top: 40px;
  }
}

.cms-content>h2,
.cms-content>h3,
.cms-content>h4 {
  margin-top: 40px;
}

.cms-content h2 {
  margin-top: 60px;
}

.cms-content h3 {
  margin-top: 50px;
}

.cms-content>h2 {
  font-size: 30px;
  font-weight: bold;
  line-height: 2;
  border-bottom: 1px solid #d5dbe0;
  /* padding-bottom: 10px; */
  margin-bottom: 20px;
}

.cms-content>h3 {
  margin: 40px 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #3d3c3a;
  border-left: 5px solid #458ab8;
  padding-left: 20px;
  line-height: 1.4;
}

.cms-content h4 {
  margin-bottom: 20px;
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.4;
}

/* .cms-content>h3, .cms-content>h4, .cms-content>h5, .cms-content>h6 {
  font-size: 20px;
  font-weight: bold;
} */

.cms-content ul li,
.cms-content ol li {
  list-style-type: disc;
  margin-left: 20px;
}

.cms-content>ul,
.cms-content>ol {
  border: 1px solid #458ab8;
  padding: 15px 20px;
  border-radius: 5px;
  margin-top: 30px;
  list-style-position: outside;
  overflow: hidden;
}

.cms-content>ul li,
.cms-content>ol li {
  border-bottom: 1px dashed #458ab8;
  list-style: none;
  margin: 0 !important;
  padding: 5px 0 5px 26px;
  background: url(../img/mark.png) no-repeat left top 10px;
}

.cms-content>ul li:last-child,
.cms-content>ol li:last-child {
  border-bottom: 0;
}

.color_box {
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  background: #f0f3f5;
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.color_box2 {
  padding: 20px;
  border-radius: 5px;
  background: #fffcda;
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.img-text {
  padding: 20px;
  border-radius: 5px;
  background: #fefefe;
  border: 1px solid #d5dbe0;
  margin-top: 40px;
}

.about-text {
  margin-top: 40px;
  padding: 15px 15px;
  background: #f0f3f5;
  position: relative;
}

@media (max-width: 768px) {
  .img-text {
    margin-top: 80px;
  }
}

@media (min-width: 769px) {
  .img-text.--reverser .img-text__content {
    flex-direction: row-reverse;
  }
}

.img-text__title {
  display: block;
}

.img-text__content {
  display: flex;
  gap: 40px;
}

@media (max-width: 768px) {
  .img-text__content {
    flex-direction: column;
  }
}

.img-text__img {
  line-height: 0;
}

@media (min-width: 769px) {
  .img-text__img {
    width: calc((100% / 3) - 20px);
    flex-shrink: 0;
  }

  .img-text__img.--author {
    width: calc((100% / 4) - 20px);
  }
}

.img-text__img img {
  max-width: 100%;
  width: 100%;
}

.img-text__txt {
  line-height: 2;
  margin: 0;
}

.img-text__txt p{
  margin-top: 1em;
}

@media (min-width: 769px) {
  .img-text__txt {
    flex-grow: 1;
  }
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

@media (min-width: 769px) {
  .sp-only {
    display: none;
  }
}

@media (min-width: 769px) {
  .loop-gap {
    gap: 64px 40px;
  }
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.mar20 {
  margin-top: 20px;
}

.category-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.category-filter label {
  font-weight: 600;
  margin: 0;
}

.category-filter select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  min-width: 150px;
}

@media (max-width: 768px) {
  .category-filter {
    gap: 8px;
  }

  .category-filter select {
    min-width: 120px;
  }
}

.tag-filter {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #F2F6FF;
  padding: 26px;
  border-radius: 10px;
  margin-top: -40px;
}

@media (min-width: 769px) {
  .tag-filter {
    margin-bottom: 80px;
  }
}

.tag-filter__multi .tag-link__title {
  min-width: 80px;
}

.tag-filter label {
  font-weight: 600;
  margin: 0;
}

.tag-links {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .tag-links {
    flex-wrap: wrap;
  }
}

.tag-links:not(:first-child) {
  padding-top: 24px;
  border-top: 1px solid #7F8891;
}

.tag-link__title {
  flex-shrink: 0;
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-right: 34px;
}

.tag-link__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 28px;
  background: #fff;
  border: 1px solid #8DA2FF;
  color: #8DA2FF;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 0 10px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tag-link:hover,
.tag-link.active {
  background: #8DA2FF;
  color: #fff;
}

@media (max-width: 768px) {
  .tag-links {
    gap: 8px;
  }

  .tag-link {
    padding: 6px 12px;
    font-size: 12px;
  }
}

.loop_post_case.loop_post_case--card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 769px) {
  .loop_post_case.loop_post_case--card {
    width: calc((100% - 40px) / 2);
  }
}

@media (min-width: 1024px) {
  .loop_post_case.loop_post_case--card {
    width: calc((100% - 80px) / 3);
  }
}

.loop_post_case.loop_post_case--card:hover {
  box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.25);
}

.loop_post_case.loop_post_case--card .loop_post_case_cnt_title {
  font-size: 16px;
  line-height: 29px;
  font-weight: 500;
  height: auto;
  transition: all .3s;
}

@media (min-width: 769px) {
  .loop_post_case.loop_post_case--card .loop_post_case_cnt_title {
    /* height: 87px; */
  }
}

.loop_post_case.loop_post_case--card:after {
  display: none;
}

.loop_post_case--card .loop_post_case_link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* .loop_post_case--card .loop_post_case_link:hover {
  opacity: 1;
} */

/* .loop_post_case--card .loop_post_case_link:hover .loop_post_case_cnt_title{
  color: #8da2ff;
} */

.loop_post_case--card .loop_post_case_img_wrapper {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.loop_post_case--card .loop_post_case_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.loop_post_case--card .loop_post_case_cnt {
  padding: 20px;
  padding-bottom: 10px;
  background: transparent;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.loop_post_case--card .loop_post_case_cnt_title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 20px;
  height: auto;
  -webkit-line-clamp: 3;
}

.loop_post_case--card .loop_post_case_footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
}

.loop_post_case--card .loop_post_case_meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #7F8891;
  line-height: 1.4;
  width: 100%;
}

.loop_post_case--card .loop_post_case_date {
  display: block;
  line-height: 22px;
  font-weight: 500;
}

.loop_post_case--card .loop_post_case_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.loop_post_case--card .loop_post_case_tag {
  color: #8DA2FF;
  background: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  max-width: 48%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid #8DA2FF;
}

.loop_post_case--card .loop_post_case_tag a {
  color: inherit;
  opacity: 1;
}

.loop_post_case--card .loop_post_case_tag:hover {
  background: #8DA2FF;
  color: #fff;
}

.loop_post_case--card .loop_post_case_arrow {
  width: 14px;
  height: 14px;
  background: url(../img/icon_btn_arrow_blue.png) no-repeat center center / contain;
  flex-shrink: 0;
  margin-bottom: 5px;
  margin-left: auto;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .loop_post_case--card .loop_post_case_cnt {
    padding: 15px;
  }
}

.column_meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #7F8891;
  line-height: 1.4;
  width: 100%;
  gap: 22px;
}

.column_date {
  font-size: 16px;
  font-weight: 500;
  display: block;
  line-height: 28px;
}

.column_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  width: 100%;
}

.column_tag {
  color: #8DA2FF;
  background: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  max-width: 50%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid #8DA2FF;
  opacity: 1;
}

.column_tag:hover {
  background: #8DA2FF;
  color: #fff;
  opacity: 1;
}

.breadcrum {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 12px;
  margin-top: -20px;
}

@media (max-width: 768px) {
  .breadcrum {
    margin-top: 10px;
  }
}

.breadcrum li {
  display: inline;
}

.breadcrum li a,
.breadcrum li span {
  font-size: 13px;
  font-weight: 500;
  color: #7F8891;
}

.breadcrum li a:after {
  content: ' > ';
  margin: 0 10px;
  color: #7F8891;
}

.breadcrum li a:hover {
  color: #8DA2FF;
  opacity: 1;
}

#ez-toc-container {
  padding: 20px;
}

@media (max-width: 768px) {
  #ez-toc-container {
    margin-top: 20px;
  }
}

#ez-toc-container li.ez-toc-page-1 {
  margin-top: 10px;
}

#ez-toc-container .ez-toc-title {
  font-weight: bold !important;
}

.ez-toc-counter nav ul li a::before {
  margin-right: 0.5rem;
}

.loop_post_case.loop_post_case--card {
  overflow: visible;
}

.loop_post_case_tags {
  position: relative;
  height: 28px; /* Fixed height for 1 row of tags */
  transition: all 0.3s ease;
}

.loop_post_case_tags.has-hidden:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  background: #fff;
  z-index: 2; /* Bring above other elements */
  border-radius: 5px;
}

.loop_post_case_tags_hidden {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 10;
  padding: 5px;
  border-radius: 0 0 5px 5px; /* Radius for bottom only */
  box-shadow: 0 4px 6px rgba(0,0,0,0.15); /* Keep shadow on dropdown too for continuity? Or remove if parent has it? */
  /* If parent has shadow, it's 28px high. Dropdown needs shadow too to look like one piece or separate. */
  /* Let's try to make them look unified: Remove top shadow from dropdown if possible, or just keep it simple. */
  /* User request: "shadow should on loop_post_case_tags". */
  /* If checking strict instruction, I should put shadow on parent. */
  flex-wrap: wrap;
  gap: 5px;
}

/* Remove shadow from dropdown to strictly follow "shadow on loop_post_case_tags"? 
   No, that would leave the dropdown flat. 
   Maybe they mean the hover effect (highlight) is on the parent?
   I'll leave shadow on dropdown but ALSO add it to parent as requested. */

.loop_post_case_tags.has-hidden:hover .loop_post_case_tags_hidden {
  display: flex;
}