html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Noto Sans';
    font-weight: 300;
    font-size: 18px;
    color: #333;
    line-height: normal;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/************************ header ************************/

.header_top {
    display: flex;
    align-items: center;
    padding: 3%;
    border-bottom: 1px solid #CACACA;
}

.header_top_logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: auto;
}

.header_top_logo_img {
    width: 76px;
    height: 76px;
}

.header_top_txt_right {
    width: 330px;
}

.header_top_txt_sub {
    color: #C45443;
    width: 330px;
    letter-spacing: 0.06rem;
}

.hamburger {
    position: relative;
    width: 28px;
    height: 20px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transition: .3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    bottom: auto;
    transform: rotate(-45deg);
}

.language_switcher {
    position: relative;
}

.language_ex {
    display: none;
}

.language_ex_icon {
    width: 27px;
    height: 27px;
}

.language_dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #FFF;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    list-style: none;
    padding: 6px 0;
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.language_dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    transition: background .2s ease;
}

.language_dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header_nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #FFF;
    transition: .4s;
    z-index: 999;
}

.header_nav.open {
    right: 0;
}

.header_nav_ul {
    flex-direction: column;
    padding: 80px 24px;
}

.header_nav_li {
    position: relative;
    padding: 0 30px;
}

.header_nav_li a {
    position: relative;
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease;
}

.header_nav_li > a:hover {
    transform: translateY(-2px);
}

.header_nav_li + li::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #CACACA;
}

.header_nav_li.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFF;
    min-width: 160px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 999;
}

.dropdown li {
    list-style: none;
}

.dropdown li a {
    display: block;
    padding: 12px 30px;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.dropdown li a:hover {
    background: #8C1D13;
    color: #FFF;
}

.header_nav_li.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language_sp {
    display: block;
}

.nav_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 998;
}

.nav_overlay.show {
    opacity: 1;
    visibility: visible;
}

.no-scroll {
    overflow: hidden;
}

/************************ main ************************/

main  {
    background: linear-gradient(
        to bottom,
        #FFF 0%,
        #FFF 24%,
        #D9D9D9 24%,
        #D9D9D9 100%
    );
    overflow: hidden;
}

.wrapper_main {
    margin: 0 3% ;
    padding-top: 3%;
}

.wrapper_main_sub {
    background-color: #D9D9D9;
    padding-top: 3%;
}

.sub_bg {
    width: 96vw;
    background-color: #FFF;
    margin: auto;
}

.sub_main {
    --sub-gap: 48px;
    margin: 0 var(--sub-gap);
    padding-top: 40px;
    padding-bottom: 40px;
}

.sub_top {
    position: relative;
    padding-bottom: 20px;
}


.sub_top::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--sub-gap));
    right: calc(-1 * var(--sub-gap));
    bottom: 0;
    height: 4px;
    background: #8C1D13;
}

