<style> a {
    /*空の要素を挟まないとうまくいかない*/
}

* {
    word-break: break-all;
}

html,
body {
    min-height: 100%;
    background-color: #fff;
}

.navbar {
    margin: 0;
    min-height: 50px;
    position: relative;
    z-index: 10;
}

.navbar-toggle {
    margin-bottom: 0;
}

.navbar-header {
    height: 50px;
}

button.navbar-toggle {
    margin-top: 8px;
}

a.navbar-brand {
    height: 50px;
    padding: 15px 15px;
}

ul.navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
}

ul.nav li a {
    margin-top: 6px;
    margin-bottom: 6px;
}

header#header {
    background: url("img/header.jpg");
    background-position: center center;
    background-size: cover;
    color: #fff;
}

header .container {
    position: relative;
    z-index: 10;
    padding: 8%;
}

header .motto {
    border: 1px solid #fff;
    color: #fff;
    border-radius: 0;
}

header .motto:hover {
    color: skyblue;
    border-color: skyblue;
}

.main-content {
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
    background-color: #fff;
}
.row {
    position: relative;
    z-index: 10;
    margin-top: 30px;
    margin-bottom: 30px;
}
.main-content h2,
.main-content h3 {
    border-left: 5px solid skyblue;
    padding-left: 10px;
}

#list_photo1 {
    margin-top: 20px;
}
.life {
    margn-top: 10px;
    margin-bottom: 10px;
}
.gyal {
    margin: 0;
    padding: 0;
    height: 22vw;
    background-position: center center;
    -webkit-background-size:cover;
    background-size:cover;
    position: relative;
}
.gl, .gl div {
    margin: 0;
    padding: 0;
}
div.img_cap {
    text-align: center;
    color: #fff;
    background: #333;
    background: rgba(0,0,0,.6);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 4vw;
    padding: 1.5vw;
    line-height: 1;

    /* 1行で納める */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-transition: all 0.2s ease-in 0.2s;
    transition: all 0.2s ease-out 0.2s;
    transform: translateY(4vw);
}
.gyal:hover .img_cap {
     transform: translateY(0);
 }
/* Sticky footer styles
-------------------------------------------------- */

html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 60px;
    background-color: #f5f5f5;
}

ul.nostyle {
    list-style-type: none;
}

ul.listed {
    padding: 10px;
}
ul.listed li {
    margin: 10px;
}


/* Custom page CSS
-------------------------------------------------- */


/* Not required for template or sticky footer method. */

footer .container {
    width: auto;
    max-width: 680px;
    padding: 0 15px;
}

.container .text-muted {
    margin: 20px 0;
}

picture img {
    max-width: 80%;
    display: block;
    margin: 30px auto;
}

@media screen and (max-width: 480px) {
    h1,
    h2 {
        font-size: 2rem;
    }
    h3,
    h4 {
        font-size: 1.6rem;
    }
    * {
        font-size: 1.3rem;
    }
    .row {
        margin: 30px 0px 30px 0px;
    }
    header .container {
        padding-top: 8%;
        padding-bottom: 8%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .main-content {
        padding: 0px 10px;
    }
    .col-xs-12 {
        padding: 0px 10px;
    }
    picture img {
        max-width: 70%;
        margin: 30px auto;
    }
    ul.nostyle {
        padding-left: 0px;
    }
    ul.listed {
        padding: 0 0 0 15px;
    }
    ul.listed li {
        margin: 10px 0;
    }
    .alt-table-responsive {
        width: 100%;
        overflow-y: hidden;
        overflow-x: auto;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 991px) {
    .gyal {
        height: 60vw;
        margin-bottom: 10px;
    }
    div.img_cap {
        height: 10vw;
        padding: 3vw;
        transform: translateY(10vw);
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .container {
        width: 80%;
    }
}

@media screen and (min-width: 991px) and (max-width: 1199px) {
    .gyal {
        height: 33vw;
    }
    div.img_cap {
        height: 7vw;
        padding: 3vw;
        transform: translateY(7vw);
    }
}

@media screen and (min-width: 1200px) {
    .container {
        width: 60%;
    }
}


</style>