* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
}

:root {
    --primary-color: #336633;
    --primary-dark: #20411A;
    --accent-color: #EC6516;
    --accent-dark: #CC0001;
    --special-color: #07529c;
    --special-dark: #003871;
    --special-light: #f1f8ff;
}

html {
    font-size: 16px;
    @media(max-width: 560px) {
        font-size: 14px;
    }
}
body {
    background-color: #F6F5E7;
    padding: 1rem;
}
body p {
    line-height: 2;
}
main {
    width: clamp(340px, 90vw, 960px);
    background-color: white;
    margin: 0 auto;
    padding: 3rem clamp(1rem, 2%, 2rem) 5rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 5rem;
}
.page-titles {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 2rem;
}
.page-logo {
    width: 80%;
    max-width: 240px;
}
.page-title {
    text-align: center;
    font-weight: normal;
}
.cta {
    margin: 0 auto;
    .cta__text {
        text-align: center;
    }
}
.link-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}
.link-btn {
    color: var(--special-color);
    border: 1px solid var(--special-color);
    padding: 1rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all ease 0.2s;
    line-height: 1.5;
}
.link-btn::after {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-left: 1px solid var(--special-color);
    border-bottom: 1px solid var(--special-color);
    transform: rotate(-45deg) translate(-25%);
}
.link-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.link-btn:hover::after {
    border-left: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}
.primary-link {
    border: 1px solid var(--special-color);
    color: var(--special-color);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    width: fit-content;
    transition: background-color ease 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    @media(max-width: 560px) {
        padding: 0.5rem 2rem;
    }
}
.primary-link:hover {
    background-color: var(--special-light);
}
.primary-link--accent {
    border-color: var(--accent-color);
    color: var(--accent-color);
    border-radius: 100px;
    transition: all ease 0.2s;
}
.primary-link--accent:hover {
    background-color: transparent;
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}
.rural-link {
    color: var(--primary-color);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    padding-bottom: 4px;
    transition: background-size 0.2s ease;
}
.rural-link:hover {
    background-size: 100% 1px;
}
.supplement {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 0.875rem;
    color: #666666;
}
.for-mobile {
    display: none;
    @media(max-width: 560px) {
        display: block;   
    }
}
.for-mobile--large {
    display: none;
    @media(max-width: 720px) {
        display: block;   
    }
}
.icon {
    width: 1rem;
    height: auto;
}
.sorry {
    text-align: center;
    color: var(--accent-dark);
    opacity: 0.75;
}

/* ここからセクション装飾 */

.section-title {
    text-align: center;
}
.articles {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: stretch;
    gap: 3rem;
}
.article {
    border: 8px solid var(--special-light);
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    border-radius: 0.5rem;
    .article__left, .article__right {
        padding: 1rem;
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 1.5rem;
        @media(max-width: 560px) {
            width: 100%;
        }
    }
    .article__bottom {
        width: 100%;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    .article__titles {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        .article__counter {
            width: fit-content;
            background-color: var(--special-color);
            border-radius: 100px;
            padding: 0.25rem 0.75rem;
            color: white;
            font-weight: bold;
        }
        .article__title {
            font-size: 2rem;
        }
    }
    
    .article__datetime {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    .article__description {
        @media(max-width: 560px) {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 4;
            line-clamp: 4;
            overflow: hidden;
        }
    }
    .article__description.is-open {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
    }
    .article__more {
        display: none;
        transition: all ease 0.2s;
        @media(max-width: 560px) {
            display: flex;
            align-self: center;
            align-items: center;
            background: none;
            cursor: pointer;
            color: var(--special-color);
            border: none;
            padding: 0.5rem 1rem;
            gap: 1rem;
        }
    }
    .article__more::after {
        content: "";
        display: inline-block;
        width: 0.75rem;
        height: 0.75rem;
        border-left: 1px solid var(--special-color);
        border-bottom: 1px solid var(--special-color);
        transform: rotate(-45deg) translate(25%);
    }
    .article__more.is-open::after {
        transform: rotate(135deg) translate(25%);
    }
}
.image-column {
    width: 100%;
    display: flex;
    gap: 1rem;
    .image-column__left {
        width: 70%;
    }
    .image-column__right {
        flex: 1;
    }
    .image-column__title {
        font-size: 1.5rem;
        font-weight: bold;
        span {
            font-weight: normal;
            font-size: 1rem;
        }
    }
    .image-column__image {
        width: clamp(80px, 10vw, 100px);
        height: auto;
        border-radius: 100%;
    }
}
.procedures {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    .procedure {
        overflow: hidden;
        background-color: var(--special-light);
        border-radius: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        position: relative;
        .procedure__left {
            width: 50%;
            padding: 1rem;
            @media(max-width: 560px) {
                width: 100%;
            }
        }
        .procedure__right {
            flex: 1;
            align-self: center;
            padding: 1rem;
        }
        .procedure__counter {
            position: absolute;
            top: 0;
            left: 0;
            background-color: var(--special-color);
            color: white;
            font-weight: bold;
            padding: 0 0.75rem 0.25rem;
            font-size: 1.5rem;
            border-bottom-right-radius: 1rem;
        }
        .procedure__image {
            width: 100%;
            max-width: 480px;
        }
    }
}
.coupon {
    width: 100%;
    margin: 0 auto;
    max-width: 420px;
    border: 2px solid var(--accent-color);
    outline: 2px dashed var(--accent-color);
    outline-offset: -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    .section-title {
        color: var(--accent-dark);
    }
    .coupon__appeal {
        font-size: 2rem;
        font-weight: bold;
        span {
            font-size: 1.5rem;
            font-weight: medium;
        }
        .coupon__code {
            font-size: inherit;
            font-weight: inherit;
        }
    }
    .coupon__copy {
        font: inherit;
        color: white;
        background-color: var(--accent-color);
        border: none;
        border-radius: 100px;
        padding: 0.5rem 1.5rem;
        cursor: pointer;
        transition: background-color ease 0.2s;
    }
    .coupon__copy:hover {
        background-color: var(--accent-dark);
    }
    .coupon__copy.is-copied {
        background-color: var(--special-color);
    }
}
.coupon::before,
.coupon::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 16px;
    background-color: var(--accent-dark);
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.coupon::before {
    top: 26px;
    left: -36px;
}
.coupon::after {
    bottom: 26px;
    right: -36px;
}
.links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
    .primary-link--accent {
        font-size: 1.25rem;
    }
}
.finish {
    text-align: center;
    .supplement {
        color: black;
    }
}