.breadcrumbs{
    font-size: 0.8rem;
    font-weight: bold;
    color: #B1B1B1;
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.page_title {
    font-size: 2.45rem;
    font-weight: bold;
    color: #8C1D13;
}

.sub_dtl {
    margin-top: 60px;
}

.about_dtl {
    border-bottom: 1px solid #D9D9D9;
}

.about_dtl p {
    margin-bottom: 1.5em;
}

.about_dtl p:last-child {
    margin-bottom: 60px;
}

.aboutme {
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aboutme_name {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: bold;
    color: #8C1D13;
}

.aboutme img {
    width: 316px;
}

/************************ articles***********************/

.article_filter,
.year_filter {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 16px;
}

.filter_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 52px;
    padding: 0 28px;
    border: 1.5px solid #8C1D13;
    border-radius: 999px;
    background: #FFF;
    color: #8C1D13;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.filter_btn:hover {
    background: #8C1D13;
    color: #FFF;
}

.filter_btn.is-active {
    background: #8C1D13;
    color: #FFF;
}

.article_pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.article_pagination_top {
    margin-bottom: 30px;
}

.pagination_capsule {
    display: inline-flex;
    align-items: center;
    background: #FFF;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pagination_nav,
.pagination_status {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    color: #8C1D13;
    font-size: 1.1rem;
    font-weight: 500;
}

.pagination_nav {
    width: 92px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.pagination_nav:hover:not(:disabled) {
    background: #8C1D13;
    color: #FFF;
}

.pagination_nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.pagination_status {
    min-width: 170px;
    padding: 0 28px;
    border-left: 1px solid #E5E5E5;
    border-right: 1px solid #E5E5E5;
    color: #8C1D13;
}

.year_archive_dtl .wrapper_new_article {
    margin-top: 24px;
}

/************************ contact ***********************/

.sub_heading {
    display: flex;
    align-items: baseline;
    gap: 28px;
    flex-wrap: wrap;
}

.contact_form {
    max-width: 620px;
    margin: 0 auto;
}

.form_group {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.form_group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 10px;
}

.required {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: bold;
    color: #FFF;
    background: #8C1D13;
    border-radius: 999px;
    line-height: 1.4;
}

.form_group input,
.form_group textarea {
    width: 100%;
    border: none;
    background: #FFF;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.form_group textarea {
    resize: vertical;
    min-height: 240px;
}

.form_group input:focus,
.form_group textarea:focus {
    outline: 1.5px solid #8C1D13;
}

.form_actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
}

.form_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 56px;
    padding: 0 24px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.form_btn.secondary {
    background: #D9D9D9;
    color: #333;
}

.form_btn.primary {
    background: #8C1D13;
    color: #FFF;
}

.form_btn.secondary:hover {
    background: #BEBEBE;
}

.form_btn.primary:hover {
    opacity: 0.9;
}

/************************ contact confirm **********************/

.contact_intro {
    margin-bottom: 30px;
}

.confirm_box {
    max-width: 620px;
    margin: 0 auto;
}

.confirm_row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.confirm_label {
    font-weight: bold;
}

.confirm_value {
    padding: 14px 16px;
    background: #FFF;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    line-height: 1.8;
    min-height: 56px;
}

.confirm_value.multiline {
    white-space: pre-line;
}

/************************ 404 ************************/

.error_page .sub_main {
    margin: 0 48px;
    padding: 56px 0 72px;
}

.error_page .page_title {
    color: #8C1D13;
}

.error_page .sub_dtl {
    text-align: center;
}

.error_page .sub_dtl p {
    max-width: 720px;
    margin: 0 auto;
}

.error_actions {
    margin-top: 40px;
}

.error_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 16px 28px;
    border: 1.5px solid #8C1D13;
    color: #8C1D13;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error_btn + .error_btn {
    margin-left: 8px;
}

.error_btn:hover {
    background: #8C1D13;
    color: #FFF;
}

.error_btn.secondary {
    background: #8C1D13;
    color: #FFF;
}

.error_btn.secondary:hover {
    background: transparent;
    color: #8C1D13;
}

/************************ firstview ************************/

.firstview_slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.firstview_track {
    display: flex;
    width: 100%;
    transition: transform 0.8s ease;
}

.firstview_slide {
    flex: 0 0 100%;
    position: relative;
}

.firstview {
    position: relative;
    max-width: 100%;
    flex-wrap: wrap;
}

.firstview_img {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    overflow: hidden;
}

.firstview_img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.firstview:hover .firstview_img img {
    transform: scale(1.06);
}

.firstview_img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
    z-index: 1;
}

.firstview_article {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4%;
    color: #FFF;
    flex: 1 1 auto;
}

.firstview .article_titre {
    font-size: 1.6rem;
    font-family: 'Noto Serif';
    font-weight: 400;
}

.firstview:hover .article_titre {
    color: #DF351B;
}

.firstview:hover .article_txt {
    color: #8C1D13;
}

.firstview_article .article_date {
    display: none;
}

.firstview_article .article_txt {
    display: none;
}

.article_date {
    color: #B1B1B1;
    font-weight: 500;
}

