/* ------------------------------------------------------------------------
    SAMPLE
------------------------------------------------------------------------  */
.SAMPLE {
    font-weight: 500;
    font-size: .875em;
    color: red;
    margin-top: 5px;
    line-height: 1.5em;
}

/* ------------------------------------------------------------------------
    PAGE TITLE
------------------------------------------------------------------------  */
/* BG */
#PAGE_TITLE:before {
    background-image: url("./images/page_title_sp.jpg");
}
@media screen and (min-width:769px){
    #PAGE_TITLE:before {
        background-image: url("./images/page_title_pc.jpg");
    }
}

/* ------------------------------------------------------------------------
    Common
------------------------------------------------------------------------  */
/***** Image_Box *****/
.Image_Box{
    display: flex;
    column-gap:20px;
    row-gap:20px;
}
.Image_Box > *{
    width: 100%;
}
.Image_Box .Message{
}
.Image_Box .Image img{
    max-width: 300px;
    margin: 0 auto;
}
@media screen and (max-width:768px){
    /* Image BOX */
    .Image_Box{
        flex-wrap: wrap;
    }
    .Image_Box .Message{
        order: 2;
    }
    .Image_Box .Image{
        order: 1;
    }
}
@media screen and (min-width:769px){
    /* Image BOX */
    .Image_Box .Image{
        max-width: 300px;
    }
}

/***** BG LINE *****/
.Company_Line {
    position: relative;
}
.Company_Line.active:before {
    width: 100%;
}
@media screen and (min-width:769px){
    .Company_Line {
        padding-top: var(--space-40);
    }
    .Company_Line:before {
        position: absolute;
        top: 0;
        left: 0;
        content: '';
        width: 0;
        height: 200px;
        background: var(--sub4-color);
        z-index: -2;
        transform-origin: left;
        transition: all 1.5s;
    }
}

/***** Message_Contents *****/
.Message_Contents{
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap:1em;
}
.Message_Contents .Item{
    width: 100%;
    display: flex;
}
.Message_Contents .Item p {
    display: flex;
    align-items: center;
    
    font-weight: 500;
    padding: .5em 1em;
    box-sizing: border-box;
    line-height: 1.5em;
}
.Message_Contents .Item p:nth-child(1){
    width: 10em;
    justify-content: center;
    background: var(--main-color);
    color: #fff;
}
.Message_Contents .Item p:nth-child(2){
    width: calc(100% - 10em);
    border: 1px solid var(--main-color);
}
@media screen and (min-width:769px){
    .Message_Contents .Item{
        max-width: calc( (100% - 1em) / 2 );
    }
}

/* ------------------------------------------------------------------------
    COMPANY
------------------------------------------------------------------------  */
/****** TOP ******/
#COMPANY_TOP {
    position: relative;
    padding-top: var(--space-20);
}
#COMPANY_TOP:before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 0;
    height: 100%;
    background: var(--sub4-color);
    z-index: -2;
    transform-origin: left;
    transition: all 1.5s;
}
#COMPANY_TOP .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
#COMPANY_TOP .container > *{
    width: 100%;
}
/* action */
#COMPANY_TOP.active:before {
    width: 100%;
}

/* Image */
#COMPANY_TOP .Image{
}
/* Message */
#COMPANY_TOP .Message{
}
#COMPANY_TOP .Message h2{
    font-size: 20px;
    margin-bottom: 1em;
    line-height: 1.5em;
}
#COMPANY_TOP .Message p{
}
@media screen and (max-width:1023px){
    /* base */
    #COMPANY_TOP .container{
        padding-left: 0;
        padding-right: 0;
    }
    
    /* order */
    #COMPANY_TOP .Image{
        order: 1;
    }
    #COMPANY_TOP .Message{
        order: 2;
    }
    /* Image */
    #COMPANY_TOP .Image{
        margin-bottom: 20px;
    }
    /* Message */
    #COMPANY_TOP .Message{
        padding-left: var(--container-side);
        padding-right: var(--container-side);
        padding-bottom: 30px;
    }
}
@media screen and (min-width:1024px){
    #COMPANY_TOP:before {
        height: 300px;
    }
    #COMPANY_TOP:after {
        position: absolute;
        left: 50%;
        top: 0;
        content: '';
        width: 50%;
        height: 100%;
        z-index: 1;
        background-image: url("images/company_image.jpg");
        background-position: 50%;
        background-repeat: no-repeat;
        background-size: cover;
        
        opacity: 0;
        transition-delay: 1s;
        transition: all 1.5s;
    }
    #COMPANY_TOP .container > *{
        max-width: 47.5%;
    }
    /* action */
    #COMPANY_TOP.active:after {
        opacity: 1;
    }
    
    /* image */
    #COMPANY_TOP .Image{
        visibility: hidden;
    }
    /* Message */
    #COMPANY_TOP .Message{
    }
    #COMPANY_TOP .Message h2{
        font-size: 30px;
    }
}

