@charset "utf-8";

:root {
    font-size: 16px;
    --color-primary: #007f9c;
    --color-primary-dark: #005569;
}

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

body {
    color: #555555; 
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #ededed;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-bottom: 1rem;
}

#wrapper {
    max-width: 50rem;
    margin: 1rem auto;
    border: 0.02rem solid #a7a9a4;
    background: #fff;
    box-shadow: -0.1rem 0.1rem 1rem rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

header,
.section {
    padding: 1.5rem 2rem;
}

header {
    border-bottom: 5px solid var(--color-primary);
    margin-bottom: 1rem;
}

.brand {
    width: 10rem;
}

.top {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.top .left,
.top .right {
    width: 50%;
}

@keyframes slidy { 
    0% { 
        left: 0%;
    }
    30% {
        left: 0%;
    }
    33% { 
        left: -100%;
    }
    64% {
        left: -100%;
    }
    67% { 
        left: -200%;
    }
    97% {
        left: -200%;
    }
    100% {
        left: -300%;
    }
  }
  
  .slider {
    overflow: hidden;
  }
  
  .slider figure {
    position: relative;
    width: 400%;
    margin: 0;
    left: 0;
    text-align: left;
    font-size: 0;
    animation: 18s slidy infinite;
  }
  
  figure img {
    width: 25%;
    float: left;
}   
    
.company-box {
    margin: 1rem 0;
    border: 1px solid var(--color-primary);
    text-align: justify;
    padding: 1rem;
}

.intro {
    padding: 1.25rem 2rem;
    background: var(--color-primary);
    color: #ffffff;
}

.intro p {
    margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
    font-family: Arial, sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

h1 small {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
}

h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

ul {
    margin: 0.5rem 0 1.5rem 0;
    list-style-type: none;
}

ul li {
    background: url(../images/li.png) no-repeat left 0.35em;
    padding: 0 0 0 1.5rem;
}

footer {
    padding: 0;
    color: #ffffff;
    background: transparent;
}

footer a {
    text-decoration: underline;
}

.footer-title {
    margin: 0;
    padding: 0.95rem 2rem;
    font-size: 1.35rem;
    color: #ffffff;
    background: var(--color-primary-dark);
}

.footer-body {
    padding: 1rem 2rem 1.25rem;
    background: var(--color-primary);
}

.footer-copy {
    margin-bottom: 1.15rem;
    text-align: center;
}

.footer-action {
    margin-bottom: 1.5rem;
    text-align: center;
}

.apply {
    display: inline-block;
    min-width: 9.75rem;
    margin: 0 auto;
    padding: 0.55rem 1.25rem;
    border: 0.1rem solid var(--color-primary-dark);
    background: #d9e8ed;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-address {
    margin: 0;
    font-style: normal;
    line-height: 1.2;
}

.footer-address strong {
    display: inline-block;
    margin-bottom: 0.15rem;
}

.apply:hover,
.apply:focus {
    background: transparent;
    color: #ffffff;
}

.footer-note {
    margin: 0;
    padding: 0.85rem 2rem;
    font-size: 0.78rem;
    text-align: center;
    background: var(--color-primary-dark);
}

@media only screen and (max-width: 49.938rem) {
    #wrapper {
        margin: 0 auto;
        border: none;
        box-shadow: none;
    }

    p,
    ul {
        hyphens: auto;
    }

    h1 {
        font-size: 1.7rem;
    }

    .top {
        flex-direction: column-reverse;
        padding: 1rem;
    }
    .top .left,
    .top .right {
        width: 100%;
    }
}

@media only screen and (max-width: 40rem) {
    header,
    .section,
    .intro {
        padding: 1rem;
    }

    .footer-title,
    .footer-body,
    .footer-note {
        padding: 1rem;
    }
}

@media only screen and (max-width: 30rem) {
    h1 {
        font-size: 1.45rem;
    }

    h1 small {
        font-size: 1rem;
    }

    .apply {
        width: 100%;
    }
}