.slider_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 54px;
    height: 54px;
    border-radius: 5px;
    border: none;
    background: #8C1D13;
    color: #FFF;
    font-size: 50px;
    cursor: pointer;
    transition: background 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider_btn:hover {
    background: rgba(255,255,255,0.4);
    color: #8C1D13;
}

.slider_btn.prev {
    left: 10px;
}

.slider_btn.next {
    right: 10px;
}

.slider_btn span {
    display: block;
    transform: translateY(-4px);
}

.slider_dots {
    position: absolute;
    bottom: 40px;
    right: 10%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider_dot.is-active {
    background: #8C1D13;
    transform: scale(1.2);
}

/************************ articles ************************/

.new_article {
    background-color: #FFF;
    margin-top: 20px;
}

.article_intro {
    display: flex;
    justify-content: center;
    position: relative;
    width: auto;
    height: auto;
    color: #8C1D13;
    font-size: 2rem;
    font-weight: 600;
    padding: 3% 0;
}

.article_intro::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: #8C1D13;
}

.wrapper_new_article {
    padding: 2% 0;
}

.article_ul {
    display: flex;
    flex-flow: column;
    gap: 20px;
}

.article_card {
    height: 100%;
}

.article_link {
    display: block;
    background: #fff;
    padding: 16px;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.6s ease;
}

.article_img {
    position: relative;
    width: 100%;
    aspect-ratio: 598 / 364;
    overflow: hidden;
}

.article_img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article_dtl {
    position: relative;
    display: flex;
    flex-flow: column;
    gap: 2px;
    margin: 16px 12px;
}

.article_dtl::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    border-bottom: 2.5px dotted #B1B1B1;
    margin-top: 16px;
}

.article_link .article_titre {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.6rem;
    font-family: 'Noto Serif';
    font-weight: bold;
    transition: transform 0.6s ease;
}

.article_link .article_txt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.5;
    min-height: calc(1.5em * 4);
    max-height: calc(1.5em * 4);
}

.article_link:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.article_link:hover .article_img img {
    transform: scale(1.1);
}

.article_link:hover .article_titre,
.article_link:hover .article_txt {
    color: #8C1D13;
}

.article_meta {
    margin: 0 12px 12px;
}

.article_categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article_category_tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    color: #8C1D13;
    font-weight: 400;
    border: 1.5px solid #8C1D13;
    border-radius: 30px;
    line-height: 1;
}

.article_empty {
    text-align: center;
    margin: 48px auto 0;
    padding: 32px 20px;
    font-size: 1rem;
    color: #666;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
}

/************************ article single *************************/

.single_body h3 {
    position: relative;
    margin-top: 72px;
    margin-bottom: 24px;
    padding-left: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e0d8;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.45;
}

.single_body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 4px;
    height: 1.2em;
    background-color: #b8a46a;
}

.single_body h4 {
    color: #888;
    font-size: 0.8rem;
}


.single_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
}

.single_article {
    min-width: 0;
}

.single_head {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 24px;
}

.single_head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #D9D9D9;
}

.single_title {
    font-size: 2.4rem;
    font-family: 'Noto Serif';
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #333;
}

.single_date {
    font-size: 0.95rem;
    color: #B1B1B1;
    margin-bottom: 10px;
}

.single_categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.single_body {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #333;
}

.single_body p {
    margin-bottom: 2em;
}

.single_figure {
    margin: 36px 0 44px;
}

.single_figure img {
    width: 100%;
    height: auto;
    display: block;
}

.single_figure figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #888;
    text-align: center;
}

.single_back {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.back_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 16px 28px;
    border: 1.5px solid #8C1D13;
    background: #8C1D13;
    color: #FFF;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back_btn:hover {
    background: transparent;
    color: #8C1D13;
}

.single_sidebar {
    position: sticky;
    top: 120px;
}

.sidebar_tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #D9D9D9;
    margin-bottom: 18px;
}

.sidebar_tab {
    position: relative;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #B1B1B1;
}

.sidebar_icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.25s ease;
}

.sidebar_tab.is-active {
    color: #8C1D13;
}

