/* News detail page specific styles. */

.news-detail-page {
    padding-bottom: 13.6rem;
}

.news-detail-hero {
    width: calc(100% - var(--edge-padding));
    margin: 0 var(--edge-padding) 0 0;
    padding: 8.8rem 14rem 10.8rem;
    border-radius: 0 0.8rem 0.8rem 0;
    background: var(--mint-light);
}

.news-detail-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42rem;
    gap: 8rem;
    align-items: center;
}

.news-detail-kicker,
.article-category,
.sidebar-block h2 {
    color: var(--mint-dark);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.5;
}

.news-detail-hero h1 {
    max-width: 78rem;
    margin-top: 1.8rem;
    color: var(--text);
    font-size: clamp(4.6rem, 3.62vw, 6.4rem);
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: 0;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 3rem;
    color: var(--mint-deep);
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.news-detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0 1.5rem;
    border: 0.1rem solid rgba(25, 139, 120, 0.2);
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.46);
}

.news-detail-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36rem;
}

.news-detail-hero-visual::before {
    content: "";
    position: absolute;
    inset: 1.2rem 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.news-detail-hero-visual img {
    position: relative;
    z-index: 1;
    width: 128%;
    max-width: none;
    height: auto;
}

.article-layout {
    display: grid;
    grid-template-columns: 30rem minmax(0, 1fr);
    gap: 8rem;
    align-items: start;
    width: var(--content-wide);
    margin: 0 auto;
    padding-top: 12rem;
}

.article-sidebar {
    position: sticky;
    top: 12rem;
    display: grid;
    gap: 3.2rem;
}

.sidebar-block {
    padding: 3.2rem 0;
    border-top: 0.1rem solid var(--line);
    border-bottom: 0.1rem solid var(--line);
}

.recent-post-list,
.category-list {
    display: grid;
    gap: 0;
    margin-top: 2.4rem;
    list-style: none;
}

.recent-post-list li {
    border-top: 0.1rem solid rgba(25, 139, 120, 0.14);
}

.recent-post-list a {
    display: grid;
    gap: 0.8rem;
    padding: 1.8rem 0;
    color: var(--text);
    transition: color 0.25s ease, transform 0.25s ease;
}

.recent-post-list time {
    color: var(--mint-dark);
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.recent-post-list span {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.65;
}

.category-list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.category-list a {
    display: flex;
    align-items: center;
    min-height: 4.2rem;
    padding: 0 1.6rem;
    border-radius: 999rem;
    background: var(--mint-pale);
    color: var(--mint-deep);
    font-size: 1.4rem;
    font-weight: 800;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.recent-post-list a:hover,
.recent-post-list a:focus-visible {
    color: var(--mint-dark);
    transform: translateX(0.4rem);
}

.category-list a:hover,
.category-list a:focus-visible {
    background: var(--mint-dark);
    color: #fff;
    transform: translateX(0.4rem);
}

.article-main {
    min-width: 0;
    max-width: 96rem;
}

.article-header,
.article-body,
.article-action {
    border-radius: 0.8rem;
}

.article-header {
    padding: 6.4rem 7.2rem 5.8rem;
    background: var(--mint-pale);
}

.article-header h2 {
    margin-top: 1.6rem;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.55;
}

.article-header p {
    color: var(--muted);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.05;
}

.article-header .article-category {
    color: var(--mint-dark);
}

.article-body {
    margin-top: 5rem;
    padding: 7.2rem;
    background: #fff;
    border: 0.1rem solid var(--line);
}

.article-body h2 {
    margin-top: 6.4rem;
    margin-bottom: 2.6rem;
    padding: 1.8rem 2.4rem 1.9rem;
    border-left: 0.6rem solid var(--mint-dark);
    background: var(--mint-pale);
    color: var(--text);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.55;
}

.article-body h3 {
    margin-top: 5.2rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.4rem;
    border-bottom: 0.2rem solid rgba(25, 139, 120, 0.18);
    color: var(--text);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.6;
}

.article-body h4 {
    margin-top: 4.2rem;
    margin-bottom: 1.8rem;
    padding-left: 1.6rem;
    border-left: 0.4rem solid var(--mint-dark);
    color: var(--mint-deep);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.7;
}

.article-body h5 {
    margin-top: 3.4rem;
    margin-bottom: 1.4rem;
    color: var(--text);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.75;
}

.article-body h5::before {
    content: "";
    display: inline-block;
    width: 1.4rem;
    height: 0.2rem;
    margin-right: 0.8rem;
    vertical-align: 0.35em;
    background: var(--mint-dark);
}

.article-section {
    margin-top: 6.4rem;
}

.article-body .article-section:first-child {
    margin-top: 0;
}

.article-section h2 {
    color: var(--text);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.55;
}

.article-body ol,
.article-body ul{
    margin: 1em 0 1em 1.5em;
}
.article-body p{
    padding-bottom: 1em;
}

.article-section p,
.article-section li {
    color: var(--muted);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 2.15;
}

.article-section p {
    margin-top: 2.2rem;
}

.article-section ul {
    display: grid;
    gap: 1.4rem;
    margin-top: 2.6rem;
    padding-left: 2rem;
}

.article-note {
    padding: 4.2rem;
    border-radius: 0.8rem;
    background: var(--mint-light);
}

.article-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding: 3.2rem 0 0;
}

.primary-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.primary-link {
    min-width: 30rem;
    min-height: 5.8rem;
    padding: 0 3.2rem;
    border: 0.1rem solid var(--mint-dark);
    border-radius: 0.8rem;
    background: var(--mint-dark);
    color: #fff;
}

.primary-link:hover,
.primary-link:focus-visible {
    background: #fff;
    color: var(--mint-dark);
    transform: translateY(-0.2rem);
}

.text-link {
    color: var(--mint-dark);
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--mint-deep);
    transform: translateX(0.4rem);
}

@media (max-width: 1024px) {
    .news-detail-page {
        padding-bottom: 8rem;
    }

    .news-detail-hero {
        width: 100%;
        margin: 0;
        padding: 5.6rem 2rem 6.8rem;
        border-radius: 0;
    }

    .news-detail-hero-head {
        grid-template-columns: 1fr;
        gap: 3.6rem;
    }

    .news-detail-hero h1 {
        font-size: 3.6rem;
        line-height: 1.42;
    }

    .news-detail-meta {
        margin-top: 2.2rem;
    }

    .news-detail-hero-visual {
        min-height: 22rem;
    }

    .news-detail-hero-visual img {
        width: 118%;
    }

    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 5.2rem;
        width: min(100% - 4rem, 52rem);
        padding-top: 6.4rem;
    }

    .article-main {
        max-width: none;
        width: 100%;
    }

    .article-sidebar {
        position: static;
        order: 2;
        width: 100%;
    }

    .article-header {
        padding: 4rem 2.4rem 3.8rem;
    }

    .article-header h2 {
        font-size: 2.6rem;
    }

    .article-body {
        margin-top: 3.2rem;
        padding: 4rem 2.4rem;
    }

    .article-body h2 {
        margin-top: 5.2rem;
        padding: 1.5rem 1.8rem 1.6rem;
        font-size: 2.3rem;
    }

    .article-body h3 {
        margin-top: 4.4rem;
        font-size: 2rem;
    }

    .article-body h4 {
        margin-top: 3.6rem;
        font-size: 1.75rem;
    }

    .article-body h5 {
        margin-top: 3rem;
        font-size: 1.55rem;
    }

    .article-section {
        margin-top: 4.8rem;
    }

    .article-section h2 {
        font-size: 2.3rem;
    }

    .article-note {
        padding: 3rem 2.4rem;
    }

    .article-action {
        display: grid;
        justify-items: stretch;
    }

    .primary-link {
        min-width: 0;
        width: 100%;
    }

    .text-link {
        justify-content: center;
        min-height: 4.8rem;
    }
}