/* GoogleMap Area */
#MAP_AREA {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
#MAP_AREA > * {
    width: 100%;
    box-sizing: border-box;
}
#MAP_AREA .GoogleMap_Area{
}
#MAP_AREA .Company_guide{
}


#MAP_AREA .Company_guide .Message{
    margin-bottom: 1.5em;
}
#MAP_AREA .Company_guide .Btn_Area{
}
@media screen and (max-width:1023px){
    #MAP_AREA {
    }
    #MAP_AREA .GoogleMap_Area{
        padding-left: 5%;
        padding-right: 5%;
        margin-bottom: 30px;
    }
    #MAP_AREA .Company_guide{
        padding-left: 5%;
        padding-right: 5%;
    }
}
@media screen and (min-width:1024px){
    #MAP_AREA .GoogleMap_Area{
        max-width: 60%;
    }
    #MAP_AREA .Company_guide{
        max-width: 30%;
        padding-left: 30px;
        padding-right: 30px;
    }
    #MAP_AREA .Company_guide .Btn_Area{
        justify-content: flex-start;
    }
}

/****** THE CORE OF REX INDUSTRIES ******/
#CORE_OF_REX_INDUSTRIES{
    position: relative;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: var(--space-40);
    padding-bottom: var(--space-40);
}
#CORE_OF_REX_INDUSTRIES:before{
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    background: var(--mainalpha-color);
    width: 0;
    height: 100%;
    z-index: -1;
    
    transform-origin: left;
    transition: all 1.5s;
}
#CORE_OF_REX_INDUSTRIES.active:before{
    width: 100%;
}
#CORE_OF_REX_INDUSTRIES .Message{
}
@media screen and (min-width:769px){
    /*
    #CORE_OF_REX_INDUSTRIES:before{
        height: 100%;
    }
    */
}


/****** CUSTOMER_RELATIONS ******/
#CORPORATE_PHILOSOPHY{}
#CORPORATE_PHILOSOPHY .Block:not(:last-child){
    padding-bottom: var(--space-30);
    border-bottom: 1px dotted var(--sub2-color);
}



/* ------------------------------------------------------------------------
    COMPANY OUTLINE
------------------------------------------------------------------------  */
/***** HEAD OFFICE *****/
.Head_office {
    display: flex;
    flex-wrap: wrap;
    row-gap:15px;
    column-gap: 15px;
}
.Head_office .Item{
    max-width: 200px;
}
.Head_office .Item img{
    width: 171px;
    margin-left: auto;
    margin-right: auto;
}
.Head_office .Item p{
    padding-top: 1em;
    line-height: 1.5em;
    font-size: .875em;
    text-align: center;
}

/***** OUT LINE *****/
.Company_Outline {}
.Company_Outline .Item{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.Company_Outline .Item > *{
    width: 100%;
    box-sizing: border-box;
    padding: .5em;
}
@media screen and (max-width:768px){
    .Company_Outline .Item > *:nth-child(1){
        background: var(--sub4-color);
    }
}
@media screen and (min-width:769px){
    .Company_Outline .Item:nth-child(odd) > * {
        background: var(--sub4-color);
    }
    .Company_Outline .Item > *:nth-child(1){
        max-width: 300px;
    }
    .Company_Outline .Item > *:nth-child(2){
        max-width: calc(100% - 302px);
    }
}

/* ------------------------------------------------------------------------
    COMPANY OTHERS
------------------------------------------------------------------------  */
#COMPANY_OTHER {
    padding-top: var(--space-30);
    padding-bottom: var(--space-30);
    margin-top: 0;
    margin-bottom: 0;
    background: var(--sub4-color);
}
#COMPANY_OTHER .List{
    display: flex;
    flex-wrap: wrap;
    row-gap:20px;
    column-gap: 20px;
}
#COMPANY_OTHER .List .Item{
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    border-radius: 5px;
    border:1px solid var(--sub2-color);
    background: #fff;
    overflow: hidden;
}
#COMPANY_OTHER .List .Item .Image{
    width: 60px;
}
#COMPANY_OTHER .List .Item p{
    width:calc(100% - (60px + 1.5em));
}
@media screen and (min-width:769px){
    #COMPANY_OTHER .List .Item{
        max-width: calc((100% - 40px ) / 3);
    }
}