.sidebar_tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: #8C1D13;
}

.sidebar_panel {
    display: none;
}

.sidebar_panel.is-active {
    display: block;
}

.sidebar_list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar_card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed #D9D9D9;
    text-decoration: none;
    color: #333;
}

.sidebar_card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
}

.sidebar_card span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar_card:hover span {
    color: #8C1D13;
}

.sidebar_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar_tags a {
    padding: 6px 14px;
    border: 1px solid #8C1D13;
    border-radius: 999px;
    color: #8C1D13;
    text-decoration: none;
    font-size: 0.85rem;
}

.sidebar_tags a:hover {
    background: #8C1D13;
    color: #FFF;
}

/************************ footer ************************/

footer {
    background-color: #8C1D13;
    color: #FFF;
    overflow: hidden;
}

.wrapper_footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 4% ;
}

.footer_top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer_logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer_txt_right {
    max-width: 330px;
    width: 100%;
    height: auto;
}

.footer_txt_sub {
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 0.035rem;
}

.sns {
    display: flex;
    gap: 10px;
}

.sns img {
    width: 38px;
    height: auto;
}

.sns a img {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sns a:hover img {
    opacity: 0.6;
    transform: translateY(-2px);
}

.footer_bottom {
    display: none;
}

.footer_nav {
    display: flex;
    flex-flow: column;
    gap: 16px;
}

.footer_medium {
    display: flex;
    flex-flow: column;
    gap: 46px;
}

.footer_category_tit {
    margin-bottom: 16px;
}

.footer_category_li {
    display: flex;
    width: 400px;
    gap: 16px 8px;
    flex-wrap: wrap;
}

.footer_category_li li a {
    background-color: #FFF;
    color: #8C1D13;
    font-size: 1rem;
    padding: 4px 20px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.footer_category_li li a:hover {
    background-color: #8C1D13;
    color: #FFF;
}

.footer_contact {
    display: flex;
    flex-flow: column;
    width: 380px;
    gap: 46px;
}

.footer_contact_magazine {
    display: none;
}

.magazine_tit,
.contact_tit {
    margin-bottom: 30px;
}

.footer_contact_magazine a,
.footer_contact_mail a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 22px 0;
    box-sizing: border-box;
    border: 2px solid #FFF;
    border-radius: 2px;
    letter-spacing: 0.08rem;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.footer_contact_magazine a:hover,
.footer_contact_mail a:hover {
    background-color: #FFF;
    color: #8C1D13;
}

.copyright {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/************************ tablet + sp ************************/

@media (max-width: 1023px) {
    .language_pc {
        display: none;
    }

    .language_sp {
        display: block;
        margin-top: auto;
        padding-top: 40px;
        border-top: 1px solid #D8D8D8;
        position: relative;
    }

    .header_nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 78%;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 100px 32px 40px;
        box-sizing: border-box;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .4s ease, opacity .3s ease;
    }

    .header_nav.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header_nav_ul {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 0;
    }

    .header_nav_li {
        padding: 0;
    }

    .header_nav_li + li::before {
        display: none;
    }

    .header_nav_li a {
        display: block;
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: 0.04em;
        line-height: 1.2;
    }

    .language_sp .language_ex {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.35rem;
        font-weight: 500;
        color: #333;
        margin-bottom: 22px;
    }

    .language_sp .language_ex_icon {
        width: 28px;
        height: 28px;
        opacity: .8;
    }

    .language_sp .language_dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        min-width: unset;
    }

    .language_sp .language_dropdown li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        font-size: 1.15rem;
        font-weight: 400;
        color: #333;
        border: 1px solid #DCDCDC;
        border-radius: 12px;
        background: #FAFAFA;
        transition: all .25s ease;
    }

    .language_sp .language_dropdown li a:hover {
        background: #8C1D13;
        color: #FFF;
        border-color: #8C1D13;
        transform: translateX(4px);
    }

    .language_sp .language_dropdown li a::after {
        content: "›";
        font-size: 1.2rem;
        line-height: 1;
        opacity: .6;
    }

    .header_nav_li.has-dropdown .dropdown {
        display: none !important;
    }

    .firstview {
        display: flex;
        align-items: stretch;
    }

    .firstview_img {
        width: 58%;
        aspect-ratio: auto;
    }

    .firstview_img::after {
        content: none;
    }

    .firstview_article {
        position: static;
        width: 42%;
        padding: 28px 24px;
        color: #333;
        justify-content: flex-start;
    }

    .firstview .article_titre {
        max-width: 100%;
        font-size: 1.35rem;
        line-height: 1.35;
        color: #333;
    }

    .firstview_article .article_date {
        display: block;
        margin-top: 8px;
    }

    .slider_dots {
        display: none;
    }

    main  {
        background: linear-gradient(
            to bottom,
            #FFF 0%,
            #FFF 10%,
            #D9D9D9 10%,
            #D9D9D9 100%
        );
        overflow: hidden;
    }

    .aboutme {
        padding: 20px 0;
    }

    .aboutme_name {
        font-size: 1.6rem;
    }

}

