@charset "UTF-8";

.whitebg {
    min-height: 700px;
}
#company_page1 p, #company_page2 p, #company_page3 p {
    color: black;
}
/*１ページ目*/
#company_pg1_msg {
    top: 15%;
    width: 42%;
    min-width: 345px;
}
#company_page1 h3, #company_page2 h3, #company_page4 h3 {
    font-size: 22px;
    top: 19%;
}
#company_pg1_wrap {
    display: flex;
    display: -ms-flexbox;
    position: absolute;
    top: 35%;
    width: 100%;
}
#mrdaichi_img {
    position: absolute;
    top: 35%;
    left: 20%;
    width: 280px;
    text-align: center;
    animation-duration: 2s;
}
#mrdaichi_img img {
    width: 100%;
    vertical-align: bottom;
}
#mrdaichi_img p {
    display: inline;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    color: rgb(36, 36, 36);
}
#title_name {
    width: 100%;
    margin: 0 auto;
    padding: 10px 5px;
    box-sizing: border-box;
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', ヒラギノ明朝ProN, ヒラギノ明朝Pro, 游明朝, 'Yu Mincho', 'YuMincho';
    background: rgba(245, 188, 26, 0.75);
    box-shadow: 0px 2px 5px gray;
}
#title_name span {
    display: block;
}
.position {
    margin: 3px 0;
}
#name {
    font-size: 20px;
    margin-top: 9px;
}
/*#vertical_msg {
    position: absolute;
    top: 20%;
    right: 5%;
    margin: 0;
    font-size: 40px;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    line-height: 1.2;
}*/
#company_pg1_container {
    position: absolute;
    top: 35%;
    left: 50%;
    width: min(40%, 520px);
    width: 40%;
}
#company_pg1_contents {
    margin-bottom: 30px;
    text-align: justify;
}
.about_title {
    margin-top: 0;
    font-weight: bold;
}
#top-msg {
    animation-delay: 1s;
}
#company_page1 .about_title,
#company_page2 .about_title {
    font-size: 20px;
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', ヒラギノ明朝ProN, ヒラギノ明朝Pro, 游明朝, 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
    margin: 0;
    display: flex;
    display: -ms-flexbox;
    align-items: center;
    -ms-flex-align: center;
}
/*.about_title::after {
    content: "";
    flex-grow: 1;
    -ms-flex-positive: 1;
    height: 1px;
    background: black;
    margin-left: 10px;
}*/
/*#profile {
    padding: 16px;
    border: solid 1px;
}
#profile span {
    font-size: 20px;
    font-weight: bold;
}
#profile p {
    font-size: 12px;
    margin-top: 15px;
    margin-bottom: 0;
    letter-spacing: 0.15em;
}*/
@media screen and (max-width: 1200px) {
    #company_page1 h3 {
        top: 17%;
    }
    #mrdaichi_img {
        left: 15%;
    }
    #mrdaichi_img img {
        width: 86%;
    }
    #mrdaichi_img p {
        font-size: 14px;
    }
    #company_pg1_container {
        left: 50%;
    }
    /*#profile p {
        font-size: max(1vw, 11px);
    }*/
    #name {
        font-size: max(1.8vw, 18px);
    }
}
@media screen and (max-width: 900px) {
    #mrdaichi_img {
        left: 7%;
        width: max(290px);
    }
    #company_pg1_container {
        left: 49%;
    }
    #company_pg1_contents p{
        font-size: 12px;
    }
    #company_page1 .about_title,
    #company_page2 .about_title {
        font-size: 18px;
    }
    /*#profile {
        padding: 15px;
    }*/
}
@media screen and (max-width: 780px) {
    #company_page1 {
        height: 120vh;
        max-height: 1024px;
        min-height: 900px;
    }
    #company_pg1_contents p {
        line-height: 2.0;
    }
}
@media screen and (max-width: 700px) {
    #company_page1 {
        min-height: 1000px;
    }
    #company_pg1_msg {
        top: 10%;
    }
    #company_page1 h3 {
        top: 11%;
    }
    #mrdaichi_img {
        top: 64%;
        left: 50%;
        margin-left: -125px;
        width: 250px;
    }
    #company_pg1_container {
        top: 23%;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
    }
}
@media screen and (max-width: 600px) {
    #mrdaichi_img {
        top: 67%;
    }
}
@media screen and (max-width: 480px) {
    #company_page1 {
        min-height: 1100px;
        max-height: none;
    }
    #company_pg1_msg {
        min-width: 320px;
    }
    #mrdaichi_img {
        top: 67%;
    }
    #company_page1 .about_title,
    #company_page2 .about_title {
        font-size: 16px;
    }
}
@media screen and (max-width: 400px) {
    #company_page1 {
        /*height: 175vh;*/
        height: 1140px;
    }
    #company_pg1_msg {
        min-width: 300px;
    }
    #company_page1 h3 {
        font-size: 20px;
    }
    #company_pg1_container {
        top: 20%;
    }
    #mrdaichi_img {
        top: 70%;
    }
    #name {
        font-size: 16px;
    }
}
/*２ページ目*/
#company_page2 {
    min-height: 800px;
}
#company_pg2_msg {
    top: 10%;
    width: 50%;
    min-width: 530px;
}
#company_page2 h1 {
    position: absolute;
    top: 34%;
    left: 20%;
    margin: 0;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    font-size: 70px;
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', ヒラギノ明朝ProN, ヒラギノ明朝Pro, 游明朝, 'Yu Mincho', 'YuMincho','Noto Serif JP', serif;
    line-height: 1.0;
    letter-spacing: .2em;
    animation-duration: 2s;
}
#philo_contents {
    position: absolute;
    top: 34%;
    width: min(50%, 650px);
    left: 50%;
    transform: translateX(-25%);
    text-align: justify;
}
#philo_contents .article1 {
    margin-bottom: 25px;
    opacity: 0;
}
@media screen and (max-width: 1200px) {
    #company_page2 {
        height: 900px;
    }
    #philo_contents .article1 {
        font-size: 12px;
    }
    #company_page2 h1 {
        left: 14%;
        /*font-size: max(6vw, 62px);*/
        font-size: 6vw;
    }
}
@media only screen and (max-width: 980px) and (min-width: 780px) {
    #company_page2 {
        height: 130vh;
    }
    #company_page2 h3 {
        top: 15%;
    }
    #philo_contents {
        top: 30%;
    }
}
@media screen and (max-width: 780px) {
    #company_pg2_msg {
        top: 16%;
        min-width: 400px;
    }
    #company_page2 h1 {
        left: 10%;
        /*font-size: max(8vw, 45px);*/
        font-size: 8vw;
    }
    #philo_contents {
        top: 30%;
        left: 46%;
        line-height: 1.7;
    }
}
@media screen and (max-width: 700px) {
    #company_pg2_msg {
        top: 7%;
    }
    #company_page2 h3 {
        top: 10%;
    }
    #philo_contents {
        top: 26%;
    }
}
@media screen and (max-width: 600px) {
    #company_page2 h1 {
        writing-mode: horizontal-tb;
        -ms-writing-mode: lr-tb;
        top: 24%;
        left: 45%;
    }
    #philo_contents {
        width: 70%;
        top: 36%;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media screen and (max-width: 480px) {
    #company_page2 {
        height: 800px;
    }
    #company_pg2_msg {
        min-width: 320px;
        top: 6%;
    }
    #philo_contents {
        top: 26%;
        letter-spacing: .15em;
        line-height: 1.5;
    }
    #philo_contents .article1 {
        margin-bottom: 20px;
    }
    #company_page2 h1 {
        top: 20%;
        /*font-size: max(30px);*/
    }
    #company_page2 .article1 {
        margin-bottom: 12px;
    }
}
@media screen and (max-width: 400px) {
    #company_page2 {
        height: 950px;
    }
    #company_pg2_msg {
        min-width: 300px;
    }
}

