@charset "UTF-8";

/*
Theme Name: Corporate Site
Description: WordPressコーディング練習
Version: 1.0
Author: takuro
Author URI: https://takuromaruyama.com
*/


/* common */
html{
    font-size: 100%;
    scroll-behavior: smooth;
}
body{
    background-color: #F0F0F0;
    color: #000;
    font-size: 0.875rem;
}
a{
    color: #000;
    font-size: 0.875rem;
    text-decoration: none;
}
img{
    max-width: 100%;
    vertical-align: bottom;
}
li{
    list-style: none;
}
.logo{
    width: 200px;
    line-height: 1px;
    margin-right: 60px;
}
.logo a {
    display: block;
}
.page-title {
    font-size: 2.25rem;
    font-weight: normal;
    letter-spacing: 0.3em;
    line-height: 1;
    margin-bottom: 80px;
}
.section-title{
    font-weight: normal;
    line-height: 1;
    margin-bottom: 50px;
}
.section-title::after{
    content: "";
    width: 40px;
    height: 1px;
    background-color: #000;
    display: block;
}
.section-title .en{
    display: block;
    font-size: 2.25rem;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}
.section-title .ja {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 36px;
}

.wrapper{
    width: 100%;
    max-width: 1032px;
    padding: 0 16px;
    margin: 0 auto;
}

/* header */
#header{
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}
#header .inner{
    display: flex;
    align-items: center;
}
#header .inner ul{
    display: flex;
    align-items: center;
}
#header .inner li{
    margin-right: 30px;
}
#header .inner li:last-child{
    margin-right: 0;
}
#header .contact_sp{
    display: none;
}
#header .fa-regular{
    color: #de2d2d;
    font-size: 1.5rem;
}
#header .contact{
    width: 200px;
    height: 80px;
    line-height: 80px;
    background-color: #de2d2d;
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    text-align: center;
}
#header .contact::before{
    content: '\f0e0';
    font-family: "Font Awesome 5 Free";
    font-size: 1.25rem;
    padding-right: 10px;
}
#header .contact:hover {
    background-color: #de2d2da0;
}

/* mainvisual */
#mainvisual{
    margin-bottom: 120px;
}
#mainvisual img{
    width: 100%;
    height: calc(100vh - 80px);
    object-fit: cover;
}

/* news */
#news{
    margin-bottom: 120px;
}
#news .list{
    display: flex;
    justify-content: space-between;
}
#news .list>li{
    width: calc(100%/3);
    border-right: solid 1px #000;
    padding: 10px 20px;
}
#news .list>li:first-child {
    padding-left: 0;
}
#news .list>li:last-child{
    border-right: none;
    padding-right: 0;
}
#news .list>li .date-area{
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
#news .list>li .date-area .post-categories a{
    width: 50px;
    height: 20px;
    line-height: 20px;
    background-color: #000;
    color: #fff;
    display: inline-block;
    font-size: 0.75rem;
    margin-left: 10px;
    text-align: center;
}

/* about */
#about{
    display: flex;
    margin-bottom: 120px;
}
#about .img{
    width: 55%;
}
#about .img img{
    width: 100%;
    height: 400px;
    object-fit: cover;
}
#about .text{
    width: 45%;
    padding: 180px 5% 0 5%;
}
#about .text p {
    line-height: 2.2;
}

/* business */
#business{
    margin-bottom: 120px;
}
#business .flex{
    display: flex;
    justify-content: space-between;
    padding:0 10% ;
}
#business .flex .left{
    width: 46%;
    margin-top: 100px;
}
#business .flex .right {
  width: 46%;
}
#business .flex .item {
    margin-bottom: 50px;
}
#business .flex .item:last-child {
    margin-bottom: 0;
}
#business .flex .title{
    font-weight: bold;
    margin: 0 0 10px 18px;
    position: relative;
}
#business .flex .title::after{
    content: "";
    width: 8px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: -18px;
}