/************************ sp ************************/

@media (max-width: 768px) {
    .header_top {
        padding: 16px 20px;
        gap: 12px;
    }

    .header_top_logo {
        min-width: 0;
        gap: 10px;
    }

    .header_top_logo_img {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .header_top_txt {
        min-width: 0;
    }

    .header_top_txt_right {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    .header_top_txt_sub {
        width: 100%;
        font-size: 0.62rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header_nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 78%;
        height: 100dvh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 88px 24px 120px;
        box-sizing: border-box;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .4s ease, opacity .3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header_nav_ul {
        gap: 18px;
    }

    .header_nav_li a {
        font-size: 1.55rem;
        line-height: 1.15;
    }

    .language_sp {
        margin-top: 32px;
        padding-top: 28px;
        flex-shrink: 0;
    }

    .language_sp .language_ex {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    .language_sp .language_dropdown {
        gap: 8px;
    }

    .language_sp .language_dropdown li a {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .firstview {
        position: relative;
        display: block;
    }

    .firstview_img {
        position: relative;
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    .firstview_img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 35%,
            rgba(0, 0, 0, 0) 60%
        );
        z-index: 1;
    }

    .firstview_article {
        position: absolute;
        left: 20px;
        right: 110px;
        bottom: 20px;
        z-index: 2;
        padding: 0;
        color: #FFF;

        width: auto;
        justify-content: flex-end;
    }

    .firstview .article_titre {
        display: block;
        width: 100%;
        font-size: 1.2rem;
        color: #FFF;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .firstview_article .article_date,
    .firstview_article .article_txt {
        display: none;
    }

    .article_link .article_titre {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .slider_btn {
        width: 48px;
        height: 48px;
        font-size: 40px;
    }

    .slider_btn.prev {
        left: 12px;
    }

    .slider_btn.next {
        right: 12px;
    }

    .slider_dots {
        display: none;
    }

    /*************** articles ******************/

    .article_categories {
        font-size: 0.86rem;
    }

    .article_filter,
    .year_filter {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
        margin: 0 auto 24px;
    }

    .article_empty {
        margin-top: 32px;
        padding: 24px 16px;
        font-size: 0.95rem;
    }

    .filter_btn {
        width: 100%;
        min-width: 0;
        height: 48px;
        padding: 0 16px;
        font-size: 0.95rem;
    }

    .article_filter .filter_btn:first-child {
        grid-column: 1 / -1;
    }

    .year_filter .filter_btn:first-child {
        grid-column: auto;
    }

    .aboutme {
        flex-direction: column;
        gap: 30px;
    }

    .aboutme_name {
        font-size: 1.6rem;
    }

    /*************** article single ************/

    .single_layout {
        grid-template-columns: 1fr;
    }

    .single_title {
        font-size: 1.8rem;
    }

    .single_sidebar {
        position: static;
        margin-top: 48px;
    }

    .sidebar_card {
        grid-template-columns: 88px 1fr;
    }

    .sidebar_card img {
        width: 88px;
        height: 88px;
    }

    /*************** contact ***************/

    .sub_heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact_form {
        max-width: 100%;
    }

    .form_actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .form_btn {
        width: 100%;
        max-width: 320px;
    }

    .form_group textarea {
        min-height: 180px;
    }

    /*************** contact confirm **************/

    .confirm_row {
        margin-bottom: 20px;
    }

    .confirm_value {
        min-height: 52px;
    }

    /*************** 404 *****************/

    .error_page .sub_main {
        margin: 0 24px;
        padding: 36px 0 48px;
    }

    .error_page .sub_top {
        padding-bottom: 20px;
        margin-bottom: 32px;
    }

    .error_page .sub_top::after {
        left: -24px;
        right: -24px;
    }

    .error_actions {
        display: flex;
        flex-direction: column;
        margin-top: 32px;
        gap: 0;
    }

    .error_btn {
        width: 100%;
        min-width: auto;
    }

    .error_btn + .error_btn {
        margin-top: 14px;
        margin-left: 0;
    }
}

/************************ pc ************************/

@media (min-width: 1024px) {
    .language_pc {
        display: block;
    }

    .language_sp {
        display: none;
    }

    .language_ex {
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 6px 18px;
        border: 0.8px solid #333;
        border-radius: 5px;
        background-color: #FFF;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform .35s ease, opacity .35s ease;
    }

    header.hide {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .header_inner {
        display: flex;
        flex-direction: column;
    }

    .header_top {
        transition: transform .35s ease, opacity .25s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 3%;
        border-bottom: 1px solid #CACACA;
    }

    .header_top_logo {
        margin: 0;
    }

    header.compact .header_top {
        transform: translateY(-100%);
        opacity: 0;
        position: absolute;
    }

    .header_nav {
        transform: translateY(6px);
        transition: transform .35s ease;
    }

    header.compact .header_nav {
        transform: translateY(0);
    }

    .hamburger {
        display: none;
    }

    .header_nav {
        position: sticky;
        top: 0;
        height: auto;
        width: auto;
        right: 0;
        display: flex;
        justify-content: center;
        background: #FFF;
    }

    .header_nav_ul {
        display: flex;
        flex-direction: row;
        padding: 26px 0;
    }

    header.compact .header_nav_ul {
        padding: 16px 0;
    }

    .firstview {
        display: flex;
        align-items: stretch;
        margin-left: 28px;
        padding-bottom: 0;
    }

    .firstview_img {
        width: 60%;
    }

    .firstview_img::after {
        content: none;
    }

    .firstview_img img {
        object-fit: cover;
    }

    .firstview_article {
        position: static;
        justify-content: flex-start;
        width: 40%;
        gap: 6px;
        color: #333;
        padding: 4% 5% 4% 2%;
    }

    .firstview_article .article_titre {
        font-weight: 600;
    }

    .firstview:hover .article_titre {
        color: #8C1D13;
    }

    .firstview_article .article_date {
        display: block;
    }

    .firstview_article .article_txt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
        line-height: 1.5;
        min-height: calc(1.5em * 4);
        max-height: calc(1.5em * 4);
    }

    .slider_dots {
        bottom: 30px;
        right: 14%;
    }

    .new_article {
        margin-top: 50px;
    }

    .wrapper_new_article {
        padding: 3% 4%;
    }

    .article_intro {
        display: block;
        padding: 2% 6%;
        font-size: 2.6rem;
    }

    .article_ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article_li {
        display: flex;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }

    .article_link {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 16px;
        color: inherit;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .article_dtl {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 230px;
    }

    .article_meta {
        margin: 0 12px 12px;
    }

    .article_categories {
        display: flex;
        gap: 8px;
    }

    /**************** footer **************/

    .footer_top {
        flex-direction: row;
        justify-content: space-between;
        align-items: normal;
        margin-bottom: 58px;
        gap: 0;
    }

    .footer_bottom {
        display: flex;
        justify-content: center;
        gap: 100px;
        font-size: 1.2rem;
        font-weight: 500;
    }
}