@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #404040;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;

}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
	position: relative;
	max-width: 50rem;
	margin: 1rem auto;
	overflow: hidden;
    border: 1px solid #ededed;
    background: #fff;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.color,
a.tel {
    color: #0161cb;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.2;
}

h2 {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    margin-bottom: 0.5rem;

}

h3 {
    font-size: 1.1rem;
        color: #8d8d94;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin: 0 0 1rem 1rem;
}
  
header {
    padding: 1rem;
}

main {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

article {
    width: 70%;
}

article img {
    margin: 0 0 1rem;
    border-radius: 1rem;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    margin: 1rem 0;
}

.info p {
    color: #8d8d94;
    margin: 0;
}

aside {
    width: 30%;
    padding: 9.2rem 0 0;
}

aside img {
    width: 4rem;
    border-radius: 5px;
}

.box {
    border: 1px solid #ededed;
    padding: 1rem;
}

.flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

a.apply {
    background-color: #0072a5;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 5rem;
    border-radius: 5px;
}

@media only screen and (max-width: 49.938rem) {
    #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) {
    main {
        flex-direction: column;
    }

    article, 
    aside {
        width: 100%;
    }

    aside {
        padding: 0;
    }

    .box {
        border: none;
    }
}

@media only screen and (max-width: 40rem) {
    header {
        display: flex;
        justify-content: center;
    }

    h1 {
        font-size: 1.45rem;
        text-align: center;
    }

}