/*３ページ目*/
#company_page3 {
    /* min-height: 750px; */
    min-height: 950px;
}
#company_page3 h3 {
    position: absolute;
    top: 15%;
    right: 7%;
    margin: 0;
    writing-mode: vertical-lr;
    -ms-writing-mode: tb-lr;
    -webkit-writing-mode: vertical-lr;
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', ヒラギノ明朝ProN, ヒラギノ明朝Pro, 游明朝, 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
    font-size: 40px;
}
#company_pg3_msg {
    position: absolute;
    /* top: 43%; */
    top: 30%;
    /* right: 7%; */
    right: 4%;
    width: 80px;
}
table {
    position: absolute;
    top: 12%;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 57%;
    max-width: 760px;
    min-width: 680px;
    /* border-collapse: collapse; */
    border-spacing: 0;
    border: solid 2px;
    font-size: 13px;
}

table td{
    border-bottom: solid 1px black;
    border-top: solid 1px black;
    /* border: solid 1px black; */
    padding: 15px 60px;
}
#top_line td {
    border-top: none;
}
#bottom_line td {
    border-bottom: none;
}
table .colorcell {
    border-right: solid 2px black;
    -webkit-text-stroke-width: .7px !important;
    background: rgb(244, 244, 244);
    padding: 20px;
    white-space: nowrap;
}
@media all and (-ms-high-contrast: none) {
    table {
        left: 50%;
        margin-left: -25%;
    }
}
@media all and (-ms-high-contrast: none) and (max-width: 1200px) {
    table {
        margin-left: -30%;
    }
}
@media screen and (max-width: 1024px) {
    #company_page3 {
        height: 900px;
    }
    table {
        top: 16%;
        min-width: 580px;
    }
    table td {
        padding: 10px 35px;
    }
}
@media screen and (max-width: 780px) {
    #company_page3 h3 {
        right: 4%;
    }
}
@media screen and (max-width: 750px) {
    #company_page3 {
        height: 120vh;
        min-height: 900px;
        min-height: 1200px;
    }
    #company_page3 h3 {
        writing-mode: horizontal-tb;
        -ms-writing-mode: lr-tb;
        top: 9%;
        left: 50%;
        transform: translateX(-50%);
        font-family: inherit;
        font-size: 22px;
        text-align: center;
    }
    #company_pg3_msg {
        transform: rotate(-90deg);
        top: -1%;
        left: 43%;
        width: 100px;
    }
    table {
        min-width: 480px    }
}
@media all and (-ms-high-contrast: none) and (max-width: 750px) {
    table {
        margin-left: -35%;
    }
}
@media screen and (max-width: 480px) {
    #company_page3 {
        /* height: 1000px; */
        min-height: 1250px;
        margin-bottom: 20px;
    }
    #company_pg3_msg {
        top: 0vh;
    }
    table {
        min-width: 340px;
        /*transform: translateY(-44%);*/
        top: 13%;
    }
    table td {
        font-size: 12px;
        padding: 12px 20px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    table .colorcell {
        border-right: 0;
        padding: 10px 20px;
    }
    table .blackcell {
        padding: 10px;
    }
    .sp_none {
        display: none;
    }
}
@media screen and (max-width: 400px) {
    #company_page3 {
        /*height: 135vh;*/
        height: 970px;
    }
    #company_pg3_msg {
        width: 80px;
        top: -3%;
    }
    #company_page3 h3 {
        top: 8vh;
        font-size: 20px;
    }
    table {
        min-width: 300px;
        top: 10%;
    }
}
@media screen and (max-width: 350px) {
    #company_page3 {
        height: 1100px;
    }
    table {
        min-width: 270px;
    }
    #company_page1 {
        height: 1300px;
    }
    #company_pg1_container {
        top: 18%;
    }
    #mrdaichi_img {
        top: 68%;
    }
    #company_page2 {
        height: 1000px;
    }
    #company_page2 h1 {
        top: 18%;
        left: 40%;
    }
}
/*4ページ目*/
#company_page4 {
    height: 750px;
}
#company_pg4_msg {
    top: 8%;
    width: 40%;
    min-width: 500px;
}
#company_page4 p{
    color: black
}
#company_pg4_wrap {
    z-index: 15;
    position: absolute;
    top: 30%;
    display: flex;
    display: -ms-flexbox;
    flex-direction: column;
    -ms-flex-direction: column;
    width: 100%;
}
#company_pg4_container {
    display: flex;
    display: -ms-flexbox;
    justify-content: center;
    -ms-flex-pack: center;
    width: 100%;
    color: black;
}
#book_img {
    width: 500px;
    text-align: right;
}
#book_img img{
    width: 50%;
    margin-top: 20px;
    margin-right: 7vw;
    border: solid 1px gray;
}
#book_contents {
    width: 500px;
}
#book_title {
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', ヒラギノ明朝ProN, ヒラギノ明朝Pro, 游明朝, 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 30px;
    line-height: 1.7;
}
#company_page4 #book_title {
    color: #ff7f00;
}
#book_title span {
    font-size: 16px;
}
#book_title span#publish {
    font-size: 13px;
    color: black;
}
#book_comments {
    text-align: justify;
    padding-right: 3vw;
}
#company_page4 .btn {
    text-align: center;
    padding-top: 30px;
}

