@charset "utf-8";

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

a {
    text-decoration: none;
    color: #000;
    transition: all ease .3s;
}

a:hover {
    opacity: 0.5;
}

.sp {
    display: none;
}

@media (max-width: 768px) {
    .sp {
        display: block;
    }
}

/* === ヘッダー === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-inline: 120px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    header {
        padding-inline: 30px;
        height: 60px;
    }
}

.logo {
    height: 35px;
    width: auto;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .logo {
        height: 25px;
    }
}

/* === フッター === */
footer {
    text-align: center;
    padding: 10px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
}

@media (max-width: 768px) {
    footer {
        font-size: 10px;
    }
}

/* === 会社概要 === */
main .container {
    max-width: 1250px;
    padding-top: 110px;
    padding-inline: 20px;
    margin: auto;
}

@media (max-width: 768px) {
    main .container {
        padding-top: 70px;
    }
}

h1 {
    font-size: 42px;
    color: #007BFF;
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 30px;
    }
}

table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #f9f9f9;
}

table th {
    background: #ddd;
    font-weight: bold;
    width: 21%;
}

table th, table td {
    border: 1px solid #bbb;
    padding: 10px 15px;
    line-height: 2.2;
}

@media (max-width: 768px) {
    table, table thead, table tbody, table th, table td, table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}

.btn_wrap {
    margin-top: 50px;
}

.btn_wrap a {
    border:1px solid #666;
    padding: 15px 20px;
    display: inline-block;
    position: relative;
}

.btn_wrap a::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 1rem;
    border-right: 1px solid rgba(3, 3, 3, 0.5);
    border-bottom: 1px solid rgba(3, 3, 3, 0.5);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    margin-bottom: 3px;
}

/* === 事業案内・ブランドサイト === */
.graybox {
    background: #F7F7F7;
    margin-top: 70px;
    padding: 70px 30px;
}

.container-second {
    max-width: 1080px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .container-second {
        flex-direction: column;
        row-gap: 20px;
    }
}

.business-box {
    width: 55%;
}

@media (max-width: 768px) {
    .business-box {
        width: 100%;
    }
}

.business-box .title {
    font-size: 24px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .business-box .title {
        font-size: 22px;
        text-align: center;
        margin-top: 0;
    }
}

.business-box .text {
    font-size: 15px;
}

@media (max-width: 768px) {
    .business-box .text {
        font-size: 14px;
    }
}

.brand-box {
    width: 40%;
    text-align: center;
    padding-block: 40px;
    background: #fff;
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .brand-box {
        width: 100%;
        padding: 40px 15px;
        box-sizing: border-box;
    }
}

.brand-box img {
    max-width: 256px;
}

.brand-box p {
    font-size: 15px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .brand-box p {
        font-size: 13px;
    }
}

.brand-box a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    height: 48px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid #F03333;
    border-radius: 2px;
    background-color: #F03333;
    overflow: hidden;
    margin: auto;
    padding-inline: 20px;
}

.brand-box a:hover {
    color: #F03333;
    opacity: inherit;
}

.brand-box a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 2;
    transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1);
    transform: scale(0, 1);
    transform-origin: right top;
}

.brand-box a:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
}

.brand-box a span {
    position: relative;
    width: 100%;
    background: url(../images/icon_blank_wh.svg) no-repeat right top;
    background-size: 15px 15px;
    z-index: 3;
    transition: background .6s cubic-bezier(0.8, 0, 0.2, 1);
}

.brand-box a:hover span {
    background: url(../images/icon_blank_r.svg) no-repeat right top;
    background-size: 15px 15px;
}

/* === 404.phpのスタイル設定 === */
.error-container {
    height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page {
    text-align: center;
    padding: 20px;
}

.back-to-home {
    display: block;
    width: 200px;
    text-align: center;
    padding: 10px 0;
    margin: 50px auto 0;
    border: 1px #CCCCCC solid;
}