/***** 変数定義 *****/
:root {
  --aspect_rate_16_9: 1.7777;
}

/***** トップページのヘッダー *****/
#top-header {
    position: relative;
    height: auto;
}
/* 動画 */
#background-video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: calc(100vw / var(--aspect_rate_16_9));
    margin: 0 0 0;
    border: none;
}
#background-video img {
    height: 100%;
}
#process-flow-video {
    width: 100%;
/*    cursor: pointer;*/
}
#process-flow-video {
    width: 100%;
}
#play-button {
    position: absolute;
    z-index: 2;
    top: calc(40vw);
    left: 0;
    right: 0;
    margin: auto;
    cursor: pointer;
}
@media screen and (min-width: 600px) {
    #play-button {
        top: calc(42vw);
        left: calc(15vw);
        right: auto;
    }
}
#play-button .button {
    width: 40px;
    height: 40px;
    border: solid 2px #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 36px;/* 丸の高さから、borderの太さの2倍補正 */
    text-align: center;
    margin: 0 auto;
    padding-left: 5px;/* 真ん中より右に補正 */ 
}
#play-button .text {
    font-size: 14px;
    line-height: 1em;
    color: #fff;
    magin: 3px 0 0;
    text-align: center;
}


#background-img {
    position: relative;
    z-index: 1;
    width: min(100vw, var(--doc_max_width));
    height: calc(min(100vw, calc(var(--doc_max_width))) / var(--aspect_rate_16_9));
    margin: 0 0 0;
    border: none;
}
#background-img img {
    width: 100%;
}
#top-logo {
    position: absolute;
    z-index: 2;
    top: min(min(100vw, var(--doc_max_width)) * 0.06, 30px);
    left: 20px;
    width: max(min(100vw, var(--doc_max_width)) * 0.7, 250px);
    height: auto;
    margin: 0 0 0;
    border: none;
}
#top-logo img {
    width: 100%;
}

/* 主要3メニュー */
#major-menu-outer {
    z-index: 2;
    text-align: center;
}
@media screen and (max-width: 600px) {
    #major-menu-outer {
        background: #aaa;
    }
}
#major-menu {
    display: inline-block;
    position: absolute;
    z-index: 2;
    top: calc(min(100vw, var(--doc_max_width)) / var(--aspect_rate_16_9) -  200px);
    right: 20px;
    width: auto;
    height: auto;
    margin: 25px auto 20px auto;
}
@media screen and (max-width: 600px) {
    #major-menu {
        position: relative;
        top: 0px;
        left: 0px;
        right: 0px;
    }
}
#major-menu .full-width {
    width: auto;
}
#major-menu .major-menu {
    width: auto;
    height: 1.8em;
    margin: 0 0 7px 0;
    padding: 0 1em 0 5px;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    color: #fff;
    line-height: 1.7em;
    vertical-align: middle;
    border-right: solid  2px #333;
    border-bottom: solid  2px #333;
    border-top: none;
    border-left: none;
    box-sizing: border-box;
    cursor: pointer;
}
@media screen and (max-width: 600px) {
    #major-menu .major-menu {
        font-size: min(4vw, 20px);
        margin: 0 0 8px 0;
    }
}
#major-menu .major-menu:after{
    content: "";
    clear: both;
    display: block;
}
#major-menu .major-menu .text {
    float: left;
    display: inline-block;
    width: auto;
    text-align: left;
    padding-left: 0.2em;
}
#major-menu .major-menu .mark {
    float: right;
    display: inline-block;
    position: absolute;
    right: -0.5em;
    width: 1.2em;
    height: 1.8em;
    line-height: 1.7em;
    transform: skew(-15deg);
    margin-left: 10px;
    padding-right: 5px;
    background: inherit;
    border: inherit;
}
#major-menu .major-menu .mark:after {
    content: "▶︎";
}
#major-menu .major-menu a,
#major-menu-apply a {
    text-decoration: none;
    color: inherit;
}
#major-menu-about {
    background: #ee6600;
}
#major-menu-real {
    background: #096;
}
#major-menu-online {
    background: #939;
}
#major-menu-waveform {
    background: #66c;
}
#major-menu-vc-inner {
    float: left;
    position: relative;
    width: auto;
    margin-right: 5px;
}
#major-menu-arrow {
    float: left;
    position: relative;
    width: 60px;
    height: 60px;
}
#major-menu-arrow .rectangle {
    position: absolute;
    top: 38px;
    left: 20px; 
    width: 20px;
    height: 45px;
    margin: 0;
    padding: 5px;
    font-size: 18px;
    line-height: 1em;
    background: #fff;
    transform: skew(-15deg);
}
#major-menu-arrow .triangle {
    position: absolute;
    top: 23px;
    left: 34px; 
    width: 50px;
    height: 76px;
    transform: skew(-15deg);
    border-style: solid;
    border-width: 38px 25px;
    border-color: transparent transparent transparent #fff; 
}
#major-menu-apply {
    float: left;
    position: relative;
    top: 20px;
    left: 10px;
    width: auto;
    height: 80px;
    padding: 10px 5px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    line-height: 30px;
    text-align: center;
    background: #f90;
    border: solid #333;
    border-width: 0 2px 2px 0;
    border-radius: 10px;
}
@media screen and (max-width: 600px) {
    #major-menu-arrow .rectangle {
        top: min(8vw, 40px);
        left: min(4vw, 16px);
        width: min(5vw, 20px);
        height: min(10vw, 45px);
    }
    #major-menu-arrow .triangle {
        top: min(5.5vw, 25px);
        left: min(8vw, 34px);
        width: min(10vw, 50px);
        height: min(16vw, 76px);
        border-style: solid;
        border-width: min(8vw, 38px) min(5vw, 25px);
        border-color: transparent transparent transparent #fff; 
    }
    #major-menu-apply {
        top: min(5vw, 24px);
        left: min(1vw, 10px);
        height: min(19vw, 80px);
        padding: min(2.4vw, 8px) min(1.2vw, 4px);
        font-size: min(4vw, 20px);
        line-height: min(7vw, 30px);
    }
}

/* 波形でVoiceCheckリンク */
#waveform-vc-link {
    position: absolute;
    z-index: 2;
    top: calc(min(100vw, var(--doc_max_width)) * 0.35);
    left: 20px;
    width: min(min(100vw, var(--doc_max_width)) * 0.45, calc(min(100vw, var(--doc_max_width)) - 450px));
    height: auto;
    transform: rotate(-10deg);
    margin: 0 0 0;
    border: none;
    text-align: center;
}
#waveform-vc-link img {
    width: min(90%, 300px);
    height: auto;
}

@media screen and (max-width: 600px) {
    #waveform-vc-link {
        width: min(min(100vw, var(--doc_max_width)) * 0.45, calc(min(100vw, var(--doc_max_width)) - 0px));
    }
}