/*

Theme Name: Portfolio

*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap');

body {
    position: relative; /* 相対位置への配置 */
    background-color: #edede5;
    color: #002f2f;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.75;
}

h2:not(.entry-title) {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

h2:not(.entry-title)::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    background: #046380;
    margin: 45px auto;
}

h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

a {
    color: #046380;
}

section {
    padding: 100px 0;
}

.en {
    font-family: Arial, sans-serif;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 60px;
    margin: 0 auto;
    background: #efecca;
    color: #046380;
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
}

.sp {
    display: none;  /* none⇒表示しない */
}

.screen-reader-text { 
    display: none;  /* 投稿ナビゲーション none⇒表示しない */
}

/*
 * =============================================================================
 * header
 * =============================================================================
 */
body > header {
    width: 100%;
    height: calc(144px / 2);
    position: fixed;
    background: #f8f9fa;
    z-index: 10;
}

body > header .navbar .navbar-brand {
    display: block;
    width: calc(300px / 2);
    height: auto;
}

body > header .navbar .navbar-collapse {
    background: #f8f9fa;
    margin-right: -15px;
    margin-left: -15px;
    justify-content: flex-end;
}

body > header .navbar .navbar-collapse .navbar-nav .nav-item .nav-link {
    padding-right: 15px;
    padding-left: 15px;
    font-weight: bold;
    font-size: 15px;
    color: #046380;
}

body > header .navbar .navbar-collapse .navbar-nav .nav-item .nav-link.active {
    background-color: #046380;
    color: #fff;
}

/*
 * =============================================================================
 * mainvisual
 * =============================================================================
 */
#mainvisual {
    position: relative; /* 相対位置への配置 */
    background: url(/wp-content/themes/portfolio/assets/img/mainvisual.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
 }

#mainvisual .text {
    margin-top: -18%;
}
 
#mainvisual .text h1 {
    margin-bottom: 25px;
    font-weight: 900;
    font-size: 48px;
    line-height: 1;
}

#mainvisual .text p {
    line-height: 1;
}

/*
 * =============================================================================
 * about
 * =============================================================================
 */
#section-about {
    background: #046380;
    color: #efecca;
}

#section-about h2:not(.entry-title) {}

#section-about h2:not(.entry-title)::after {
    background: #efecca;
}

#section-about p {
    width: 730px;
    margin: 0 auto 70px auto;
}

#section-about a {
    text-align: center;
}


/*
 * =============================================================================
 * services
 * =============================================================================
 */
#section-services .container {}


#section-services p {
    text-align: center;
}

#section-services .row {
    margin-bottom: 50px;
}

#section-services .row .service-box .inner{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 226px;
    background: #fff;
    border-radius: 5px;
}

#section-services .row .service-box:first-child img {
    width: 120px;
}

#section-services .row .service-box:nth-child(2) img {
    width: 120px;
}

#section-services .row .service-box:nth-child(3) img {
    width: 140px;
}

#section-services .row .service-box:last-child img {
    width: 170px;
}
 /*
  * =============================================================================
  * portfolio
  * =============================================================================
  */
#section-portfolio {
    padding: 0;
}
 
#section-portfolio section .container-fluid .column {
    padding-right: 0;
    padding-left: 0;
}

#section-portfolio section .container-fluid .column .portfolio-box {
    display: block;
    position: relative;
}

#section-portfolio section .container-fluid .column .portfolio-box:hover .portfolio-box-caption {
    opacity: .9;
}

#section-portfolio section .container-fluid .column .portfolio-box-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #046380;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
}

#section-portfolio section .container-fluid .column .portfolio-box-caption .category {
    margin-bottom: 5px;
    color: #a7a37e;
    font-size: 14px;
}
#section-portfolio section .container-fluid .column .portfolio-box-caption .name {
    color: #e6e2af;
    font-size: 18px;
}

/* result */

#section-portfolio #section-portfolio-result {
    padding: 0;
}

/* pdf */

