* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Kanit, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #282828;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease-in-out;
}

a:hover {
    opacity: 0.5;
}

.main-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 35px;
    width: 100%;
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 48px;
}

.language-switcher a {
    font-size: 14px;
    font-weight: 500;
    line-height: 20.93px;
    letter-spacing: 0.05em;
    padding: 4px;
    opacity: 0.3;
}

.language-switcher a.active {
    opacity: 1;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher .divider {
    width: 1px;
    height: 16px;
    background-color: #000;
    opacity: 0.1;
}

.title-section {
    margin-top: 48px;
    margin-bottom: 48px;
    text-align: center;
}

.main-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.46;
    letter-spacing: 0.05em;
}

.content-section {
    margin-top: 48px;
    padding-bottom: 16px;
}

.content-section:first-of-type {
    margin-top: 0;
}

.links-section {
    padding-top: 48px;
}

.links-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 35.88px;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 32px;
}

.links-title a {
    color: inherit;
    text-decoration: none;
}

.links-title a:hover {
    opacity: 0.5;
}

.random-link-area {
    display: grid;
    place-items: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

.random-link {
    font-size: 12px;
    font-weight: 500;
    line-height: 17.94px;
    letter-spacing: 0.05em;
    text-decoration: underline;
    display: block;
    text-align: center;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.random-link:hover {
    opacity: 0.5;
}

.random-link:disabled {
    opacity: 0.5;
    cursor: wait;
}

.random-description {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-top: 8px;
    text-align: center;
}

.hazedenki-description {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.description-line {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin: 4px 0;
}

.new-column-subsection {
    margin-top: 64px;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.subsection-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 16.45px;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.subsection-line {
    height: 1px;
    width: 100%;
    background-color: #000;
    opacity: 0.1;
}

.article-card {
    margin-top: 16px;
}

.article-link {
    display: block;
    padding: 12px 0;
}

.article-link:hover .article-arrow {
    transform: translateX(6px);
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 23.17px;
    letter-spacing: 0.05em;
}

.article-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 17.94px;
    letter-spacing: 0.05em;
    color: #666;
}

.article-excerpt {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.05em;
    opacity: 0.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.article-arrow {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: transform 150ms ease-in-out;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 16px;
}

.link-icon {
    flex-shrink: 0;
}

.link-icon svg {
    opacity: 0.2;
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 20.27px;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

.link-description {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.link-divider {
    height: 1px;
    width: 100%;
    background-color: #000;
    opacity: 0.1;
    margin-bottom: 12px;
}

.sns-section {
    padding-top: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.sns-icon {
    padding: 8px;
    display: block;
}

.sns-icon:hover {
    opacity: 0.5;
}

.footer {
    margin-top: 64px;
    padding-bottom: 28px;
}

.footer-space {
    height: 1em;
    opacity: 0.34;
}

@media (max-width: 768px) {
    .main-container {
        padding: 16px 24px;
    }

    .main-title {
        font-size: 24px;
    }

    .links-title {
        font-size: 22px;
    }

    .subsection-header {
        gap: 16px;
    }

    .article-title {
        font-size: 15px;
    }

    .article-excerpt {
        font-size: 12px;
    }

    .sns-section {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 16px 20px;
    }

    .main-title {
        font-size: 22px;
    }

    .links-title {
        font-size: 20px;
    }

    .article-excerpt {
        font-size: 11px;
    }

    .link-item {
        gap: 12px;
    }
    
    .link-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .link-title {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .link-description {
        font-size: 11px;
        line-height: 1.5;
    }
}
