/* ===== COLUMN ARCHIVE ===== */

/* --- Layout --- */
.col_arc_layout {
  display: flex;
  flex-direction: column;
  gap: 50px 0;
  margin: 30px 0 0;
}
.col_arc_main {
  min-width: 0;
}

/* --- Tabs (link-based) --- */
.col_arc_tabs_wrap .column_tab {
  padding: 0;
}
.column_tab_link {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: inherit;
}

/* --- Column tab base (shared, replicated for archive context) --- */
.column_tabs_wrap {
  margin: 20px 0 0;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.column_tabs_wrap::-webkit-scrollbar {
  display: none;
}
.column_tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
}
.column_tab {
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  background: #fff;
  color: #98A9B5;
  cursor: pointer;
  transition: all .3s ease-in-out;
}
.column_tab.is_active,
.column_tab:hover {
  background: #FED566;
  color: #fff;
}

/* --- Card list (top 2 posts) --- */
.col_arc_card_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 15px;
  margin: 20px 0 0;
  padding: 0;
}
.column_img_link {
  display: block;
}
.column_ttl_link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.column_img_wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.column_img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}
.column_img_link:hover .column_img {
  transform: scale(1.05);
}
.column_label {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 7px;
  border: solid #FED566 1px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: bold;
  background: #fff;
  color: #1a1a1a;
}
.column_ttl {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  transition: all .3s ease-out;
}
.column_date {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  color: #98A9B5;
}
.col_arc_excerpt {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
.col_arc_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 8px 0 0;
}
.col_arc_tag {
  padding: 4px 12px 6px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  transition: all .3s ease-out;
}
.col_arc_tag::before {
  content: '#\0020';
  font-size: 14px;
  color: #2781D9;
}

