/* ーーーーー　リセットCSS ーーーーー */
*, *::before, *::after {
    box-sizing: content-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role='list'], ol[role='list'] {
    list-style: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

/* ーーーーー　トップページ　ーーーーー */
body {
    padding: 70px 0 0 0;
    margin: 0;
  }

.layout_main {
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
    max-width: 1280px;
}

.eye_catch {
    height: calc(100vh - 70px);
    overflow: hidden;
    position: relative;
}

.eye_catch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
}

.eye_catch h1 {
    position: absolute;
    top: 40%;
    color: #ffffff;
    z-index: 1;
    padding: 0 20px;
    font-size: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.top_span {
    color: #ff0000;
}

.bold-text {
    font-weight: bold;
}

.about_img {
    width: 150px;
    max-width: 200px;
    height: auto;
    border: 2px solid #000000;
    padding: 50px 125px;
    margin: auto;
}

.logo_img {
transition: transform .6s ease;
}

.business_img:hover, .policy_img:hover, .logo_img:hover {
    transform: scale(1.2, 1.2);
}

.about, .policy {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    gap: 150px;
}

.business_img, .policy_img {
    width: 400px;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    margin: auto;
    transition: transform .6s ease;
}

.flex-item1 h2, .flex-item2 h2, .flex-item3 h2 {
    margin: 15px 0;
}

.business {
    border-bottom: 2px solid #000000;
    border-top: 2px solid #000000;
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    gap: 150px;
}

.business div {
    order: 1;
}

.business_img {
    order: 2;
}

.top_button {
    background-color: #ff0000;
    margin: 0 auto 50px;
    width: 400px;
    max-width: 400px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.top_button h2 {
    color: #ffffff;
}

/* ヘッダー、フッター */
.site_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
    z-index: 995;
}

.header_info {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    margin: 0 50px;
}

/* サイドメニュー */
.outside_menu {
    display: none;
}

.header_logo {
    display: flex;
    align-items: center;
    height: 70px;
}

.header_info img {
    width: auto;
    height: 50px;
    max-height: 50px;
}

.header_list ul li {
    list-style: none;
}

.header_list ul li a {
    text-decoration: none;
    color: #000000;
}

.inner_list {
    display: flex;
    gap: 25px;
}

.site_footer {
    border-top: 1px solid #000000;
}

.footer_content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    margin-top: 20px;
}

.honsha, .sapporo, .tokyo {
    margin-top: 10px;
}

.site_footer h2 {
    text-align: center;
}

.location {
    margin-bottom: 0;
    text-align: center;
}

.address {
    margin-top: 0;
}

.copyright_text {
    display: block;
    text-align: center;
    margin: 30px auto 10px auto;
    white-space: nowrap;
}

.page_top {
    background-color: #e51500;
    color: #ffffff;
    font-size: 16px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-decoration: none;
    border: 1px solid #ffff;
}

.error_msg {
    color: #e51500;
}

/* ーーーーー　SP画面　ーーーーー */
@media (max-width: 768px) {
    .layout_main {
        margin: 0 20px;
    }

    .eye_catch {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .eye_catch h1 {
        top: 50%;
        font-size: 18px;
    }

    .logo_img {
        width: 110%;
        max-width: 45px;
        border: 2px solid #000000;
        padding: 50px 40%;
        margin: 0 auto;
    }

    .about_img {
        width: 100%;
        max-width: none;
        padding: 0;
        border: none;
    }

    .about, .policy {
        display: block;
        margin: 50px 0;
        text-align: center;
    }

    .business_img, .policy_img {
        width: 100%;
        max-width: 100%;
        height: 180px;
        object-fit: cover;
        margin: auto;
    }

    .business {
        border-bottom: 2px solid #000000;
        border-top: 2px solid #000000;
        padding: 50px 0;
        display: block;
        text-align: center;
    }

    .top_button {
        background-color: #ff0000;
        margin: 0 auto 50px;
        width: auto;
        height: 50px;
        align-items: center;
    }

    .top_button a {
        color: #ffffff;
        text-decoration: none;
    }

    .header_info {
        margin: 0px;
    }

    .header_info img {
        width: auto;
        height: 50px;
        max-height: 50px;
        margin-right: 15px;
        margin: 0 0 0 15px;
    }

    .site_footer h2 {
        text-align: center;
    }

    .location {
        margin-bottom: 0;
        text-align: center;
    }

    .address {
        margin-top: 0;
    }

    .copyright_text {
        display: block;
        margin: auto;
        text-align: center;
        margin: 30px;
    }
    
    /* SP画面時　上部メニュー設定 */
    .top_list {
        display: none;
    }

    .outside_menu {
        display: block;
    }

    .responsive_nav {
        position: fixed;
        background-color: #ffffff;
        top: 0;
        right: -120%;
        width: 150px;
        height: 100%;
        z-index: 998;
        transition: all 0.6s;
    }

    .responsive_nav.panelactive {
        right: 0;
        z-index: 998;
        width: 45%;
        height: 100vh;
    }

    .responsive_nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
        padding: 0;
    }

    .responsive_nav li {
        list-style: none;
        text-align: center;
    }

    .responsive_nav ul li a {
        writing-mode: horizontal-tb;
        text-decoration: none;
        color: #000000;
        font-weight: bold;
        padding: 10px;
        display: inline-block;
    }

    .openbtn {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        width: 50px;
        height: 50px;
        cursor: pointer;
        border-radius: 5px;
        background-color: transparent;
        pointer-events: auto;
        }

    .openbtn.active {
        position:fixed;
        top: 10px;
        transition: scale(1.1);
    }

    .openbtn span:nth-of-type(1) {
        top:15px;
    }

    .openbtn span:nth-of-type(2) {
        top:23px;
    }

    .openbtn span:nth-of-type(3) {
        top:31px;
    }

    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background: #000000;
        width: 45%;
    }

    /* モーダルオーバーレイ */
    .backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}