/* company */
#company{
    height: 750px;
    display: flex;
    align-items: center;
    position: relative;
}
#company .text{
    width: 55%;
    background-color: #fff;
    padding: 100px 8% 100px 6%;
    position: absolute;
    top: 0;
    left: 0;
}
#company .img {
    width: 53%;
    position: absolute;
    top: 115px;
    right: 0;
}
#company .img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
#company .info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
#company .info dt {
    width: 20%;
    margin-top: 10px;
}
#company .info dt:first-of-type {
    margin-top: 0;
}

#company .info dd {
    width: 80%;
    margin-top: 10px;
}
#company .info dd:first-of-type {
    margin-top: 0;
}
#company .info .add {
    margin-left: 20%;
}
/*-------------------------------------------
投稿ページ
-------------------------------------------*/
#single {
    margin-top: 80px;
    margin-bottom: 100px;
}
.post-item{
    background-color: #fff;
    border-radius: 10px;
}
.post-item .img{
    text-align: center;
    padding: 2rem 1rem 0;
}
.post-item .img img{
    object-fit: cover;
    height: 400px;
}

.post-header {
    padding: 4rem 3rem 2rem;
}
.post-title {
    font-size: 2.25rem;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 20px;
}
#single .post-categories li{
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.2rem 0.5rem 0.2rem;
    margin-top: 0.25rem;
}
#single .post-categories a{
    font-size: 0.75rem;    
}
#single .post-categories a::before{
    content: '#';
    color: #ccc;
    margin-right: 0.25rem;
}
.post-content{
    padding: 0 3rem 2rem;
}
.post-content p{
    font-size: 1rem;
    line-height: 1.6;
}
.back-btn{
    display: block;
    text-align: center;
    width: 200px;
    height: 32px;
    line-height: 32px;
    margin: 2rem auto;
    border: solid 1px #ccc;
    border-radius: 4px;
    transition: 0.3s;
}
.back-btn:hover{
    background-color: #333;
}
.back-btn:hover p{
    color: #fff;
}

/*-------------------------------------------
固定ページ
-------------------------------------------*/
#page {
    margin-top: 80px;
    margin-bottom: 120px;
}
#page .form {
    margin-top: 60px;
}
#page .form .must {
    display: inline-block;
	background: #FF1A00;
	color: #FFF;
	border-radius: 3px;
	font-size: 0.625rem;
	margin-left: 10px;
	padding: 5px 10px;
	letter-spacing: 2px;
    transform: translateY(-3px);
}

#page .form dt {
    margin-bottom: 5px;
}
#page .form dd {
    margin-bottom: 30px;
}
#page .form input,
#page .form textarea {
  width: 100%;
  background-color: #fff;
  padding: 15px;
}
#page .form textarea {
    height: 180px;
}
#page .button {
    width: 100px;
    margin: 0 auto;
    transition: all 0.3s ease;
}
#page .button p{
    text-align: center;
}
#page input[type="submit"] {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 1rem;
    border: solid 1px #000;
}
#page input[type="submit"]:hover{
    background-color: #ddd;
}

/*-------------------------------------------
Category一覧
-------------------------------------------*/
#category {
    margin-top: 80px;
    margin-bottom: 120px;
}
#category .tab-menu{
    display: flex;
    border-bottom: solid 1px #000;
}
#category .tab-menu .active {
    border-bottom: solid 3px #000;
  }
#category .tab-menu li{
    width: 240px;
    padding: 20px 0;
    text-align: center;
}
#category .tab-menu li a{
    font-size: 1rem;
}

#category .flex{
    display: flex;
    align-items: center;
    border-bottom: solid 1px #ccc;
}
#category .img{
    width: 15%;
    max-width: 150px;
    text-align: center;
    margin-right: 16px;
}
#category .img img{
    object-fit: cover;
    height: 100px;
}

#category .list dt{
    margin: 50px 0 10px 0;
}
#category .list dt span{
    width: 50px;
    height: 20px;
    line-height: 20px;
    background-color: #000;
    color: #fff;
    display: inline-block;
    font-size: 0.75rem;
    margin-left: 10px;
    text-align: center;
}
#category .list dd{
    padding-bottom: 50px;
}

