/* SECTIONS */

section {
    font-size: 0.75rem;
    padding: var(--main-padding) !important;
}

/* POST CONTENTS */

.post-contents {
    margin: 0.5em auto;
    max-width: 70ch;
    color: #606060;
}

.post-contents p {
    text-align: justify;
}

.post-contents * {
    font-family: var(--regular-font) !important;
}

.post-contents h1,
.post-contents h2,
.post-contents h3 {
    font-family: var(--bold-font) !important;
}

.post-contents h1 {
    font-family: var(--bold-font);
    font-size: 2.5em;
}

.post-contents h2,
.post-contents h3,
.post-contents h4 {
    width: fit-content;
    font-family: var(--bold-font);
    font-size: 1.5em;
    color: #333333;
}

.post-contents img {
    max-width: 100%;
}

.post-contents ul,
.post-contents ol {
    padding-left: 2em;
}

.post-contents ul {
    list-style-type: disc;
    color: #333333;
}

.text-anchor {
    color: #6bbc44;
}

.text-anchor>input {
    display: none;
}

/* OTHER NEWS */

.other-news {
    --_card-width: 280px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--_card-width), 1fr));
    justify-items: center;
    gap: var(--main-padding);

    max-width: calc(calc(var(--main-padding) * 2) + calc(var(--_card-width) * 3) + var(--main-padding) + var(--main-padding));
    margin: auto;
    padding: var(--main-padding);
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 60ch;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 5ch;
    transition: transform 0.5s ease-in-out;
    transform: translateX(17%);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-item {
    min-width: 35%;
    min-height: 350px;
    padding-bottom: 20px;

    box-shadow: 4px 4px 6px var(--boxshadow-color);
    transition: transform 0.1s ease-out;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.carousel-item:is(:hover, :focus) {
    transform: scale(1.01);
}

.carousel-item:is(:hover, :focus)>h3 {
    color: #626262;
}

.carousel-item>img {
    display: block;
    width: 100%;
    aspect-ratio: 1.75 / 1;
    object-fit: cover;
}

.carousel-item>h3 {
    max-width: 90%;
    margin: 0.5em 20px;
    font-size: 1.25em;
    color: #757b81;
    font-family: var(--bold-font);
    text-align: start;
}

.carousel-item>a {
    max-width: 90%;
    margin: 0 20px;
    font-size: 1.25em;
    color: var(--company-color1);
    text-align: center;
    margin-top: 2ch;
    margin-left: auto;

    transition: color 0.1s ease-out;
    display: flex;
    align-items: stretch;
    gap: 0.5em;
}

.carousel-item>a:is(:hover, :focus) {
    color: var(--company-color3);
}

.carousel-item>a::after {
    content: "▲";
    display: inline-block;
    transform: rotate(90deg);
    margin-bottom: 1ch;
}

@media (width>=768px) {
    section {
        font-size: 1rem;
    }
}

@media (width>=1024px) {
    section {
        font-size: 1.1rem;
    }

    .post-contents {
        max-width: 120ch;
    }

    .carousel {
        max-width: 100ch;
    }
}

@media (width>=1440px) {
    section {
        font-size: 1.2rem;
    }
}