/*
Company colours:
Black - RGB 34 23 20 - #221714
Orange - RGB 243 151 28 - #F3971C
Blue - RGB 33 184 218 - #21B8DA
Green - RGB 153 200 100 - #99C864
Yellow - RGB 253 210 62 - #FDD23E

Input Border - RGB 237 237 239 - #EDEDEF
Input Shadow - RGB 209 208 203 - #D1D0CB, but looks faint so using #50505B for now.

Button Hover - RGB 110 156 57 - #6E9C39
*/

/*
    Based off Eric Meyer's CSS Reset v2.0
    http://meyerweb.com/eric/tools/css/reset/ 
    v2.0 | 20110126
    License: none (public domain)

    Changed to use base font-size, and rem units;
    Changed to 4 space indents.
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

html {   /* PJAC change to html base font-size. Had to be split out as relative sizes compund. */
    font-size: 10px;
    font-size: 62.5%; /* browsers default to 16px, so this sets to 10px */
}

body {
    font-size: 16px;
    font-size: 160%;
    font-size: 1.6rem;
}
/* PJAC changed to exclude html, body */
div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    font-size: 100%;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* General overrides to resets */
*[lang="en-GB"],
*[lang="en-US"] {
    font-family: "Gotham SSm A", "Gotham SSm B", "Gotham A", "Gotham B", Helvetica, sans-serif;
    font-style: normal;
    font-weight: 400;
}

*[lang="ja-JP"] {
    font-family: "YuMincho", sans-serif;
    font-style: normal;
    font-weight: 400;
}

li a,
li a:hover {
    text-decoration: none;
    color: inherit;
}

li a:hover {
    color: #99C864;
}


ul {
    list-style: none;
}

li {
    display: inline-block;
}

/* Common elements */

.group::after {
    visibility: hidden;
    display: block;
    content: "";
    clear: both;
    height: 0;
}

.aligner,
.alignee {
    display: inline-block;
    vertical-align: middle;
}

.input-container {
    height: 30px;
    height: 3rem;
    line-height: 20px;
    line-height: 2rem;
    display: inline-block;

    margin: 0;
    padding: 3px;
    padding: 0.3rem;

    color: #221714;
    font-weight: bold;

    background-color: white;
    
    border: 2px solid #EDEDEF;
    border: 0.2rem solid #EDEDEF;
    border-radius: 5px;
    border-radius: 0.5rem;
    box-shadow: 3px 3px 3px #50505B;
    box-shadow: 0.3rem 0.3rem 0.3rem #50505B;
    
    margin-right: 7px;
    margin-right: 0.7rem;
}

.input-container input:focus {
    outline: none;
}

.input-container:focus-within {
    border-color: #6E9C39;
}

input {
    margin: 0;
    margin-left: 0.5rem;
    padding: 0;
    border: 0;
    height: 30px;
    height: 3rem;
    line-height: 30px;
    line-height: 3rem;
    display: inline-block;
    float: left;
}

button {
    margin: 0;
    padding: 5px;
    padding: 0.5rem;
    border: 2px solid #99C864;
    border: 0.2rem solid #99C864;
    height: 40px;
    height: 4rem;
    display: inline-block;
    font-weight: bold;
    box-shadow: 3px 3px 3px #50505B;
    box-shadow: 0.3rem 0.3rem 0.3rem #50505B;
    background-color: #99C864;
    border-radius: 18px;
    border-radius: 1.8rem;
    border-width: 2px;
    border-width: 0.2rem;
    color: white;
}

button:focus {
    outline: none;
    border-color: #6E9C39;
}

button:hover {
    background-color: #6E9C39;
    border-color: #6E9C39;
}

.icon {
    color: #99C864;
    font-family: 'FontAwesome';
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    width: 20px;
    width: 2rem;
    height: 30px;
    height: 3rem;
    line-height: 30px;
    line-height: 3rem;
    font-size: 20px;
    font-size: 2rem;
    float: left;
}

/* General site layout */
body {
    background-color:white;
    background-image: url('../imgs/background-tile-43x43.png');
    background-repeat: repeat;
    min-width: 980px;
    color: #221714;
}

