@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap");

/* Variables & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #ffffff;
    color: #1c1917;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Utilities */
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

/* Common Layout */
.l-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.l-container--narrow {
    max-width: 1024px;
    text-align: left;
}

/* Utility */
.u-overflow-hidden {
    overflow: hidden !important;
}

.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hamburger-btn__line {
    width: 24px;
    height: 2px;
    background-color: #111;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 50%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
}

.nav-drawer.is-active {
    transform: translateX(0);
}

.nav-drawer__inner {
    width: 100%;
    height: 100%;
    padding: 240px 20px 40px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-drawer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}

.nav-drawer__list>li {
    margin: 0;
}

.nav-drawer__list a {
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    transition: color 0.3s;
    display: inline-block;
    letter-spacing: 0.1em;
}

.nav-drawer__list a:hover {
    color: #E60012;
}

.nav-drawer__sublist {
    list-style: none;
    padding: 20px 5px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #eee;
    margin-right: 15px;
}

.nav-drawer__sublist li {
    margin: 0;
}

.nav-drawer__sublist li a {
    font-size: 13px;
    font-weight: normal;
    color: #666;
}

@media screen and (max-width: 768px) {
    .nav-drawer {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-drawer__inner {
        padding: 80px 40px;
        display: block;
        text-align: left;
    }

    .nav-drawer__list {
        writing-mode: horizontal-tb;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        max-height: none;
        width: 100%;
        gap: 15px;
    }

    .nav-drawer__list>li {
        width: 100%;
        margin-bottom: 10px;
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 10px;
    }

    .nav-drawer__list a {
        display: block;
        width: 100%;
        font-size: 16px;
    }

    .nav-drawer__sublist {
        padding: 5px 0 0 15px;
        border-right: none;
        margin-right: 0;
        border-left: 2px solid #eee;
        gap: 8px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #fcf7e8;
    padding: 80px 0 40px;
    font-family: "Noto Sans JP", sans-serif;
    color: #111;
    width: 100%;
    margin-top: 5rem;
    border-top: none;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: block;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer__left {
    flex-shrink: 0;
}

.footer__logo-group {
    margin-bottom: 30px;
}

.footer__logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.footer__company-info {
    font-size: 14px;
    line-height: 1.8;
}

.footer .company-name {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer .company-address {
    margin-bottom: 5px;
}

.footer__nav {
    display: flex;
    gap: 40px;
}

.footer__nav-group {
    display: flex;
}

.footer__nav-list--vertical {
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.footer__nav-list li {
    list-style: none;
}

.footer__nav-list a {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
    white-space: nowrap;
}

.footer__nav-list a:hover {
    color: #E60012;
}

.footer__nav-sublist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 5px 0 0;
}

.footer__nav-sublist li a {
    font-size: 14px;
    font-weight: normal;
}

.footer__bottom {
    margin-top: 80px;
}

.footer__divider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 4px;
    border-top: 2px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.footer__copyright {
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* Mobile Styles */
@media screen and (max-width: 1024px) {
    .footer {
        padding: 60px 0 20px;
    }

    .footer__inner {
        padding: 0 20px;
    }

    .footer__content {
        flex-direction: column;
        gap: 40px;
    }

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

    .footer__nav-list--vertical {
        writing-mode: horizontal-tb;
        flex-direction: column;
        gap: 15px;
    }

    .footer__nav-sublist {
        flex-direction: column;
        padding: 5px 0 0 20px;
        margin-top: 10px;
    }

    .footer__logo-img {
        height: 50px;
    }

    .footer__bottom {
        margin-top: 40px;
    }
}

/* Page Components */
.page-header {
    padding-top: 80px;
    padding-bottom: 40px;
    text-align: left;
    background-color: #FCF7E8;
    margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
    .page-header {
        padding-top: 48px;
    }
}

.page-header__inner {
    border-bottom: 1px solid #292524;
    padding-bottom: 16px;
}

.page-header__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2em;
    color: #292524;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .page-header__title {
        font-size: 36px;
    }
}

.page-header__subtitle {
    font-size: 10px;
    font-weight: 700;
    color: #a8a29e;
    margin-top: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.main-content {
    padding: 60px 0 128px;
}

/* 2-Column Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 60px;
    align-items: start;
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    order: 2;
}

@media screen and (max-width: 768px) {
    .sidebar {
        order: 1;
        position: static;
    }
}

.sidebar__section {
    margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
    .sidebar__section {
        margin-bottom: 0;
    }
}

.sidebar__title {
    font-size: 16px;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f4;
    padding: 8px 12px;
}

@media screen and (max-width: 768px) {
    .sidebar__title {
        margin-bottom: 20px;
        padding: 15px 0;
        border-bottom: 1px solid #e7e5e4;
    }
}

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

@media screen and (max-width: 768px) {
    .sidebar__list {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding-bottom: 24px;
        border-bottom: 1px solid #e7e5e4;
    }

    .sidebar__item {
        margin-bottom: 0;
    }

    .sidebar__item a {
        padding: 6px 12px;
        background-color: #f5f5f4;
        border-radius: 4px;
        font-size: 13px;
    }
}

.sidebar__item {
    margin-bottom: 16px;
}

.sidebar__item a {
    font-size: 14px;
    font-weight: 500;
    color: #292524;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.6;
}

.sidebar__item a:hover {
    color: #2f2f2f;
}



/* Article List */
.article-list {
    flex: 1;
    order: 1;
}

@media screen and (max-width: 768px) {
    .article-list {
        order: 2;
    }
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Article Card - Horizontal Layout */
.column-card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border-bottom: 1px solid #e7e5e4;
    padding: 32px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.column-card:hover {
    background-color: #fafaf9;
}

.column-card:hover .column-card__image {
    transform: scale(1.05);
}

.column-card:hover .column-card__title {
    color: #2f2f2f;
}

.column-card__image-wrapper {
    width: 200px;
    height: 133px;
    flex-shrink: 0;
    background-color: #f5f5f4;
    overflow: hidden;
    margin-right: 24px;
}

.column-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.column-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.column-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.column-card__category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #2f2f2f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.column-card__date {
    font-size: 11px;
    font-weight: 400;
    color: #a8a29e;
    letter-spacing: 0.05em;
}

.column-card__title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #292524;
    line-height: 32px;
    letter-spacing: 0;
    margin: 0;
    transition: color 0.3s ease;
}

@media screen and (max-width: 768px) {
    .column-card {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .column-card__image-wrapper {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* Filter Active State */
.sidebar__item a.is-active {
    color: #2f2f2f;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .sidebar__item a.is-active {
        background-color: #2f2f2f;
        color: #ffffff;
    }
}