@charset "uft-8";

/* --------------------------- 
        共通 
------------------------------ */

/* reset cssを読み込んでないので基本をここで書く */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    /* 16px ->10px // remで管理するため16pxを変換する*/
    -webkit-text-size-adjust: 100%;
    /*スマホを横にしたとき調整する*/
}

body {
    font-family: 'Noto Sans JP', 'Robot', sans-serif;
    font-size: 2rem;
    /* 10px -> 16px // htmlで小さくしてるので1.6x10px=16px*/
    background-color: rgb(247, 250, 253);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border: 0;
}

ul {
    list-style-type: none;
}

a {
    color: #000;
    text-decoration: none;
}

.flex {
    /*写真が並ぶ*/
    display: flex;
}


/* ------------------------ 
表示エリアの最大サイズを指定
--------------------------- */

#wrapper {
    max-width: 960px;
    margin: 0 auto;
}


/* ------------------------ 
ヘッダーエリア
--------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgb(254, 255, 255);
    padding: 2% 2%;
    display: flex;
    align-items: center;
}

header nav {
    margin-left: auto;
}

header ul {
    display: flex;
    font-size: 1.6rem;
}

header ul li {
    margin-left: 1.6rem;
}

header p {
    font-size: 1.6rem;
    align-self: baseline;
}

header img {
    height: 100%;
}

header a:hover {
    color: #ff0300;
    text-decoration: underline #ff0300;
    text-underline-offset: 30%;
}

header a {
    color: #012160;
}


/*--------------------------
メインビジュアル 
----------------------------*/

.mainV {
    margin-bottom: 8rem;
}



/* ------------------------ 
各セクション
--------------------------- */
#home h2,
#about h2,
#contact h2 {
    font-size: 2.4rem;
    padding: .2em 0 .2em .5em;
    border-left: 8px solid #fec002;
    border-bottom: 1px solid #012160;
    margin-bottom: 1.6rem;
}

/* ------------------------ 
メインビジュアル及び各セクション間の下スペース
--------------------------- */

#home,
#about,
#pictures,
#contact {
    margin-bottom: 8rem;
}

/* ------------------------
会社概要 
------------------------*/

#home p {
    padding: 2rem;
}

.msg {
    font-size: 2.2rem;
}


/*------------------------
 ３つ並びの写真 
------------------------*/

#pictures figure {
    margin: 5px;
}


/* ------------------------
配送エリアと問い合わせ 
------------------------*/

.table {
    border-collapse: collapse;
    width: 100%;
    max-width: 950px;
}

.table th,
.table td {
    padding: 1em;
    border-bottom: 1px solid #c1c7c6;
}

.table th {
    font-weight: bold;
    text-align: left;
    width: 20%;
    min-width: 4em;
    position: relative;

}

.table th::after {
    content: '';
    background-color: #c1c7c6;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
}

/* ------------------------
大阪市内写真とGooglemap 
------------------------*/
.pic,
.map {
    text-align: center;
    margin: 4rem 2.4rem 2.4rem 2.4rem;
}


/* ------------------------ 
フッターエリア
--------------------------- */

footer {
    text-align: center;
    color: #fff;
    background-color: #012160;
    font-size: 1.6rem;
    padding: 4rem;
    line-height: 3rem;
}

.add {
    font-size: 1.8rem;
    padding: 2rem;
    text-decoration: underline;
    text-underline-offset: 5px;

}

.copy {
    margin-top: 5rem;
}



/* ------------------------ 
タブレット以下のとき
--------------------------- */

@media screen and (max-width: 768px) {

    body {
        font-size: 1.4rem;
    }

    main {
        margin-left: .5rem;
        margin-right: .5rem;
    }

    /* ------------------------ 
    セクションの見出し
    --------------------------- */

    header ul {
        font-size: 1.2rem;
    }

    header {
        flex-direction: column;
    }

    header nav {
        margin: 0 auto;
    }

    header a {
        font-size: 1.6rem;
    }

    header a:hover {
        text-decoration-color: none;
    }


    /* ------------------------ 
    セクションの見出し
    --------------------------- */
    #about h2,
    #works h2,
    #contact h2 {
        font-size: 2rem;
    }

    /* ------------------------ 
    オフィス写真を縦に並べる
    --------------------------- */
    #pictures .flex {
        flex-direction: column;
    }

    #pictures figure {
        margin: 0 auto;
        padding: 1rem;
    }


    /* ------------------------ 
    エリアとお問合せテーブル
    --------------------------- */
    .table th {
        width: 25%;
        min-width: 4em;
        position: relative;
        font-size: 1.2rem;
    }

    .map {
        position: relative;
        padding-top: 56.25%;
    }

    .map iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* ------------------------ 
    フッター
    --------------------------- */

    footer {
        font-size: 1.2rem;
    }

    .add {
        font-size: 1.4rem;
    }
}