/* 調整用スタイル */

@import url('https://fonts.googleapis.com/earlyaccess/hannari.css');

a {
    text-decoration: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
li {
    list-style: none;
}

/* ヘッダー */

.header {
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header__inner {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: inherit;
    position: relative;
}

/* メディアクエリ */
@media screen and (max-width: 480px) {

    .header{
        height: 60px;
    }

}

/* ヘッダーのロゴ部分 */

.header__logo {
    width: 100px;
    margin-right: 10px;
}


.header__title {
    width: 100%;
    font-size: 30px;
    font-family: sans-serif;
}

/* メディアクエリ */
@media screen and (max-width: 480px) {

    .header__logo {
        width: 50px;
        margin-right: 5px;
    }

    .header__title {
        font-size: 15px;
    }

}

/* ヘッダーのナビ部分 */

.header__nav {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    transform: translateX(100%);
    background-color: rgba(0, 0, 0, 0.5);
    transition: transform ease .4s;
}

.nav-items {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
}

/* ナビのリンク */

.nav-items__item a {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 25px;
    margin-bottom: 24px;
    color: rgb(255, 255, 255);
}

.nav-items__item:last-child a {
    margin-bottom: 0;
}

/* メディアクエリ */
@media screen and (max-width: 480px){

    .header__nav {
        width: 200px;
    }

    .nav-items__item a {
        font-size: 18px;
    }

}

/* ハンバーガーメニュー */

.header__hamburger {
    width: 48px;
    height: 100%;

}

.hamburger {
    background-color: transparent;
    border-color: transparent;
    z-index: 9999;
}

/* ハンバーガーメニューの線 */
.hamburger span {
    width: 100%;
    height: 1px;
    background-color: #000;
    position: relative;
    transition: ease .4s;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    margin: 8px 0;
}

.hamburger span:nth-child(3) {
    top: 0;
}


/* ハンバーガーメニュークリック後のスタイル */

.header__nav.active {
    transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: -13px;
    transform: rotate(-45deg);
}

/* フッダー */

.hp-footer{
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 100px; 
    text-align: center;
    padding: 10px;
}

.footer-address-top {
    color: #f1f1f1;
    font-size: 13px;
}

.footer-address-bottom{
    color: #f1f1f1;
    font-size: 10px;
}


/* 各コンテンツ */

/* トップ */

.main_top{
    background-image: url(../image/back.jpg);
    background-size: cover;
    height: 800px;
    display: flex;
}

.main_top .div_top{
    margin: auto;
    display: none;
    font-size: 40px;
    font-family: "Hannari";
    text-shadow: rgb(255, 255, 255) 1px 0 10px;
}

/* メディアクエリ */
@media screen and (max-width: 480px) {

    .main_top{
        height: 250px;
    }

    .main_top .div_top{
        font-size: 20px;
        padding: 15px;
        text-align: center;
        background-color: rgba(255, 255, 255,0.3);
        text-shadow: None;
    }

}

/* お知らせ */

.main_news{
    background-color: #f1f1f1;
    height: 250px;
    display: flex;
}

.main_news .div_news{
    margin: auto;
    font-size: 20px;
}

.main_news .div_news_contents{
    margin: auto;
    font-size: 15px;
}

/* メディアクエリ */
@media screen and (max-width: 480px) {

    .main_news{
        height: 150px;
        display:flex;
        flex-direction: column;
    }

    .main_news .div_news{
        font-size: 15px;
    }

    .main_news .div_news_contents{
        font-size: 11px;
        padding: 15px;
    }

}

/* 挨拶 */

.main_greeting{
    background-color: #ffffff;
    padding-left: 100px;
    padding-right: 100px;
}

.div_greeting h3 {
    font-size: 20px;
    border-bottom: 2px solid #333;
}

.div_greeting h4 {
    text-align: right;
    margin: auto;
    font-size: 15px;
}

.div_greeting {
    margin: auto;
    font-size: 15px;
    white-space: normal;
    line-height: 50px;
}

/* メディアクエリ */
@media screen and (max-width: 480px) {

    .main_greeting{
        padding-left: 40px;
        padding-right: 40px;
    }

    .div_greeting h4 {
        font-size: 13px;
        padding-bottom: 20px;
        padding-top: 20px;
    }

    .div_greeting_text {
        font-size: 13px;
        line-height: 25px;
        margin-top: 10px;
    }

}

/* 事業案内 */

.main_bussiness {
    background-color: #ffffff;
    padding-left: 100px;
    padding-right: 100px;
}

.main_bussiness h3 {
    font-size: 20px;
    border-bottom: 2px solid #333;
}

.div_bussiness {
    margin: auto;
    font-size: 15px;
    white-space: pre-wrap;
}

.bussiness-table {
    width: 100%;
    border-collapse: collapse;
}

.div_bussiness td {
    padding: 10px;
    border: 1px solid #ccc;
}

.div_bussiness tr:nth-child(even){
    background-color: #f9f9f9;
}

/* メディアクエリ */
@media screen and (max-width: 480px) {

    .main_bussiness{
        padding-left: 40px;
        padding-right: 40px;
    }

    .div_bussiness {
        font-size: 13px;
    }

}

/* 会社概要 */

.main_overview {
    background-color: #ffffff;
    padding-left: 100px;
    padding-right: 100px;
}

.div_overview {
    margin: auto;
    font-size: 15px;
    white-space: pre-wrap;
}

.div_overview h3 {
    font-size: 20px;
    border-bottom: 2px solid #333;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.overview-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* メディアクエリ */
@media screen and (max-width: 480px) {

    .main_overview{
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .div_overview {
        font-size: 13px;
    }

}