/* News list page. */

.news-list-page {
    padding-bottom: 13.6rem;
}

.news-list-hero .news-detail-hero h1,
.news-list-hero h1 {
    color: var(--mint-dark);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(8.4rem, 6.46vw, 12.4rem);
    line-height: 1;
}

.news-list-lead {
    max-width: 72rem;
    margin-top: 3rem;
    color: var(--muted);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 2;
}

.news-list-layout {
    display: grid;
    grid-template-columns: 30rem minmax(0, 1fr);
    gap: 8rem;
    align-items: start;
    width: var(--content-wide);
    margin: 0 auto;
    padding-top: 12rem;
}

.news-list-main {
    min-width: 0;
}

.news-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4.8rem;
}

.news-list-heading h2 {
    margin-top: 0.8rem;
    color: var(--text);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.news-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.2rem;
}

.news-article-card {
    min-height: 100%;
    border: 0.1rem solid var(--line);
    border-radius: 0.8rem;
    background: #fff;
    overflow: hidden;
}

.news-article-card a {
    display: grid;
    height: 100%;
    color: var(--text);
}

.news-article-card-featured {
    grid-column: 1 / -1;
}

.news-article-card-featured a {
    grid-template-columns: minmax(0, 42rem) minmax(0, 1fr);
}

.news-card-thumb {
    display: flex;
    min-height: 24rem;
    padding: 3rem;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--mint-light), #fff);
    color: var(--mint-dark);
}

