:root {
    --mdc-theme-primary:#939085;
    --mdc-theme-secondary:#939085;
    --mdc-theme-background:#edece6;
    --mdc-typography-font-family:din-2014, sans-serif;
    --mdc-typography-button-font-family:din-2014, sans-serif;
    --base-background:#ffffff;
    --successColor:#4caf50;
}
* {
  box-sizing: border-box;
}
html.en .en {
    display:inherit;
}
html.en .ja {
    display:none;
}
html.ja .en {
    display:none;
}
html.ja .ja {
    display:inherit;
}
html,body {
    margin:0;
    padding:0;
    height:100%;
}
body {
    font-family: din-2014, sans-serif;
}
h1,h2,h3 {
    font-weight:500;
}
h2,h3 {
    margin-block-start:2em;
}
a {
    text-decoration: none;
    font-weight:500;
    color:var(--mdc-theme-primary);
}
a:hover {
    text-decoration: underline;
}
li {
    margin-bottom:1em;
}
.main,.login {
    min-height:100vh;
    width:100%;
    padding:40px;
    padding-bottom:80px; 
}
.main {
    height:100%;
}
html.jsEnabled .main {
    height:200%;
}
.main .logo {
    width:100%;
    height:100vh;
    background-image:url(ih-logo-main.svg);
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center center;
    vertical-align: middle;
}
html.jsEnabled .main .logo {
    background-image:none;
}
#mainLogo svg {
    opacity:0;
}
#mainLogo.ready svg {
    animation: fadeIn 1s ease-in-out;
    animation-fill-mode: forwards; 
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.main .logo svg {
    height: 100%;
    height: calc(100vh - 80px);
    width: 100%;
    width: calc(100vw - 80px);
}
html.jsEnabled #subtitleStage {
    height:100%;
    height:100vh;
}
.contents {
    display:inline-block;
    width:100%;
    max-width:882px;
    text-align: left;
}
.footer {
    color:var(--mdc-theme-primary);
    display: block;
    left:0;
    right:0;
    height: 60px;
    line-height: 60px;
    bottom: 60px;
    text-align:center;
}
.login {
    background-color:rgb(237 236 230);
    line-height: 2em;
    text-align:center;
}
#languageSelector {
    margin-top:120px;
    text-align:center;
}
#languageSelector .language {
    display: inline-block;
    cursor:pointer;
    padding-left:10px;
    padding-right:10px;
    line-height:34px;
    color:var(--mdc-theme-primary);
}
html.en #languageSelector #en, html.ja #languageSelector #ja {
    background-color:var(--mdc-theme-background);
    cursor:default;
}
html.ja #languageSelector #en:hover, html.en #languageSelector #ja:hover {
    background-color:var(--mdc-theme-primary);
    color:var(--mdc-theme-background);
}
.contentPage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
/* .contentPage {
    display:inline-block;
    width:calc(1 / 3 * 100vw);
} */
.contentPage .en, .bodyText {
    font-family: adobe-garamond-pro, serif;
    font-size:12pt;
    line-height:1.5em;
}
.contentPage .en h2 {
    font-family: din-2014, sans-serif;
}
.contentPage .ja {
    font-family: vdl-v7mincho, serif;
    font-size:10pt;

    /* Settings for proper Japanese text flow handling */
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.contentPage .ja h2 {
    font-family: a-otf-gothic-mb101-pr6n, sans-serif;
}
.contentPage .contentPane {
    padding-top:40px;
    padding-bottom:40px;
}
.contentPage .text {
    padding-left:40px;
    padding-right:40px;
}
.image {
    height:100vh;
    background-position: center center;
    background-size:contain;
    background-repeat:no-repeat;
}
.image.cover {
    background-size:cover;
}

.contentPage .ja {

}
.contentPage h1 {
    color:var(--mdc-theme-primary);
    font-weight:600;
    font-size:29pt;
    margin:0;
}
.contentPage h2 {
    font-style: italic;
    font-weight:300;
    font-size:10pt;
    margin:0;
}
.contentPage .ja h2 {
    font-size:8.7pt;
}

.contentPage.credits {
    background-color:var(--mdc-theme-background);
    min-height:100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 20px;
}
.centerRow {
    align-self: center;
}
.creditGrid {
    width:100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 8px;
}
.creditGrid .contribution {
    text-align:right;
}
.creditNote {
    text-align: center;
    font-style: italic;
}
.creditLogo {
    background-position: center bottom;
    background-size:200px;
    background-repeat:no-repeat;
    height:132px;
    margin-bottom:20px;
}

.contentPage .mainImage {
    display:none;
}
.contentPage .secondaryImage {
    width:100%;
}
.semiboldLine, .semiboldLine a {
    font-weight:600;
}
.jsOnly {
    display: none;
}
html.jsEnabled .jsOnly {
    display: inherit;
}
html.jsEnabled .jsOnly.mobileOnly {
    display: none;
}
.mobileOnly {
    display: none !important;
}
html.jsEnabled .noJsOnly {
    display: none !important;
}
/* Transition */
.jsEnabled #photoStage {
    display:block;
    height:100vh !important;
    width:100vw !important;
    margin-bottom:-100vh;
    position:relative;
}
.jsEnabled #photoStage .image {
    background-color:var(--base-background);
    position:absolute;
    top:0;
    bottom:0;
    right:0;
    width:calc(2 / 3 * 100vw);
}
.jsEnabled .contentPage .mainImage {
    display: none;
}
.jsEnabled #photoStage .image:not(.pinnable) {
    opacity:0;
}
.contentPage .contentPane {
    min-height:100vh;
}
#photo-2-mobile-container {
    display: none;
}

/* Mobile */
/* Default mobile rules */
@media (max-width: 700px), (max-height:500px){
    .mobileOnly,html.jsEnabled .jsOnly.mobileOnly {
        display: inherit;
    }
    html.jsEnabled .mobileOnly.noJsOnly {
        display: none;
    }
    html.jsEnabled .contentPage .mainImage {
        display: block;
    }
    .desktopOnly, html.jsEnabled .jsOnly.desktopOnly {
        display: none !important;
    }
    .contentPage .contentPane {
        min-height:inherit;
    }
    .contentPage:not(.credits) {
        display:block;
        height:fit-content !important;
        min-height:inherit !important;
    }
    .contentPage.credits {
        min-height:100vh;
        height:fit-content;
    }
    .contentPage .mainImage {
        width:100%;
        display:block;
    }
    #photoStage {
        display:none !important;
    }
    .credits {
        padding:20px;
    }
    .contentPage h1 {
        margin-bottom:5px;
    }
    html.jsEnabled #photo-2-mobile-container {
        display: inherit;
    }
}
/* Mobile */
/* Special rules for content too wide for phones in portrait */
@media (max-width:450px){
    .creditGrid {
        display: block;
    }
    .creditGrid .contribution {
        margin-top:15px;
        text-align: center;
    }
    .creditGrid .contributor {
        margin-bottom:15px;
        text-align: center;
    }
}