@charset "utf-8";

/* Begin body, header, footer */
body {
    font-family: "Yu Mincho", YuMincho, serif;
}

header {
    background-image: url(../images/rakugo.png);
    background-repeat: repeat-x;
}

header h1 {
    margin: 20px 0 20px 0;
    text-align: center;
}

#maintitle {
    margin: 0 0 10px 0;
    padding-top: 50px;
    padding-bottom: 5px;
    text-align: center;
}

#maintitle a {
    text-decoration: none;
    text-align: center;
    font-size: larger;
    font-weight: bold;
    display: inline-block;
    color: #000;
}

#subtitle {
    margin: 0 0 20px 0;
    padding-top: 0;
    padding-bottom: 5px;
    text-align: center;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

header nav {
    margin-bottom: 10px;
}

header nav ul {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 6px;
    max-width: 940px;
    list-style-type: none;
}

header nav ul li {
    width: calc(100%/4);
}

header nav ul li a {
    background-color: #511717;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 12px 6px;
    display: block;
}

header nav ul li+ li {
    border-left: 6px solid #fff;
}  

header nav ul li a:hover,
header nav ul li a:active,
header nav ul li.current a {
    background-color: #000;
}

footer {
    background-color: #511717;
    color: #000;
    padding: 30px 0;
    text-align: center;
    background-image: url(../images/rakugo.png);
    background-repeat: repeat-x;
    background-position: bottom;
}

footer ul {
    padding: 0;
    margin-bottom: 30px;
}

footer ul li {
    display: inline;
    margin: 0 10px;
}

footer ul li a {
    color: #fff;
}

footer small {
    color: #fff;
}

footer ul li a:link,
footer ul li a:visited {
    text-decoration: none;
}

footer ul li a:hover
footer ul li a:active {
    text-decoration: underline;
}
/* End body, header, footer */

/* Begin main */
main {
    width: 940px;
    margin: 0 auto;
}

#topic_path {
    padding-left: 0;
}

#topic_path li {
    list-style-type: none;
    display: inline;
    font-size: 80%;
}

#topic_path li::after {
    padding: 0 10px;
    content: "\003E";
}

#topic_path li:last-child::after {
    content: none;
}

main a:link,
main a:visited {
    color: #511717;
}

main h1 {
    border-left: 10px solid #511717;
    border-bottom: 1px solid #511717;
    padding: 5px 10px;
    margin-bottom: 30px;
    font-size: 1.8em;
}

main h2 {
    font-size: 1.5em;
    border-bottom: 1px dotted #511717;
    margin-bottom: 10px;
}

.page_top {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 10px;
}

.page_top a {
    padding-top: 4px;
    border-top: 4px solid #511717;
}

.page_top a::before {
    content: "↑";
}

.page_top a:link,
.page_top a:visited {
    color: #511717;
    text-decoration: none;
}
/* End main */

/* Begin Top page */
#main_visual {
    margin-bottom: 30px;
    background-image: url(../images/rakugo_large.png);
    background-repeat: repeat;
    text-align: center;
}

#main_visual img {
    vertical-align: bottom;
}

#main_content {
    width: 600px;
    float: left;
}

#banner {
    width: 300px;
    float: right;
}

#home h2 {
    text-align: left;
    border-left: 10px solid #511717;
    border-bottom: 1px solid #511717;
    padding: 5px 10px;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.5em;
}

#home main h2::before,
#home main h2::after {
    border-top: none;
}

#news dl {
    margin-left:  20px;
    margin-bottom: 30px;
}

#news dt,
#news dd {
    line-height: 1.5;
}

#news dt {
    width: 8em;
    float: left;
}

#news dd {
    margin-left: 8em;
}

#banner {
    margin: 0 0 30px 0;
    padding: 0;
    list-style-type: none;
}

#banner ul li {
    margin-bottom: 20px;
}
/* End Top page */

/* Begin About, Policy page */
#textbesedbody h2 {
  text-align: left;
  margin-bottom: 10px;
}

#textbesed_body .innerlist {
  padding-left: 20px;
}
/* End About, Policy page */

/* Begin Works page */
table {
	border-collapse: collapse;
}
caption {
	text-align: left;
	margin-bottom: 30px;
}
caption p {
	margin-top: 0;
	margin-bottom: 0;
}
table th, table td {
	padding: 15px;
	border: 1px solid #6c5f45;
}
#works_body table tr th:first-child {
	width: 140px;
}

#works_body table tr td:nth-child(2) {
	width: 240px;
}

table tbody th,
table tbody td {
	vertical-align: center;
}
table thead tr th {
	background-color: #eee8cc;
}
table tbody tr:nth-child(odd) {
	background-color: #ffffff;
}
table tbody tr:nth-child(even) {
	background-color: #f4f2f0;
}

video {
    width: 100%;
}
/*End Works page */

/*Begin about page */
#about_main .youtube {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

#about_main .youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/*End about page */

/* Begin Contact page */
#contact table {
    margin-bottom: 10px;
}

#contact table tr th:first-child {
	width: 70px;
}

#contact form {
    width: 820px;
    margin: 0 auto;
}

#contact dl dt,
#contact dl dd {
    line-height: 2em;
    margin-left: 0;
}

#contact dl dt {
    width: 380px;
    float: left;
    text-align: right;
    padding: 10px;
}

#contact dl dd {
        width: 400px;
        float: right;
        padding: 10px;
}

/* End Contact page */
/* Begin Responsive style */
@media screen and (max-width: 767px){
    img {
      max-width: 100%;
      height: auto;
    }
    header, main, #main_content, #banner {
      width: 100%;
    }
    main {
      padding: 0 15px;
      box-sizing: border-box;
    }
    
    #maintitle a {
        font-size: 5vw;
    }
	
	#main_nav ul li a {
        font-size: 0.7em;
    }
    
    #banner {
      float: none;
      text-align: center;
    }
    footer ul {
      display: none;
    }
  
    /* === ABOUT === */
    main h2:before,
    main h2:after {
      content: none;
    }
    .box {
      width: 100%;
      margin-right: 0;
      float: none;
    }
    .box img {
      margin: 0 auto;
    }
    p.photo {
      margin-top: 30px;
    }
}
/* End Responsive style */