/* --- Row list (remaining posts) --- */
.col_arc_row_list {
  margin: 20px 0 0;
  padding: 0;
}
.col_arc_row_item {
  display: flex;
  align-items: flex-start;
  gap: 0 15px;
  padding: 20px 0;
  border-top: 1px solid #EFEDE4;
}
.col_arc_row_item:last-child {
  border-bottom: 1px solid #EFEDE4;
}
.col_arc_row_img_link {
  display: block;
  flex-shrink: 0;
}
.col_arc_row_img_link:hover .col_arc_row_img {
  transform: scale(1.05);
}
.col_arc_row_img_wrap {
  position: relative;
  width: 110px;
  overflow: hidden;
  border-radius: 8px;
}
.col_arc_row_img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}
.col_arc_row_body {
  flex: 1;
  min-width: 0;
}
.col_arc_row_ttl_link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.col_arc_row_ttl {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  transition: all .3s ease-out;
}
.col_arc_row_excerpt {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

/* --- Single article --- */
.col_single_box {
  margin: 20px 0 0;
  padding: 40px 17px;
  border-radius: 18px;
  background: #FCFAF3;
}
.col_single_meta {
  display: flex;
  align-items: center;
  gap: 0 12px;
}
.col_single_meta .column_date {
  display: inline;
  margin: 0;
  font-size: 12px;
}
.col_single_cat {
  padding: 0 10px 2px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  background: #fff;
}
.col_single_ttl {
  margin: 8px 0 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #B9B6A8;
  font-size: 20px;
  font-weight: bold;
}
.col_single_tags {
  margin: 12px 0 0;
}
.col_single_content {
  margin: 22px 0 0;
}
.col_single_content *:first-child {
  margin: 0;
}
.col_single_content * + * {
  margin: 20px 0 0;
}
.col_single_content ul {
  list-style-type: disc;
  padding: 0 0 0 20px;
}
.col_single_content p {
  line-height: 2;
}
.col_single_content ul {
  margin: 0;
}
.col_single_content ul li {
  margin: .5em 0 0;
  line-height: 2;
}
.col_single_content table {
  border-collapse: collapse;
}
.col_single_content table tr th,
.col_single_content table tr td {
  padding: 5px 10px 6px;
}
.col_single_content table tr th:nth-child(2n),
.col_single_content table tr td:nth-child(2n) {
  background: #fff;
  border: none;
  border-bottom: 1px solid #EFEDE4;
}
.col_single_content table tr th:nth-child(2n+1),
.col_single_content table tr td:nth-child(2n+1) {
  background: #EFEDE4;
  border: none;
  border-bottom: 1px solid #fff;
}
.col_single_content table tr:last-child th,
.col_single_content table tr:last-child td {
  border-bottom: none solid #000;
}
.col_single_content a:not(:has(.external-text-only)):not(:has(img)) {
  color: #2781D9;
  border-bottom: 1px solid #2781D9;
}
.col_single_content a .external-text-only {
  position: relative;
  display: inline-block;
  margin: 0 5px 0 0;
  padding: 0 0 2px;
  color: #2781D9;
  border-bottom: 1px solid #2781D9;
}
.col_single_content a[href^="http"]:not([href*="iroato.com"]):not([href^="#"]):not([href^="/"]) .external-text-only {
  padding: 0 13px 1px 0;
}
.col_single_content a[href^="http"]:not([href*="iroato.com"]):not([href^="#"]):not([href^="/"]) .external-text-only::after {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  content: " ";
  width: 10px;
  height: 10px;
  background: url(../images/common/icon_link_02.svg) center/10px 10px no-repeat;
}

/* --- No posts --- */
.col_arc_comingsoon {
  margin: 40px 0 0;
  text-align: center;
  color: #98A9B5;
}

/* --- Sidebar widgets --- */
.col_side_widget {
  margin: 40px 0 0;
}
.col_side_widget:first-child {
  margin: 0;
}
.col_side_ttl_wrap {
  padding: 0 0 12px;
  border-bottom: 2px solid #FED566;
}
.col_side_ttl_en {
  font-size: 12px;
  font-weight: bold;
  color: #2781D9;
}
.col_side_ttl_ja {
  font-size: 14px;
  font-weight: bold;
}

/* --- Keyword tags --- */
.col_side_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.col_tag_link {
  display: inline-block;
  padding: 4px 12px 6px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  background: #fff;
  transition: all .3s ease;
}
.col_tag_link::before {
  content: '#\0020';
  font-size: 14px;
  color: #2781D9;
}
.col_side_tag_list_wrap {
  display: flex;
  justify-content: flex-end;
  margin: 30px 0 0;
}
.col_side_tag_list_link {
  display: flex;
  align-items: center;
  gap: 0 8px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
}
.col_side_tag_list_icon {
  width: 6px;
  transition: all .3s ease;
}

/* --- Tag list page --- */
.col_tag_page_wrap {
  margin: 20px 0 0;
}
.col_tag_page_tags {
  gap: 10px;
}

/* --- Common list (new post / recommend) --- */
.col_side_list {
  margin: 0;
  padding: 0;
}
.col_side_list_item {
  padding: 12px 0;
  border-top: 1px solid #EFEDE4;
}
.col_side_list_item:last-child {
  border-bottom: 1px solid #EFEDE4;
}
.col_side_item_link {
  display: flex;
  gap: 0 12px;
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
}
.col_side_item_img_wrap {
  position: relative;
  flex-shrink: 0;
  width: 90px;
  overflow: hidden;
  border-radius: 6px;
}
.col_side_item_img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.col_side_item_body {
  flex: 1;
  min-width: 0;
}
.col_side_item_ttl {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
}

/* --- Ranking list --- */
.col_side_rank_list {
  margin: 0;
  padding: 0;
}
.col_side_rank_item {
  padding: 12px 0;
  border-bottom: 1px solid #EFEDE4;
}
.col_side_rank_item:first-child {
  border-top: 1px solid #EFEDE4;
}
.col_side_rank_num {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  background: #98A9B5;
  color: #fff;
}
.col_side_rank_num_01 { background: #FED566; }
.col_side_rank_num_02 { background: #C0C0C0; }
.col_side_rank_num_03 { background: #C4935A; }

/* ===== MEDIA QUERIES ===== */
@media only screen and (min-width: 768px) {
  .col_arc_layout {
    gap: 60px 0;
    margin: 40px 0 0;
  }
  .column_tabs_wrap {
    margin: 0;
  }
  .column_tab_link {
    font-size: clamp(12px, 1.4vw, 18px);
  }
  .col_arc_card_list {
    gap: 30px 20px;
  }
  .column_label {
    top: 10px;
    left: 10px;
    padding: 5px 12px;
  }
  .column_ttl {
    font-size: clamp(13px, 1.4vw, 18px);
  }
  .col_arc_row_img_wrap {
    width: 200px;
  }
  .col_arc_row_ttl {
    font-size: clamp(13px, 1.4vw, 18px);
  }
  .col_arc_excerpt {
    font-size: clamp(12px, 1.3vw, 16px);
  }
  .col_arc_row_excerpt {
    font-size: clamp(12px, 1.3vw, 16px);
  }
  .col_single_box {
    padding: 60px;
  }
  .col_single_ttl {
    font-size: clamp(20px, 2.8vw, 36px);
  }
  .col_arc_tag {
    font-size: 14px;
  }
  .col_arc_tag::before {
    font-size: 16px;
  }
  .col_tag_link {
    font-size: 14px;
  }
  .col_tag_link::before {
    font-size: 16px;
  }
}
@media only screen and (min-width: 1024px) {
  .column_ttl_link:hover .column_ttl {
    color: #98A9B5;
  }
  .col_side_ttl_en {
    font-size: 14px;
  }
  .col_side_ttl_ja {
    font-size: 16px;
  }
  .col_tag_link:hover {
    color: #98A9B5;
  }
  .col_arc_row_ttl_link:hover .col_arc_row_ttl {
    color: #98A9B5;
  }
  .col_arc_tag:hover {
    color: #98A9B5;
  }
  .col_side_tag_list_link:hover {
    color: #98A9B5;
  }
  .col_side_tag_list_link:hover .col_side_tag_list_icon {
    transform: translateX(3px);
  }
  .col_side_item_link:hover {
    color: #98A9B5;
  }
}
@media only screen and (min-width: 1280px) {
  .col_arc_layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 0 50px;
    margin: 50px 0 0;
  }
  .col_arc_main {
    flex: 1;
  }
  .col_arc_side {
    width: 300px;
    flex-shrink: 0;
  }
  .column_tab_link {
    padding: 13px 20px;
    font-size: 18px;
  }
  .column_ttl {
    font-size: 18px;
  }
  .column_date {
    font-size: 14px;
  }
  .col_arc_tag {
    padding: 4px 10px 6px 9px;
  }
  .col_single_box {
    padding: 80px;
    border-radius: 25px;
  }
  .col_single_meta {
    gap: 0 16px;
  }
  .col_single_meta .column_date {
    font-size: 14px;
  }
  .col_single_cat {
    padding: 6px 20px 5px;
  }
  .col_single_ttl {
    margin: 14px 0 0;
    padding: 0 0 20px;
    font-size: 26px;
  }
  .col_single_content {
    margin: 42px 0 0;
  }
  .col_single_content * + * {
    margin: 30px 0 0;
  }
  .col_single_content ul {
    padding: 0 0 0 20px;
  }
  .col_single_content table tr th,
  .col_single_content table tr td {
    padding: 8px 15px 9px;
  }
  .col_single_content a[href^="http"]:not([href*="iroato.com"]):not([href^="#"]):not([href^="/"]) .external-text-only {
    padding: 0 18px 1px 0;
  }
  .col_single_content a[href^="http"]:not([href*="iroato.com"]):not([href^="#"]):not([href^="/"]) .external-text-only::after {
    width: 15px;
    height: 15px;
    background: url(../images/common/icon_link_02.svg) center/15px 15px no-repeat;
  }
}
