@charset "UTF-8";
/* CSS Document */

.contents_inner {
    margin: 0 auto;
    max-width: 1100px;
}

.contents {
    padding: 150px 0;
}

.news_contents {
    margin-bottom: 50px;
}

ul.news_category {
    display: flex;
    margin-bottom: 100px;
    justify-content: space-between;
    border: 1px solid;
}

ul.news_category li a {
    display: flex;
    font-size: 1.8rem;
    justify-content: center;
    font-weight: 400;
    padding: 10px 30px;
    height: 100%;
    align-items: center;
    width: 100%;
    color: #000;
}

li.news_category_active {
    padding: 10px 30px;
    font-size: 1.8rem;
    background: #000;
    color: #fff;
}

ul.news_category li {
    width: 35%;
    text-align: center;
}

ul.news_category li:nth-child(2) {
    border-left: 1px solid;
    border-right: 1px solid;
}


ul.news_list {
    display: grid;
    gap: 30px;
}

ul.news_list li a {
    display: flex;
    padding: 50px;
    color: #000;
    border-radius: 8px;
    width: 100%;
    align-items: baseline;
    background: linear-gradient(210deg, rgba(0, 0, 0, 0.03) 0%, rgb(255, 255, 255,0.65) 100%);
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.016) -8px 8px 5px, rgba(255, 255, 255, 0.3) 4px -3px 2px;
}

ul.news_list li a i {
    position: absolute;
    right: 50px;
    top: 50%;
    border: 1px solid;
    margin-top: -14px;
    border-radius: 100%;
    padding: 4px;
}

ul.news_list li {
    display: flex;
    justify-content: space-between;
}

.news_list_category {
    padding: 5px 8px;
    background: linear-gradient(45deg, rgba(1, 52, 68, 1) 0%, rgba(0, 86, 112, 1) 100%);
    color: #fff;
    font-weight: 400;
    font-size: 1.3rem;
    width: 10%;
    border-radius: 100px;
    margin: 0 20px;
    text-align: center;
}

.news_list_date {
    color: #01505F;
    font-weight: 500;
    width: 10%;
    font-size: 1.6rem;
}

.news_list li a h3 {
    width: 72%;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 150%;
}


ul.page_nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    line-height: 100%;
    font-weight: 300;
    border-radius: 5px;
    overflow: hidden;
}

ul.page_nav li a {
    font-size: 1.6rem;
    color: #aaa;
    padding: 10px;
    display: block;
    border: 1px solid;
}

ul.page_nav li {
    font-size: 1.6rem;
}

/* Category: left-to-right fill, exit to the right */
ul.news_category li a, ul.case_category li a {
  position: relative; isolation: isolate; overflow: hidden;
  transition: color .32s ease;
}
ul.news_category li a::before, ul.case_category li a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #000; transform: translateX(-101%);
  transition: transform .38s cubic-bezier(.65,0,.25,1);
}
ul.news_category li a:hover, ul.news_category li a:focus-visible,
ul.case_category li a:hover, ul.case_category li a:focus-visible { color: #fff; }
ul.news_category li a:hover::before, ul.news_category li a:focus-visible::before,
ul.case_category li a:hover::before, ul.case_category li a:focus-visible::before { transform: translateX(0); }
ul.news_category li a.is-leaving::before, ul.case_category li a.is-leaving::before { transform: translateX(101%); }
ul.news_category li a.is-resetting::before, ul.case_category li a.is-resetting::before { transition: none; transform: translateX(-101%); }

/* Shared pagination for NEWS and CASE */
ul.page_nav { display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:10px; border-radius:0; overflow:visible; line-height:1.2; }
ul.page_nav li { display:flex; align-items:center; justify-content:center;
  min-width:44px; min-height:44px; padding:0; border:1px solid #111;
  border-radius:4px; background:#111; color:#fff; font-size:1.5rem; font-weight:500; }
ul.page_nav li a { display:flex; align-items:center; justify-content:center;
  width:100%; min-width:42px; min-height:42px; padding:8px 12px;
  border:0; border-radius:3px; color:#111; background:#fff;
  transition: background-color .3s ease, color .3s ease; }
ul.page_nav li:has(> a) { background:#fff; }
ul.page_nav li a:hover, ul.page_nav li a:focus-visible { background:#111; color:#fff; }
@media (prefers-reduced-motion:reduce) {
 ul.news_category li a::before, ul.case_category li a::before, ul.page_nav li a { transition:none; }
}

/* NEWS list: horizontal slot arrow and soft title fade */
ul.news_list li a h3 { transition:opacity .35s ease; }
ul.news_list li a:hover h3, ul.news_list li a:focus-visible h3 { opacity:.5; }
ul.news_list li a i { display:inline-block; transition:none; }
ul.news_list li a:hover i, ul.news_list li a:focus-visible i {
 animation:legNewsArrowSlot .6s ease-in-out both;
}
@keyframes legNewsArrowSlot {
 0% { transform:translateX(0); opacity:1; }
 40% { transform:translateX(120%); opacity:0; }
 41% { transform:translateX(-120%); opacity:0; }
 100% { transform:translateX(0); opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
 ul.news_list li a:hover i, ul.news_list li a:focus-visible i { animation:none; }
}

/* Active category navigation: keep the label legible and clickable. */
li.news_category_active > a { color: #fff; }

/* Active category text stays white, including after hover animations. */
ul.news_category li.news_category_active > a, ul.news_category li.news_category_active > a:visited { color: #ffffff; }