/* ------------------------------------------------------------------------
    REX GROUP
------------------------------------------------------------------------  */
#REX_GROUP {}
#REX_GROUP .Top_Image {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
#REX_GROUP .Top_Image img{
    width: auto;
    margin: 0 auto;
}
#REX_GROUP .Sub_Title {
    display: flex;
    align-items: center;
}
#REX_GROUP .Sub_Title h3{
    width: 8em;
}
#REX_GROUP .Sub_Title img{
    max-width: 30px;
    border: 1px solid var(--sub2-color);
}
#REX_GROUP .Base_Name {
    font-size: 1.25em;
    margin-bottom: var(--space-20);
}
#REX_GROUP .Base_Name a{
    font-size: 14px;
}
#REX_GROUP .Base_Name ,
#REX_GROUP .Base_Name a{
    line-height: 1.5em;
}

/* LIST */
#REX_GROUP .Group_List {}
#REX_GROUP .Group_List .Item{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
#REX_GROUP .Group_List .Item > *{
    width: 100%;
    box-sizing: border-box;
}
#REX_GROUP .Group_List .Item > *:not(.Image){
    padding: .5em 1em;
}
#REX_GROUP .Group_List .Item .Name{
    font-weight: 500;
    line-height: 1.5em;
}
#REX_GROUP .Group_List .Item .Detail{
}
#REX_GROUP .Group_List .Item .Detail span{
    display: inline-block;
    margin-right: 1em;
}
#REX_GROUP .Group_List .Item .Detail a{
    text-decoration: underline;
}
#REX_GROUP .Group_List .Item .Image{
}
#REX_GROUP .Group_List .Item .Image{
    padding: .5em;
    width: 350px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
}
#REX_GROUP .Group_List .Item .Image img{
    max-width: 171px;
}
#REX_GROUP .Group_List .Item .Image p{
    width: 100%;
    font-size: .875em;
    line-height: 1.5em;
}
@media screen and (max-width:1023px){
    #REX_GROUP .Group_List .Item:not(:last-child){
        margin-bottom: 20px;
    }
    #REX_GROUP .Group_List .Item .Name{
        background: var(--sub4-color);
    }
}
@media screen and (min-width:1024px){
    #REX_GROUP .Group_List .Item:nth-child(odd) > *{
        background: var(--sub4-color);
    }
    #REX_GROUP .Group_List .Item .Name{
        max-width: 300px;
    }
    #REX_GROUP .Group_List .Item .Detail{
        max-width: calc(100% - 652px);
    }
    #REX_GROUP .Group_List .Item .Image{
        justify-content: flex-end;
    }
    #REX_GROUP .Group_List .Item .Image img{
        max-width: 162px;
    }
    #REX_GROUP .Group_List .Item .Image p{
        text-align: end;
    }
}

/* Museum */
#MUSEUM{}
#MUSEUM .Museum_Block {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5em;
    row-gap: 1em;
}
#MUSEUM .Museum_Block .Item{
    width: 100%;
}
#MUSEUM .Museum_Block .Item img{
}
#MUSEUM .Museum_Block:last-child {
    margin-top: 1em;
    align-items: center;
}
@media screen and (min-width:769px){
    #MUSEUM .Museum_Block .Item{
        flex: 1;
    }
}

/***** HORSE AMENITIES *****/
#HORSE_AMENITIES{}
#HORSE_AMENITIES .Contents{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap:20px;
}
#HORSE_AMENITIES .Contents > *{
    width: 100%;
}
#HORSE_AMENITIES .Contents .Message{
}
#HORSE_AMENITIES .Contents .Message p{
    margin-bottom: var(--space-20);
}
#HORSE_AMENITIES .Contents .Images{
    display: flex;
    column-gap:15px;
}
@media screen and (min-width:1024px){
    #HORSE_AMENITIES .Contents .Message{
        max-width: calc(100% - 540px);
        order: 1;
    }
    #HORSE_AMENITIES .Contents .Images{
        max-width: 500px;
        order: 2;
    }
}