.news-card-thumb span {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0;
}

.news-card-thumb strong {
    max-width: 32rem;
    color: var(--text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.55;
}

.news-card-body {
    display: flex;
    min-height: 100%;
    padding: 4rem;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: var(--mint-dark);
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0 1.2rem;
    border-radius: 999rem;
    background: var(--mint-pale);
}

.news-card-body h3 {
    margin-top: 2rem;
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.55;
}

.news-card-body p {
    margin-top: 1.6rem;
    color: var(--muted);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 2;
}

.news-card-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 4.4rem;
    margin-top: auto;
    padding: 0 2.2rem;
    border: 0.1rem solid var(--mint-dark);
    border-radius: 999rem;
    background: var(--mint-dark);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.news-article-card a:hover .news-card-more,
.news-article-card a:focus-visible .news-card-more {
    background: #fff;
    color: var(--mint-dark);
    transform: translateY(-0.2rem);
}

@media (max-width: 1024px) {
    .news-list-page {
        padding-bottom: 8rem;
    }

    .news-list-hero h1 {
        font-size: 6.4rem;
    }

    .news-list-lead {
        margin-top: 2.4rem;
        font-size: 1.55rem;
    }

    .news-list-layout {
        display: flex;
        flex-direction: column;
        gap: 5.2rem;
        width: min(100% - 4rem, 52rem);
        padding-top: 6.4rem;
    }

    .news-list-sidebar {
        order: 2;
    }

    .news-list-heading {
        display: block;
        margin-bottom: 3.2rem;
    }

    .news-list-heading h2 {
        font-size: 3.2rem;
    }

    .news-article-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .news-article-card-featured a {
        grid-template-columns: 1fr;
    }

    .news-card-thumb {
        min-height: 18rem;
        padding: 2.4rem;
    }

    .news-card-body {
        padding: 3rem 2.4rem;
    }

    .news-card-body h3 {
        font-size: 2.1rem;
    }
}

/* Simple news list page. */

.news-simple-page {
    padding-bottom: 13.6rem;
}

.news-simple-hero {
    width: calc(100% - var(--edge-padding));
    margin: 0 var(--edge-padding) 0 0;
    padding: 8.8rem 14rem 10.8rem;
    border-radius: 0 0.8rem 0.8rem 0;
    background: var(--mint-light);
}

.news-simple-hero h1 {
    margin-top: 0.8rem;
    color: var(--mint-dark);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(8.4rem, 6.46vw, 12.4rem);
    font-weight: 800;
    line-height: 1;
}

.news-simple-hero p {
    max-width: 72rem;
    margin-top: 3rem;
    color: var(--muted);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 2;
}

.news-simple-hero .news-detail-kicker {
    margin-top: 0;
}

.news-simple-layout {
    display: grid;
    grid-template-columns: 30rem minmax(0, 1fr);
    gap: 8rem;
    align-items: start;
    width: var(--content-wide);
    margin: 0 auto;
    padding-top: 12rem;
}

.news-simple-main {
    min-width: 0;
}

.news-simple-list {
    border-top: 0.1rem solid var(--line);
}

.news-simple-item {
    border-bottom: 0.1rem solid var(--line);
}

.news-simple-item a {
    display: grid;
    grid-template-columns: 13rem 13rem minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
    min-height: 9.6rem;
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.news-simple-item time {
    color: var(--mint-dark);
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.news-simple-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0 1.4rem;
    border-radius: 999rem;
    background: var(--mint-pale);
    color: var(--mint-deep);
    font-size: 1.3rem;
    font-weight: 800;
}

.news-simple-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.7;
}

.news-simple-item a:hover,
.news-simple-item a:focus-visible {
    background: var(--mint-pale);
    color: var(--mint-dark);
}

@media (max-width: 1024px) {
    .news-simple-page {
        padding-bottom: 8rem;
    }

    .news-simple-hero {
        width: 100%;
        margin: 0;
        padding: 5.6rem 2rem 6.8rem;
        border-radius: 0;
    }

    .news-simple-hero h1 {
        font-size: 6.4rem;
    }

    .news-simple-hero p {
        margin-top: 2.4rem;
        font-size: 1.55rem;
    }

    .news-simple-layout {
        display: flex;
        flex-direction: column;
        gap: 5.2rem;
        width: min(100% - 4rem, 52rem);
        padding-top: 6.4rem;
    }

    .news-simple-sidebar {
        order: 2;
    }

    .news-simple-item a {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        min-height: 0;
        padding: 2.4rem 0;
    }

    .news-simple-item span {
        width: fit-content;
    }

    .news-simple-item h3 {
        font-size: 1.7rem;
    }
}