@media only screen and (max-width: 1020px) {
    #company_page4 {
        height: 900px;
    }
    #book_img {
        width: 40vw;
    }
    #book_img img{
        width: 55%;
        min-width: 230px;
        margin-right: 5vw;
    }
    #book_comments {
        font-size: 12px;
        padding-right: 5vw;
    }
    #book_title {
        font-size: 18px;
        padding-right: 3vw;
        margin-bottom: 20px;
    }
    #book_title span {
        font-size: 15px;
    }
}
@media screen and (max-width: 780px) {
    #company_page4 {
        height: 1030px;
    }
    #company_page4 h3 {
        top: 13%;
    }
    #company_pg4_wrap {
        top: 30%;
    }
    #book_contents {
        width: 50vw;
    }
    #book_title {
        margin-bottom: 35px;
    }
    #book_img img {
        width: 50%;
    }
    #company_page4 .btn {
        padding-top: 50px;
    }
}
@media screen and (max-width: 760px) {
    #company_page4 h3 {
        top: 13%;
    }
    #company_pg4_msg {
        min-width: 70vw;
    }
    #company_pg4_wrap {
        top: 24%;
    }
    #company_pg4_container {
        flex-direction: column;
        -ms-flex-direction: column;
    }
    #book_img {
        width: 70%;
        margin: 0 auto;
        text-align: center;
    }
    #book_img img {
        width: 40%;
        margin: 0;
    }
    #book_contents {
        width: 70%;
        margin: 0 auto;
    }
    #book_title {
        margin: 20px 0 30px;
        padding: 0;
        text-align: center;
    }
    #book_comments {
        padding: 0;
    }
    #company_page4 .btn {
        padding-top: 30px;
    }
}
@media screen and (max-width: 650px) {
    #company_page4 .btn {
        padding-top: 20px;
    }
    #company_page4 {
        height: 1100px;
    }
}
@media screen and (max-width: 480px) {
    #company_page4 {
        height: 1000px;
    }
    #company_page4 h3 {
        top: 7%;
    }
    #company_pg4_msg {
        top: 3%;
    }
    #company_pg4_wrap {
        top: 15%;
    }
    #book_contents {
        width: 75%;
    }
    #book_title {
        font-size: 16px;
    }
    #book_img img {
        min-width: 210px;
    }
    #company_page4 .btn {
        font-size: 12px;
    }
}
@media screen and (max-width: 400px) {
    #company_page4 h3 {
        font-size: 20px;
    }
    #company_page4 .btn {
        padding: 10px;
    }
}
@media screen and (max-width: 350px) {
    #company_page4 {
        height: 190vh;
    }
    #company_pg4_msg {
        top: 5%;
    }
    #company_page4 h3 {
        top: 9%;
    }
}