/* ------------------------------------------------------------------------
    HISTORY
------------------------------------------------------------------------  */
/***** TOP *****/
#HISTORY_TOP .Top_Image{
    position: relative;
    display: flex;
    row-gap:30px;
    justify-content: space-between;
    flex-wrap: wrap;
}
#HISTORY_TOP .Top_Image > *{
    width: 100%;
}
/* Image_Box */
#HISTORY_TOP .Image_Box{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
#HISTORY_TOP .Image_Box .Item:nth-child(1){
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
#HISTORY_TOP .Image_Box .Item:nth-child(2){
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
#HISTORY_TOP .Image_Box .Item:nth-child(3){
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
#HISTORY_TOP .Image_Box .Item p {
    font-size: 12px;
    line-height: 1.3em;
}
/* Illust */
#HISTORY_TOP .Illust_box{
    
}
/* SINCE */
#HISTORY_TOP .Since {
    line-height: 1.5em;
    letter-spacing: .05em;
    text-shadow: 0 0 1rem rgba(0,0,0,.6);
    color: #fff;
    font-family: 'Noto Serif JP', sans-serif;
}
#HISTORY_TOP .Since span{
}
/* Message */
#HISTORY_TOP .Top_Message {
    font-weight: 500;
    font-size: 1.25em;
    line-height: 1.5em;
    margin-top: .75em;
}
@media screen and (max-width:768px){
    /* Image Box */
    #HISTORY_TOP .Image_Box{
        order: 2;
    }
    /* Illust */
    #HISTORY_TOP .Illust_box {
        order: 1;
    }
    
    /* Since */
    #HISTORY_TOP .Since {
        font-size: clamp(50px, 1vw, 80px);
        text-shadow: 0 0 .5rem rgba(18,155,122,1);
    }
    #HISTORY_TOP .Since span{
        font-size: clamp(60px, 1vw, 150px);
    }
}
@media screen and (min-width:769px){
    /* Image Box */
    #HISTORY_TOP .Image_Box{
        position: relative;
        max-width: 47.5%;
    }
    /* Illust */
    #HISTORY_TOP .Illust_box {
        position: absolute;
        right: 0;
        top: 0;
        z-index: -2;
        width: 47.5%;
    }
    /* Since */
    #HISTORY_TOP .Since {
        font-size: clamp(80px, 1vw, 160px);
        text-shadow: 0 0 1.2rem rgba(18,155,122,1);
    }
    #HISTORY_TOP .Since span{
        font-size: clamp(160px, 1vw, 320px);
    }
}

/***** Products in the early days *****/
#HISTORY_TOP .Contents{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#HISTORY_TOP .Contents > *{
    width: 100%;
}
#HISTORY_TOP .Contents .Images{
    max-width: 450px;
    display: flex;
    column-gap:15px;
    margin-bottom: 30px;
}
#HISTORY_TOP .Contents .Images >*{
    flex: 1;
}
#HISTORY_TOP .Contents .Image p,
#HISTORY_TOP .Contents .Images p{
    font-size: 12px;
    line-height: 1.3em;
}

#HISTORY_TOP .Contents .Image img{
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}
@media screen and (max-width:768px){
    #HISTORY_TOP .Contents .Message{
        order: 2;
    }
    #HISTORY_TOP .Contents .Image{
        order: 1;
        margin-bottom: 30px;
    }
}
@media screen and (min-width:769px){
    #HISTORY_TOP .Contents .Message{
        width:calc(100% - 290px);
    }
    #HISTORY_TOP .Contents .Image{
        width: 250px;
    }
}
/***** Products in the early days *****/
#HISTORY_TOP .threading_machines img{
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/***** HISTORY LIST *****/
.History_List {}
.History_List .Item{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.History_List .Item > *{
    width: 100%;
    box-sizing: border-box;
    padding: .5em;
}
@media screen and (max-width:768px){
    .History_List .Item > *:nth-child(1){
        background: var(--sub4-color);
    }
}
@media screen and (min-width:769px){
    .History_List .Item:nth-child(odd) > * {
        background: var(--sub4-color);
    }
    .History_List .Item > *:nth-child(1){
        max-width: 150px;
    }
    .History_List .Item > *:nth-child(2){
        max-width: calc(100% - 152px);
    }
}
