:root {
    --header-bg-color: var(--color-beige);
    --arrow-button-size: 40px;
    --arrows-margin-top: 20px;
}

body {
    background-color: var(--color-beige);
}

.block {
    display: block;
}

.splide {
    max-width: 1200px;
    margin: auto;
}

.latest-post-section {
    width: 89.3%;
    max-width: 1064px;
    margin: auto;
    margin-top: 3rem;

    @media (width >= 768px) {
        margin-top: calc(6rem + var(--arrow-button-size));
    }
}

.latest-post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;

    @media (width >= 768px) {
        gap: 3rem;
    }
}

.column-card {
    padding: 1.25rem;
    background-color: var(--color-beige);
    border-radius: 8px;

    @media(width >= 768px) {
        padding: 2rem;
    }

    &:hover {
        background-color: var(--color-light-brown);
        opacity: inherit;
    }
}

.column-card-thumbnail-container{
    width: 100%;

    img {
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 3;
    }
}

.column-card-body {
    display: flex;
    flex-direction: column;
    gap:0.5rem;
    margin-top: 0.625rem;
    font-size: var(--text-ja-13);
    color: var(--color-dark-brown);

    @media(width >= 768px) {
        margin-top: 1.25rem;
        font-size: var(--text-ja-16);
    }
}

.tag {
    padding: 4px 8px;
    font-size: 12px;
    background-color: var(--color-white);
    border-radius: 4px;
}

.column-card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-post-section-title {
    margin-bottom: 1rem;
    font-size: var(--text-ja-24);

    @media (width >= 768px) {
        margin-bottom: 3rem;
    }
}

.other-post-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 6rem;
    margin-bottom: 5rem;

    @media(width >= 768px) {
        gap: calc(5rem + var(--arrow-button-size));
        margin-bottom: calc(10rem + var(--arrow-button-size));
    }   
}

.other-post-section-title {
    margin-bottom: 0.75rem;
    font-size: var(--text-ja-20);

    @media (width >= 768px) {
        margin-bottom: 2.5rem;
    }
}

.latest-post-section-title,
.other-post-section-title {
    color: var(--color-dark-brown);
    text-align: center;
}

.column-splide-arrows {
  position: relative;
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 144px;
  margin:auto;
  margin-top: 40px;
  text-align: center;

  .column-splide-arrow {
    top:0;
    width: var(--arrow-button-size);
    height: var(--arrow-button-size);
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    border: none;

  img {
        width: 100%;
        height: 100%;
        object-fit: contain;
  }
  }
}