.backdrop-container {
    width: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -100;
    height: 650px;
    height: 65rem;
    background-color: white;
    min-width: 980px;
}

.backdrop-container .backdrop {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -100;
    height: 650px;
    height: 65rem;
    min-width: 980px;
    
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    
    opacity: 0;
}

.backdrop-container .backdrop-chiyo-a {
    background-image: url('../imgs/main-backdrop-chiyo-a-1920x1280.webp');
}

.backdrop-container .backdrop-chiyo-b {
    background-image: url('../imgs/main-backdrop-chiyo-b-1920x1280.webp');
}

.backdrop-container .backdrop-chiyo-c {
    background-image: url('../imgs/main-backdrop-chiyo-c-1920x1280.webp');
}

.pad-left-6 {
    padding-left: 6px;
    padding-left: 0.6rem;
}

.pad-right-6 {
    padding-right: 6px;
    padding-right: 0.6rem;
}

.site-container {
    width: 980px;
    margin: 0 auto;
    min-width: inherit;
}

/* Header layout */
.header {
    height: 75px;
    height: 7.5rem;
    background: rgba(255, 255, 255, 0.8);
}

.logo-container {
    display: inline-block;
    float: left;
}

.logo-container .aligner {
    height: 75px;
    height: 7.5rem;
}

.logo-size.normal {
    display: inline-block;
    width: 185px;
    height: 38px;
}

.logo-image.normal {
    background-image: url("../imgs/chiyocloud-logo-185x38-transparent.png");
}

.logo-size.mini {
    display: inline-block;
    width: 127px;
    height: 26px;
}

.logo-image.mini {
    background-image: url("../imgs/chiyocloud-logo-bw-127x26-transparent.png");
}

.logo-image.mini.preload,
a:hover .logo-image.mini {
    background-image: url("../imgs/chiyocloud-logo-127x26-transparent.png");
}

.menu {
    display: inline-block;
    width: 790px;
    height: 20px;
    height: 2rem;
    float: right;
    font-weight: bold;
    line-height: 20px;
    line-height: 2rem;
    margin-top: 40px;
    margin-top: 4rem;
    padding-bottom: 15px;
    padding-bottom: 1.5rem;
}

.menu ul {
    float: right;
}

.menu li{
    margin-right: 48px;
    padding-bottom: 10px;
    padding-bottom: 1rem;
}

.menu li:last-child{
    margin-right: 0;
}

.menu li:hover {
    color: #99C864;
    border-bottom: 5px solid #99C864;
    border-bottom: 0.5rem solid #99C864;
}

/* Content layout */
.content {
    height: 575px;
    height: 57.5rem;
}

/* Coming Soon layout */
.comingsoon .page-image {
    padding: 100px 0 0 0;
    padding: 10rem 0 0 0;
    text-align: center;
}

.comingsoon .page-image img {
    width: 400px;
}

.comingsoon .page-tagline {
    padding: 40px 0 0 0;
    padding: 4rem 0 0 0;
    line-height: 60px;
    line-height: 6rem;
    font-size: 60px;
    font-size: 6rem;
    font-weight: normal;
    text-align: center;
}

