/* HINOYA - SUN HOUSE - TOP, Company, Privacy Policy & Contact pages */

html, body {
background-image: none;
height: 100%;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover,
a:active {
  color: #000000;
  text-decoration: underline;
}

body.root_page {
  width: 100%;
  height: auto;
  margin: 0 auto;
  background-color: #ffffff;
  background-image: url(/img/back.gif);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  color: #000000;
  letter-spacing: 0.1em;
}

.root_header {
  background: #000000;
  height: 66px;
  position: relative;
  color: #ffffff;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 0 20px 5px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.root_header:after {
    position: absolute;
    content: "";
    display: block;
    border-bottom: 1px solid #000;
    width: 100%;
    left: 0;
    right: 0;
    bottom: -2px;
}
.root_header .header_title .brand_names {
    font-size: 10px;
    font-weight: bold;
}
.root_header .header_title .page_title {
    font-size: 13px;
    line-height: 24px;
}
.root_header .header_title .page_title span a {
    font-size: 21px;
    color: #ffffff;
    font-weight: bold;
}
.root_header .header_title .page_title span a:hover,
.root_header .header_title .page_title span a:active {
    color: #ffffff;
    text-decoration: none;
}
.root_header .page_title span:nth-child(2) {
    display: inline-block;
    margin-left: 30px;
    position: relative;
}
.root_header .page_title span:nth-child(2):before {
    position: absolute;
    content: "";
    display: block;
    width: 1px;
    height: 18px;
    border-left: 1px solid #ffffff;
    top: 0;
    left: -17px;
}
.root_header ul.header_menu {
  padding: 0 0 3px;
  margin: 0;
  font-size: 10px;
  font-weight: bold;
  list-style: none;
  display: flex;
}

.root_header ul.header_menu li a {
  color: #999999;
  text-decoration: none;
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid #999999;
}
.root_header ul.header_menu li:last-child a {
  border-right: 1px solid #999999;
  padding-right: 6px;
} 

.root_header ul.header_menu li a.active_menu,
.root_header ul.header_menu li a:hover {
  color: #a3131c;
}

.root_content {
  display: flex;
  align-items: center;
  height: calc(100% - 30px);
}

.root_page .root_content {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin:0 auto;
  padding:17px 20px 30px;
}

.root_title {
  display: block;
  font-weight: bold;
  margin: 0 auto 22px;
}

.root_footer {
  background-color: #191919;
  width: 100%;
  height: 30px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: bold;
  color: #999999;
  padding:0 1%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.root_footer_wrap {
  width: 100%;
  margin: 0 auto;
  background-color: #191919;
}
.root_footer_wrap .root_footer{
  max-width: 900px;
  margin: 0 auto;
}

.root_footer ul {
    height: auto;
    font-size: 10px;
    line-height: 12px;
    padding: 0;
    margin: 0;
}
.root_footer ul li {
    display: inline;
    height: auto;
    width: auto;
    margin: 0;
    padding: 0 14px 0 9px;
}
.root_footer ul li a {
    color: #999999;
    text-decoration: none;
}
.root_footer ul li a:hover,
.root_footer ul li a:active
 {
    color: #999999;
    text-decoration: underline;
}



/* TOP */

.go_to_hinoya,
.go_to_sunhouse {
  width: 50%;
  height: 100%;
  text-align: center;
}
.go_to_hinoya {
  background-color: #ffffff;
}
.go_to_sunhouse {
  background-color: #005eae;
}
.go_to_hinoya div,
.go_to_sunhouse div {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.go_to_hinoya div a,
.go_to_sunhouse div a {
  position: absolute;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.go_to_hinoya div a img,
.go_to_sunhouse div a img {
  max-width: 404px;
  width: 100%;
  height: auto;
}


/* COMPANY */

.detail_wrap > div,
.shop_wrap,
.history_wrap > div {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  margin-bottom: 20px;
}
.company_title,
.company_year {
  width: 90px;
}
.company_year{
  font-weight: bold;
  letter-spacing: 0.05em;
}
.company_detail,
.company_history {
  flex: 1;
  word-break: break-all;
}
.company_detail strong {
  word-break: normal;
}
.company_shop {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.each_shop {
  flex: 50%;
  display: flex;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.shop_info {
  width: 178px;
  margin-left: 10px;
}

.history_wrap > div {
    margin-bottom: 12px;
}
.history_wrap .root_title {
    font-size: 16px;
    margin: 0 auto;
}

.history_wrap strong {
  display: inline-block;
  font-size: 12px;
  color:#9a9a9a;
  margin: 0 auto 20px;
}

/* CONTACT */

.contact_intro {
  margin: 0 auto 42px;
}
.contact_wrap {
 margin: 22px auto 0;
}
.contact_wrap div {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  margin-bottom: 22px;
}

.contact_title {
  width: 180px;
}
.contact_title small {
    display: inline-block;
    font-size: 90%;
    width: 90%;
}
.contact_detail {
  word-break: break-all;
  width: 100%;
}
.contact_detail input,
.contact_detail textarea {
  border: 1px solid #a6a6a6;
  padding: 2px 4px;
  width:100%;
  max-width: 380px;
}

select#goyouken {
    border: 1px solid #a6a6a6;
    padding: 0 4px 4px;
    -webkit-appearance: menulist-button!important;
}

.contact_error {
    color: #ef7000;
    font-weight: bold;
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {


.root_header {
  flex-wrap: wrap;
  min-height: 60px;
  height: auto;
}

body,
body:before {
  background-image: none;
}

.root_content {
  height: calc(100% - 80px);
}
.root_footer{
  min-height: 60px;
  height: auto;
  display: block;  
}
.root_footer ul {
    padding:0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.root_footer ul li{
    width: 20%;
    margin-top: 22px;
}
.root_footer .copy_right {
    font-size: 8px;
    line-height: 1;
    padding: 5px;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 10px;
}
.go_to_hinoya div a,
.go_to_sunhouse div a {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
}

}


@media screen and (max-width: 480px) {

.root_header {
  padding: 10px 20px 5px; 
}
.root_header ul.header_menu {
  margin: 2px 0 0;
}
.root_header ul.header_menu li a.active_menu {
  display: none;
}
.root_index .root_content {
    height: calc(100% - 20px);
}
.root_index .root_footer {
    min-height: initial;
    height: 20px;
    display: flex;
}
.root_index .root_footer ul {
    display: none;
}
.root_index .root_footer .copy_right {
    margin-top: 0;
    padding: 5px;
    font-size: 8px;
    font-weight: bold;
}

.root_footer ul li{
    width: 50%;
    margin-top: 10px;
}
  .shop_wrap {
    margin-bottom: 0;
  }
  .each_shop {
    flex: 100%;
    display: flex;
    margin: 0 auto 20px;
    flex-wrap: wrap;
  }
  .shop_info {
    width: 100%;
    margin:10px 0;
  }
  .contact_wrap div {
    display: block;
  }

}