#section-portfolio #section-portfolio-pdf {
    background: #002f2f;
    color: #efecca;
    text-align: center;
}

#section-portfolio #section-portfolio-pdf h3 {
    margin-bottom: 90px;
}

/*
 * =============================================================================
 * news
 * =============================================================================
 */
#section-news {
    background: #046380;
    color: #efecca;
}

#section-news h2::after {
    background: #efecca;
}

#section-news .table {
    width: 730px;
    margin: 0 auto 70px auto;
}

#section-news .table tr td {
    color: #efecca;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#section-news .table tr td:first-child {
    width: 100px;
}

#section-news .table tr td:last-child {
    max-width: 630px;
}

#section-news .table tr td a {
    color: #efecca;
    font-weight: 700;
    text-decoration: underline;
}

#section-news .table tr td a:hover {
    color: #fff;
    text-decoration: none;
}

 /*
  * =============================================================================
  * contact
  * =============================================================================
  */
#section-contact {
     text-align: center;
}
 
#section-contact a {
    height: 100%;
    display: flex;
    flex-direction: column; /* 積み重なるように配置する */
    justify-content: center;
    align-items: center;
    line-height: 1;
}

#section-contact a span {
    font-size: 32px;
}
#section-contact .email a {
    padding-top: 10px;
}
#section-contact .email a span {
    padding-top: 7px;
}

#section-contact img {
    margin-bottom: 20px;
}

#section-contact .tel img {
    width: 120px;
    height: auto;
}

#section-contact .email img {
    width: 100px;
    height: auto;
}

 /*
  * =============================================================================
  * body > footer: ;
  * =============================================================================
  */
body > footer {
     background: #fff;
     display: flex;
     justify-content: center;
     align-items: center;
     height: 100px;
}
 
body > footer #pagetop {
    display: none;
    position: fixed;
    right: 2rem;
    bottom: 1rem;
    padding: 1rem;
    font-size: 1.5rem;
    background: #edede5;
    opacity: .8;
    line-height: 1;
}

/*
 * =============================================================================
 * SINGLE
 * =============================================================================
 */

header.entry-header .meta {
    margin-bottom: 2rem;
    text-align: right;
}

.entry-content {
    margin-bottom: 2rem;
}

footer.entry-footer nav.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    /* 上下中央 */
    align-items: center; 
}

/*
 * =============================================================================
 * CATEGORY ARCHIVE
 * =============================================================================
 */

header.page-header h1.page-title {
    margin-bottom: 2rem;
}

footer.page-footer nav.pagination .nav-links {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer.page-footer nav.pagination .nav-links > * {
    margin: 0 .25rem;
    padding: .5rem;
    background: #fff;
    line-height: 1;
}
footer.page-footer nav.pagination .nav-links > .current {
    background: #002f2f;
    color: #fff;
}
footer.page-footer nav.pagination .nav-links > a:hover {
    background: #046380;
    color: #fff;
}

/*
 * =============================================================================
 * Large devices: lg
 * =============================================================================
 */
@media (min-width: 992px) and (max-width: 1199.98px) {}

/*
 * =============================================================================
 * Medium devices: md
 * =============================================================================
 */
@media (min-width: 768px) and (max-width: 991.98px) {
    h2:not(.entry-title) {
        line-height: 1.5;
    }
    
    .sp {
        display: block;
        /* block⇒要素が横までいっぱいに広がり、縦に並んでいく */
    }
    /*
    * =============================================================================
    * mainvisual
    * =============================================================================
    */
   
    #mainvisual .text h1 {
        line-height: 1.25;
    }
    
    #mainvisual .text p {
        line-height: 1.5;
    }

    /*
     * =============================================================================
     * about
     * =============================================================================
     */
     #section-about p {
        width: auto;
    }

    /*
     * =============================================================================
     * news
     * =============================================================================
     */
     #section-news .table {
        width: auto;
    }

    #section-news .table tr td {
        overflow: visible;
        white-space: normal;
        text-overflow: clip;
    }

    #section-news .table tr td:first-child {
        width: auto;
    }

    #section-news .table tr td:last-child {
        max-width: auto;
    }


     /*
     * =============================================================================
     * services
     * =============================================================================
     */
    #section-services .row .service-box {
        margin-bottom: 30px;
    }

}

