@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #35495c;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
	position: relative;
	max-width: 56.25rem;
	margin: 1rem auto;
	overflow: hidden;
    border: 1px solid #35495c;
    background-color: #35495c;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

h1 {
    font-size: 2rem;
    text-align: right;
    color: #35495c;
    font-weight: 700;
    line-height: 1.7;
    text-transform: uppercase;
    background-color: #d7fb03;
    padding: 1rem 2rem 0.5rem 1rem;
    border-radius: 0.18rem;
    box-decoration-break: clone;
    margin: 1rem 0 1rem;
clip-path: polygon(100% 5%, 100% 100%, 0% 100%, 1% 38%, 38% 34%, 43% 0%);
}

h1+p {
    color: #d7fb03;
    margin-right: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: right;
}

h2 {
    display:inline;
    color: #35495c;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background-color: #d7fb03;
    padding: 0.05em 0.25em 0.08em;
    border-radius: 0.2rem;
    box-decoration-break: clone;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.45rem;
    color: #d7fb03;
    margin: 0 0 1rem;
    line-height: 1.2;
}

h5 {
    display:inline;
    color: #35495c;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    background-color: #fff;
    padding: 0.2rem 0.25rem 0.2rem;
    border-radius: 0.2rem;
    box-decoration-break: clone;
    margin: 2rem 0 1rem;
    position: relative;
}
h5 span {
    font-size: 1.1rem;
}
h5+p {
    position: relative;
    color: #d7fb03;
    font-size: 1.25rem;
    font-weight: 700;
    top: 1rem;
    left: 2rem;
}


p {
    margin-bottom: 1rem;
}

ul {
    margin: 1rem 0 2rem 1rem;
    color: #fff;
}

ul li {
    margin-bottom: 0.5rem;;
}

header {
    padding: 1rem;
    background-color: #fff;
}

article {
    background: url(../images/bg.png) bottom right no-repeat;
    padding: 2rem 0 1rem 2rem;
}

.flex {
    display:flex;
    gap: 0.5rem;
}

.flex section {
    width: 50%;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1rem;
    margin: 3rem 0;
}
.benefits .item {
    width: 8rem;
    height: 8rem;
    background: #fff;
    padding: 3rem 1rem 0.5rem 1rem;
    border-radius: 1rem;
    position: relative;
}
.benefits p {
    font-size: 0.8rem;
    line-height: 1.1;
}
.benefits img {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 4rem;
}

.button {
    display: flex;
    justify-content: right;
}
a.apply {
    color: #d7fb03;
    font-style: italic;
    margin-right: 2rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.bg span {
    display:block;
    background-color: #d7fb03;
    border-radius: 0.7rem;
    padding: 0.5rem; 
    box-decoration-break: clone;
    margin: 0 0 0.5rem;
    width: fit-content;
}

.bg2 {
    margin-top: 0.75rem;
}

.bg2 span {
    background-color: #d7fb03;
    border-radius: 0.7rem;
    padding: 0.5rem; 
    box-decoration-break: clone;
    width: fit-content;
}

.right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.arc-text {
  width: 300px;
  margin-left: 7rem;
}

.text {    
    font-size: 1.5rem;
    color: #d7fb03;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.bottom {
    position: relative;
}

.star {
    position: absolute;
    width: 3rem;
    top: 3rem;
    left: -1rem;
}

footer {
    padding: 1rem 2rem;
    display: flex;
    align-items: end;
    gap: 0.2rem;
    background-color: #fff;
}
footer section {
    width: 50%;
}

.button {
    display: flex;
    justify-content: right;
}

a.apply2 {
    display:block;
    background-color: #d7fb03;
    border-radius: 0.7rem;
    padding: 0.5rem; 
    box-decoration-break: clone;
    margin: 0 0 0.5rem;
    width: fit-content;
    font-weight: 700;
}

.small {
    font-size: 0.8rem
}

@media only screen and (max-width: 56rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

@media only screen and (max-width: 48rem) {
    .flex {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    .flex section {
        width: 100%;
    }

    .arc-text {
        display: none;
    }

    article {
        padding: 1rem 1rem 2rem;
    }

    h1 {
        clip-path: none;
        text-align: center;
        margin: 1rem 0;
    }

    h1+p {
        text-align: center;
    }

    .button {
        justify-content: center;
        margin: 0;
    }

    footer {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    footer section {
        width: 100%;
        text-align: center;
    }
}

@media only screen and (max-width: 40rem) {
    h1 {
        font-size: 1.5rem;
    }
}
@media only screen and (max-width: 37rem) {
    h1 {
        font-size: 1.3rem;
    }
}