.footer .a-titokyo-company {
    height: 30px;
    width: 84px;
    display: inline-block;
    background-image: url("../imgs/titokyo-logo-84x30-3px-top-border-transparent.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Homepage layout */
.homepage .page-tagline {
    padding: 100px 0 60px 0;
    padding: 10rem 0 6rem 0;
    line-height: 40px;
    line-height: 4rem;
    font-size: 30px;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}

.homepage .search {
    width: 870px;
    height: 80px;
    height: 8rem;
    margin: 0 55px 0 55px;
}

.homepage .search .section-tagline
{
    line-height: 20px;
    line-height: 2rem;
    font-size: 16px;
    font-size: 1.6rem;
    font-weight: bold;
    padding-bottom: 13px;
    padding-bottom: 1.3rem;
    padding-left: 13px;
    padding-left: 1.3rem;
}

.homepage .search .searchbar>div {
    display: inline-block;
    float: left;
}

.homepage .search .terms input {
    width: 433px;
}

.homepage .search .location input {
    width: 213px;
}

.homepage .search .button {
    width: 120px;
    margin-left: 8px;
}

.homepage .search .button button {
    width: 100%;
}

.block-links {
    width: 900px;
    margin: 100px auto 0 auto;
    margin: 10rem auto 0 auto;
}

.block-links li {
    float: left;
    background-color: white;
    text-align: center;
    height: 119px;
    height: 11.9rem;
    width: 412px;
}

.block-links li:nth-child(2n) {
    float: right;
}

.block-links li:hover {
    color: #99C864;
}

.block-links .image, 
.block-links .title {
    height: 119px;
    height: 11.9rem;
    display: inline-block;
    float: left;
}

.block-links .image {
    width: 210px;
}

.block-links .title {
    width: 202px;
    font-weight: bold;
}

.block-links .title .aligner {
    height: 119px;
    height: 11.9rem;
}

.block-links .title .alignee {
    line-height: 1.8rem;
    padding: 40px;
    padding: 4rem 40px 4rem 40px;
}

.block-links .space .image {
    background-image: url("../imgs/homepage-link-space.png")
}

.block-links .teach .image {
    background-image: url("../imgs/homepage-link-teach.png")
}


/* Footer layout */

.footer {
    margin-top: 30px;
    margin-top: 3rem;
}

ul.footer-6 {
    margin-bottom: 30px;
    margin-bottom: 3rem;
}

li.footer-6 {
    width: 155px;
    margin-right: 10px;
    float: left;
}

li.footer-6:nth-child(6n) {
    margin-right: 0;
}

li.footer-6>ul>li {
    display: block;
    margin-top: 10px;
    margin-top: 1rem;
}

li.footer-6>ul>li:first-child {
    font-weight: bold;
    margin-top: 0;
}

li.footer-3 {
    width: 320px;
    margin-right: 10px;
    float: left;
}

li.footer-3:nth-child(3n+1) {
    text-align: left;
}

li.footer-3:nth-child(3n+2) {
    text-align: center;
}

li.footer-3:nth-child(3n) {
    margin-right: 0;
    text-align: right;
}

li.footer-3 .aligner {
    height: 30px;
    height: 3rem;
}

li.footer-3 .alignee {
    line-height: 18px;
    line-height: 1.8rem;
}

li.footer-3 li {
    float: left;
    margin-right: 10px;
}

li.footer-3 li:last-child {
    margin-right: 0;
}

.setting {
    display: block;
    margin-bottom: 10px;
    margin-bottom: 1rem;
    text-align: right;
}

.setting:hover .title .name {
    color: #99C864;
}

.languages .flag-icon {
    font-size: 24px;
    font-size: 2.4rem;
}

.setting .title .name {
    padding: 0 10px 0 10px;
    padding: 0 1rem 0 1rem;
}

.setting .options {
    margin-top: 5px;
    margin-top: 0.5rem;
    position: relative;
    left: -20%;
    background: white;
    border: 2px solid #99C864;
    border: 0.2rem solid #99C864;
}

.setting .options li {
    display: block;
    padding: 10px 10px 0 0;
    padding: 1rem 1rem 0 0;
    font-weight: normal;
}

.setting .options li:last-child {
    padding-bottom: 10px;
    padding-bottom: 1rem;
}


.setting .options li:hover .name {
    color: #99C864;
}

.setting .options .name {
    padding: 0 0 0 10px;
    padding: 0 0 0 1rem;
}

.setting .options {
    display: none;
    width: 120%
}

.setting:hover .options {
    display: block;
}

.footer-social-media-links {
    margin-top: 30px;
    margin-top: 3rem;
}

.footer-social-media-links li {
    float: left;
    display: inline-block;
    font-size: 24px;
    font-size: 2.4rem;
    width: 35px;
    padding-right: 5px;
    text-align: center;
}

.footer-social-media-links li:nth-child(4n) {
    padding-right: 0;
}


.footer-social-media-links a:hover {
    color: #99C864;
}