/* footer */
#footer{
    background-color: #fff;
    padding-bottom: 20px;
}
#footer .flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
}
#footer .flex .logo {
    margin-right: 0;
}
#footer .copyright {
    font-size: 0.625rem;
}

/* -------------
SP
--------------- */

@media screen and (max-width: 900px) {
    .logo{
        width: 120px;
        margin: 8px 0;
    }
    .page-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .section-title{
        margin-bottom: 34px;
    }
    .section-title .ja{
        margin-bottom: 24px;
    }

    /* header */
    #header .inner{
        flex-direction: column;
        align-items: flex-start;
    }    
    /* mainvisual */
    #mainvisual {
        margin-bottom: 80px;
    }
    #header .contact{
        width: 100px;
    }
    #header .contact span{
        display: none;
    }
    #header .contact::before{
        font-size: 1.75rem;
        padding-right: 0;
    }

    /* news */
    #news{
        margin-bottom: 80px;
    }
    #news .list {
        flex-direction: column;
    }
    #news .list li {
        width: 100%;
        border-right: none;
        padding: 10px 0;
        margin-bottom: 20px;
    }
    #news .list li:last-child {
        margin-bottom: 0;
    }

    /* about */
    #about{
        flex-direction: column;
        margin-bottom: 80px;
    }
    #about .img{
        width: 100%;
        margin-bottom: 30px;
    }
    #about .img img {
        height: 300px;
    }
    #about .text {
        width: 100%;
        padding: 0 16px;
    }

    /* business */
    #business{
        margin-bottom: 80px;
    }
    #business .flex{
        flex-direction: column;
        padding: 0;
    }
    #business .flex .left{
        width: 100%;
        margin: 0 0 30px 0;
    }
    #business .flex .right{
        width: 100%;
    }
    #business .flex .item{
        text-align: center;
        margin-bottom: 30px;
    }
    #business .flex .title {
        text-align: left;
    }

    /* company */
    #company{
        height: auto;
        flex-direction: column;
        position: static;
    }
    #company .text{
        width: 100%;
        padding: 40px 20px;
        margin-bottom: 20px;
        position: static;
    }
    #company .img{
        width: 100%;
        padding: 0;
        position: static;
    }
    #company .info{
        flex-direction: column;
    }
    #company .info dt{
        width: 100%;
        margin-top: 20px;
    }
    #company .info dd{
        width: 100%;
        margin-top: 5px;
        padding-left: 14px;
    }
    #company .info dd:first-of-type {
        margin-top: 5px;
    }
    #company .info .add {
        margin-left: 0;
    }

    /* single */
    #single{
        margin-top: 40px;
    }
    .post-item .img img {
        height: 320px;
    }
    .post-header{
        padding: 2rem 1rem 2rem;
    }
    .post-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .post-content {
        padding: 0 1rem 2rem;
    }

    /* page */
    #page {
        margin-top: 40px;
    }
    #page .form {
        margin-top: 40px;
    }

    /* category */
    #category {
        margin-top: 40px;
    }
    #category .tab-menu li {
        width: 50%;
    }

    #category .img{
        width: 30%;
        min-width: 100px;
        margin-right: 12px;
    }
    #category .img img{
        object-fit: cover;
        height: 100px;
    }

    #category .list dt {
        margin-top: 40px;
    }
    #category .list dd {
        padding-bottom: 40px;
    }

    /* footer */
    #footer .flex {
        flex-direction: column;
        align-items: flex-start;
    }
    #footer .flex .logo {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 600px) {
    #header .contact{
        display: none;
    }
    #header .contact_sp{
        display: block;
    }
    #header .inner nav{
        width: 100%;
    }
    #header .inner ul{
        justify-content: space-between
    }
    #header .inner li{
        margin-right: 0;
    }
    /* single */
    .post-item .img img {
        height: 240px;
    }
}