/*
 * =============================================================================
 * Small devices: sm
 * =============================================================================
 */
@media (max-width: 767.98px) {
    h2:not(.entry-title) {
        font-size: 28px;
        line-height: 1.5;
    }

    h3 {
        font-size: 24px;
        line-height: 1.5;
    }

    .sp {
        display: block;
        /* block⇒要素が横までいっぱいに広がり、縦に並んでいく */
    }
    
    /*
    * =============================================================================
    * mainvisual
    * =============================================================================
    */
   
    #mainvisual .text h1 {
        font-size: calc(72px/2);
        line-height: calc(84px/2);
    }
    
    #mainvisual .text p {
        line-height: 1.5;
    }
    
    #mainvisual .mainvisual-arrow {
        /* block⇒要素が横までいっぱいに広がり、縦に並んでいく */
        display: block;
        /* absolute⇒絶対位置への配置 */
        position: absolute;
        /* 左右を中央に寄せる(絶対配置された要素を水平に配置する) */
        left: 50%;
        transform: translateX(-50%);
        /* 下からの配置位置(距離) */
        bottom: calc(36px/2);
        /*  */
        width: calc(40px/2);
        height: auto;
    }

    /*
     * =============================================================================
     * about
     * =============================================================================
     */
    #section-about p {
        width: auto;
    }

    /*
     * =============================================================================
     * services
     * =============================================================================
     */
    #section-services .row .service-box {
        margin-bottom: 30px;
    }

    #section-services .row .service-box .inner {
        height: 160px;
    }

    #section-services .row .service-box:first-child img {
        width: calc(120px/2);
    }

    #section-services .row .service-box:nth-child(2) img {
        width: calc(120px/2);
    }

    #section-services .row .service-box:nth-child(3) img {
        width: calc(140px/2);
    }

    #section-services .row .service-box:last-child img {
        width: calc(170px/2);
    }
    
    /*
     * =============================================================================
     * news
     * =============================================================================
     */
    #section-news .table {
        width: auto;
    }

    #section-news .table tr td {
        overflow: visible;
        white-space: normal;
        text-overflow: clip;
    }

    #section-news .table tr td:first-child {
        width: auto;
    }

    #section-news .table tr td:last-child {
        max-width: auto;
    }

    /*
     * =============================================================================
     * contact
     * =============================================================================
     */
    #section-contact a span {
        font-size: 18px;
        font-weight: bold;
        font-weight: 700;
    }

    #section-contact .email a {
        padding-top: 8px;
    }

    #section-contact .email a span {
        padding-top: 4px;
    }

    #section-contact .tel img {
        width: calc(120px * 2/3);
    }

    #section-contact .email img {
        width: calc(100px * 2/3);
    }

    /*
     * =============================================================================
     * body > footer
     * =============================================================================
     */
    body > footer {
        height: 120px;
    }

    body > footer #pagetop {
        right: 2rem;
        bottom: 2.5rem;
        padding: .5rem;
        font-size: 1rem;
        opacity: .5;
    }

}

/*
 * =============================================================================
 * SP スマートフォン
 * =============================================================================
 */
@media (max-width: 575.98px) {
    /*
     * =============================================================================
     * header
     * =============================================================================
     */
    header {
        width: 100%;
        height: 67px;
        position: fixed;
        background: #f8f9fa;
        z-index: 10;
    }
    /*
     * =============================================================================
     * body > footer
     * =============================================================================
     */
     body > footer {
        height: 80px;
        font-size: 16px;
    }

    body > footer #pagetop {
        right: .8rem;
        bottom: 1.2rem;
        padding: .5rem;
    }
}
