@charset "utf-8";

#mv_under {
    background-image: url(../img/gallery/mv.jpg);
    background-position: center 45%;
}

.inner {
    clear: both;
}

h4 {
    width: 100%;
    margin: 0 0 1.6em 0;
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 16px;
    text-align: left;
}

h5,
h5 a {
    color: #ae9f7a;
    font-size: 24px;
    text-decoration: none;
}

section {
    padding: 40px 0 0;
}

/* index */
section dl {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    padding: 30px 10px;
    border-top: 1px solid #ccc;
}

section dl dt em {
    color: #333;
    font-weight: bold;
    text-align: center;
}

/* under */
section .img:not(.other) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 48%;
    float: left;
}

.img a:first-of-type img {
    width: 100%;
    height: auto;
    margin: 0 0 22px 0;
}

.img a:nth-child(5) img,
.img a:nth-child(9) img {
    margin: 0 0 20px 0;
}

.text {
    width: 48%;
    float: right;
}

nav#sub_nav {
    width: 100%;
    /* float: right; */
    margin: 40px 0;
}

nav#sub_nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

nav#sub_nav ul li {
    position: relative;
    margin: 0;
    padding: 0 15px;
    line-height: 40px;
    text-align: center;
    border-right: 1px solid #ccc;
}

nav#sub_nav ul li:first-child {}

nav#sub_nav ul li:last-child {
    border-right: none;
}

nav#sub_nav ul li a,
nav#sub_nav ul li a:visited {
    color: #333;
    font-weight: bold;
}

nav#sub_nav ul li a:hover {
    text-decoration: underline;
}

nav#sub_nav ul li.current a,
nav#sub_nav ul li.current a:hover nav#sub_nav ul li.current a:visited {
    color: #ae9f7a;
    font-weight: bold;
    text-decoration: none;
}

nav#sub_nav ul li:before {
    top: 22px;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 1px solid #666;
    border-right: 1px solid #666;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

nav#sub_nav ul li.current:before {
    border-top: 2px solid #ae9f7a;
    border-right: 2px solid #ae9f7a;
}

#before_next {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 50px auto;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    background:
        transparent url(../img/common/dot.png) repeat-x scroll center center;
}

#before_next p.btn {
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px;
    background: #fff;
    line-height: 1;
}

#before_next p.btn a {
    color: #333 !important;
}

#before_next p.btn:hover,
#before_next p.btn a:hover {
    text-decoration: underline !important;
    opacity: 1.0 !important;
    background: #fff;
}

/*----------------------------------------
for PC (min-width:641px)
----------------------------------------*/
@media only screen and (min-width:641px),
print {

    /* index */
    section dt {
        position: relative;
        width: 65%;
        margin-top: -10px;
    }

    section dt p em {
        font-size: 30px;
        text-align: left;
    }
    section dt p.btn {
        position: absolute;
        bottom: 9px;
    }

    section dd a img {
        width: 240px;
        height: 240px;
    }

    /* under */
    section a img:nth-child(6) {
        margin: 0 0 20px 0;
    }

    .img a img,
    .img.other a img {
        width: 96px;
        height: 96px;
        margin: 0 16px 0px 0;
    }
}

/*----------------------------------------
for SP (max-width:640px)
----------------------------------------*/

@media only screen and (max-width:640px),
print {
    h3 {
        line-height: 1.2;
        margin: 10px auto;
    }

    h4 {
        margin: 1em 0;
    }

    h5,
    h5 a {
        color: #ae9f7a;
        font-size: 20px;
    }

    section {
        width: 100%;
        height: auto;
        float: none;
        margin: 20px 0;
        padding: 0;
    }

    /* index */
    section dl {
        display: block;
        position: relative;
        padding: 20px 0 100px;
    }

    section dt {
        width: 100%;
    }

    section dt p em {
        display: block;
        margin: 10px auto;
        line-height: 1.2;
        font-size: 30px;
    }

    section dt p.btn {
        position: absolute;
        bottom: 10px;
        text-align: center;
        margin: 20px 0;
    }

    /* under */
    section .img:not(.other) {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    section .img a img {
        width: 100%;
        height: auto;
        margin: 0;
    }

    section a {
        width: 48%;
        height: auto;
        margin: 0 4% 2% 0;
    }

    section a:nth-child(odd) {
        width: 48%;
        height: auto;
        margin: 0 0 2% 0;
    }

    section a:first-of-type {
        width: 100%;
        height: auto;
    }

    .img a:nth-child(5) img,
    .img a:nth-child(9) img {
        margin: 0 0 0 0;
    }

    section p:not(.btn) {
        margin: 0 0 20px 0;
    }

    nav#sub_nav {
        width: 100%;
        margin: 30px 0 0 0;
        padding: 0;
    }

    .text {
        width: 100%;
        margin: 10px 0 0;
    }

    nav#sub_nav ul {
        padding: 0;
    }

    nav#sub_nav ul {
        display: block;
        border-top: 1px solid #ccc;
    }

    nav#sub_nav ul li {
        position: relative;
        height: 50px;
        margin: 0;
        padding: 0 10px;
        color: #333;
        line-height: 50px;
        border-right: none;
        border-bottom: 1px solid #ccc;
        text-align: left;
    }

    nav#sub_nav ul li:last-child {
        border-bottom: none;
    }

    nav#sub_nav ul li a {
        margin: 0;
        padding: 0;
    }

    nav#sub_nav ul li a,
    nav#sub_nav ul li a:visited {
        color: #333;
        font-weight: bold;
    }

    nav#sub_nav ul li.current a,
    nav#sub_nav ul li.current a:hover nav#sub_nav ul li.current a:visited {
        color: #ae9f7a;
        font-weight: bold;
    }

    nav#sub_nav ul li:before {
        position: absolute;
        content: "";
        top: 20px;
        right: 20px;
        width: 7px;
        height: 7px;
        border-top: 2px solid #ccc;
        border-right: 2px solid #ccc;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    nav#sub_nav ul li.current:before {
        border-top: 2px solid #ae9f7a;
        border-right: 2px solid #ae9f7a;
    }

    #before_next {
        display: none;
    }

}
