@charset "UTF-8";

:root {
    --color-text: #272727;
    --color-red: #E25858;
    --color-blue: #5D9BEA;
    --color-orange: #F4C5B5;
    --color-gray: #F6F6F6;
    --background-color-white: #FFF9F6;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--color-text);
}

#index {
    background-color: var(--background-color-white);
}

img {
    width: 100%;
}

p {
    font-size: 15px;
    line-height: 1.6;
}

.textAlign_L {
    text-align: left;
}

h2, h3, h4, .btn_contact {
    font-weight: 500;
}

h2 {
    font-size: 32px;
}

h3 {
    color: var(--color-red);
    font-size: 24px;
    margin: 0 0 30px;
}

h4 {
    font-size: 18px;
}

.inner {
    width: 83%;
    margin: 0 auto 100px;
    padding: 90px 0 0;
}

#school .inner, #contact .inner {
    margin: 0 auto;
    padding: 90px 0 100px;
}

h2, h3, h4, p, .toggle_title {
    text-align: center;
}

.content {
    margin: 60px 0 0;
}

.container_card {
    margin: 40px 0 0;
    display: flex;
    justify-content: space-between;
}

.container_card > a {
    display: flex;
}

.card {
    background-color: #FFFFFF;
    filter: drop-shadow(0px 4px 10px rgba(208, 208, 208, 0.5));
    border-radius: 4px;
    width: 100%;
    padding: 12%;
}

.toggle_content li a, #school span {
    color: var(--color-blue);
    text-decoration: underline;
}

#subpage #service .inner {
    padding: 170px 0 0;
}

/* header -------------------------------------  */
header,
header .inner,
header nav ul {
    display: flex;
    align-items: center;
}

header {
    position: fixed;
    width: 100%;
    z-index: 200;
    background-color: var(--color-red);
    color: #FFFFFF;
    height: 80px;
}

header .inner {
    justify-content: space-between;
    padding: 100px 0 0;
}

header img {
    width: 70%;
}

header nav {
    width: 100%;
}

header nav ul {
    justify-content: flex-end;
}

header nav li {
    margin-right: 4%;
    position: relative;
    padding: 0 4px;
}

header nav li:last-child {
    margin-right: 0;
    position: relative;
}

header nav li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.7em;
    width: 0;
    height: 2px;
    background-color: #FFFFFF;
    opacity: 0;
    transition-duration: 0.5s;
}

.email_dummy {
    display: none;
}

@media (hover: hover) {
    nav li:hover::after {
        width: 100%;
        opacity: 1;
    }
}
/* end of header -------------------------------------  */

/* hero -------------------------------------  */
#hero {
    width: 100%;
    padding: 80px 0 0;
}

#hero>div {
    background-image: url(../images/hero.jpg);
    padding: 34.72% 0 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

#hero>div>div {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 5em;
    font-size: 36px;
    margin: auto;
}

#hero p {
    color: #FFFFFF;
    font-size: 100%;
    font-weight: 500;
    text-align: left;
    width: 83%;
    margin: auto;
}

/* end of hero -------------------------------------  */

/* service -------------------------------------  */
#service .inner {
    padding: 0;
    margin: 0 auto;
}

#service > .inner {
    padding: 90px 0 0;
}

#service .wrapper_content:last-child .inner {
    margin: 0 auto 100px;
}

#service .wrapper_content {
    position: relative;
}

#service .wrapper_content::before {
    content: "";
    width: 100%;
    height: 106%;
    position: absolute;
    top: 6%;
    left: -8%;
    right: -8%;
    background: url(../images/bg_dots.png) no-repeat top center;
    margin: auto;
    z-index: -1;
}

#service .content {
    margin: 40px 0 80px;
}

#service .container_card {
    gap: 4%;
}

#service h3::before {
    content: "";
    display: inline-block;
    background-size: contain;
    width: 1.5em;
    height: 1.5em;
    vertical-align: top;
    margin: 0 10px 0 0;
}

#service .ttl_group::before {
    background-image: url(../images/icon_group.png);
}

#service .ttl_individual::before {
    background-image: url(../images/icon_individual.png);
}

#service .card p {
    margin-top: 15px;
}

#service .card span {
    position: relative;
    display: inline-block;
    color: var(--color-red);
    width: calc(100% + 2em);
    margin-left: -1.5em;
}

#service .card span::after {
    content: "";
    position: absolute;
    width: 0.5em;
    height: 0.5em;
    border-top: solid 1px var(--color-red);
    border-right: solid 1px var(--color-red);
    transform: rotate(45deg);
    top: 50%;
    margin-top: calc(-0.4em/2);
    margin-left: 0.5em;
}

#service h4 {
    color: var(--color-red);
}

#service .clients {
    margin: 80px 0 0;
}

#service .clients h4 {
    line-height: 2;
    color: var(--color-text);
}

#service .clients h4 span {
    font-size: 15px;
    font-weight: initial;
}

.borderB_line {
    padding: 0 0 1em;
    border-bottom: 2px solid var(--color-gray);
}

.clients_container {
    width: 70%;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.clients_column {
    width: 50%;
}

.toggle_content {
    width: 60%;
    margin: 0 auto 50px;
}

.toggle_title {
    font-size: 18px;
    width: 120%;
    margin: 0 -10%;
}

.toggle_content .borderB_line {
    border-color: var(--color-red);
}

.toggle_content dd {
    margin: 0 auto;
}

.toggle_content ul {
    padding: 20px 0 0;
}

.clients_column:first-child dd {
    width: 60%;
}

.toggle_content li {
    font-size: 15px;
    padding-bottom: 1em;
    line-height: 1.6;
}

/* end of service -------------------------------------  */

/* school -------------------------------------  */

#school {
    background-color: var(--color-gray);
}

#school h4 {
    font-size: 20px;
}

#school .container_card {
    flex-wrap: wrap;
}

#school .container_card a, .card_empty {
    width: 24%;
}

#school .card, .card_empty {
    margin: 20px 0 0 0;
    padding: 20px;
}

#school .logo_cisdv {
    background-color: #06253D;
}

#school .logo_studyinvictoria {
    width: 50%;
    margin: 0 auto;
    display: block;
}

#school .logo_gvenglish {
    background-color: #4B4A4C;
}


#school .card h4, #school .card p {
    margin: 20px 0 0;
    overflow-wrap: break-word;
}

/* end of school -------------------------------------  */

/* company -------------------------------------  */

#company .content, .staff {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

#company tr {
    margin: 0 0 20px;
    display: inline-block;
    vertical-align: top;
}

#company tr:last-child {
    margin: 0;
}

#company th {
    width: 100px;
    color: var(--color-red);
}

#company td {
    width: 452px;
}

.company_box {
    flex: 1;
}

.staff img {
    filter: drop-shadow(0px 6px 14px rgba(188, 188, 188, 0.5));
}

.staff_left p {
    width: 160px;
    margin: 0 auto 0.8em;
}

.staff_right {
    flex: 1;
}

/* end of company -------------------------------------  */

/* contact -------------------------------------  */

#contact {
    background: url("../images/contact_bg.jpg");
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    color: #FFFFFF;
    text-shadow: 1px 1px 0 var(--color-red);
}

#contact h2 {
    margin-bottom: 40px;
}

.btn_contact {
    margin: 30px auto 100px;
    font-size: 18px;
    color: var(--color-red);
    background-color: #FFFFFF;
    width: 260px;
    line-height: 3em;
    border-radius: 100px;
    text-shadow: none;
}

.btn_contact::before {
    content: url('data:image/svg+xml;utf-8,<svg width="30" height="20" viewBox="0 0 30 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="20" rx="2" fill="%23E25858"/><path d="M25 4.99998L15.6247 12.5002C15.2595 12.7924 14.7405 12.7924 14.3753 12.5002L5 4.99998" stroke="white" stroke-width="2" stroke-linecap="round"/><path d="M5 15.0002L10.7629 10.3335M25 15.0002L19.2371 10.3335" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>');
    vertical-align: middle;
    margin-right: 10px;
}

.copy {
    font-size: 12px;
}

#contact br {
    display: none;
}

/* end of contact -------------------------------------  */

.container_program {
    width: 60%;
    margin: 0 auto;
    padding: 10px 0 0;
}

.container_program p {
    margin-top: 30px;
}


/* for tablet ------------------------------------- */
@media (hover: none) {
    nav li:hover::after {
        width: 0;
    }
    nav li:active::after {
        width: 100%;
        opacity: 1;
    }
}

@media (max-width: 1024px) {

    .clients_container {
        width: 100%;
    }

    #hero>div>div {
        font-size: 30px;
    }
}

@media (max-width: 960px) {
    
    #hero>div>div {
        font-size: 24px;
    }

    .inner {
        width: calc(100% - 4em);
    }
    .company_box {
        flex: auto;
    }

    .staff_name {
        line-height: 1.4;
        margin: 0.5em 0 0;
    }
}

/* for sp ------------------------------------- */

@media (max-width: 767px) {
    
    p {
        font-size: 14px;
    }
    
    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
        margin: 0 0 1em;
    }

    h4 {
        font-size: 16px;
    }

    #hero {
        padding: 60px 0 0;
    }

    #hero>div {
        padding-top: 42%;
    }

    #hero>div>div {
        font-size: 20px;
    }

    .inner {
        margin: 0 auto 40px;
        padding: 40px 0 0;
    }

    #subpage #service .inner {
        padding: 120px 0 0;
    }

    #school .inner, #contact .inner {
        padding: 40px 0;
    }

    .content{
        margin: 20px 0 0;
    }

    .container_card {
        display: block;
        margin: 0;
    }

    #school .container_card a {
        width: 100%;
    }
    
    header {
        height: 60px;
    }

    header .inner {
        margin: 0 auto;
        padding: 0;
        position: relative;
    }

    header img {
        width: 50%;
    }

    header nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        padding-top: 80px;
        background-color: var(--color-red);
        color: #FFFFFF;
        transition-duration: 0.6s;
        overflow-y: auto;
        z-index: 200;
    }

    header.nav_open nav {
        right: 0;
    }

    header nav ul {
        display: block;
    }

    header nav li {
        margin: 0 0 4em;
        text-align: center;
    }

    #hamburger {
        position: absolute;
        right: -12px;
        width: 48px;
        height: 100%;
        cursor: pointer;
        z-index: 300;
    }

    #hamburger>div{
        position: relative;
        height: 20px;
        top: 25%;
    }
    
    #hamburger span {
        position: absolute;
        left: 25%;
        width: 50%;
        height: 2px;
        text-align: center;
        background-color: #FFFFFF;
        transition-duration: 0.6s;
    }

    #hamburger span:nth-of-type(1) {
        top: 0;
    }

    #hamburger span:nth-of-type(2) {
        top: 50%;
        transition-duration: 0.3s;
    }

    #hamburger span:nth-of-type(3) {
        bottom: 0;
    }

    header.nav_open #hamburger span:nth-of-type(1) {
        transform: rotate(45deg);
        top: 50%;
    }

    header.nav_open #hamburger span:nth-of-type(2) {
        width: 0;
        left: 75%;
    }

    header.nav_open #hamburger span:nth-of-type(3) {
        transform: rotate(-45deg);
        top: 50%;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #333;
        opacity: 0;
        z-index: 100;
    }

    header.nav_open .overlay {
        display: block;
        opacity: 0.6;
    }

/* end of general ------------------------------------- */

    #service .wrapper_content::before {
        top: 20%;
        background: url(../images/bg_dots_sp.png) no-repeat top center;
        background-size: 100%;
    }

    #service .clients {
        margin: 40px 0 0;
    }
    
    #service .content {
        margin: 20px 0 40px;
    }

    #service .card {
        margin: 2em auto 0;
    }

    .clients_container dd {
        width: 70%;
    }

    .clients_container, .clients_column, .toggle_content {
        width: 100%;
    }
    
    .toggle_content {
        margin: 0 auto;
    }

    .toggle_content.open {
        margin: 0 auto 1em;
    }

    .toggle_content .borderB_line {
        padding: 1em 0;
        border-top: 2px solid var(--color-red);
        border-bottom: none;
    }
    
    .toggle_title {
        width: 80%;
        margin: 0 auto;
        position: relative;
    }
    
    .toggle_title::before, .toggle_title::after {
        content: "";
        position: absolute;
        left: 2em;
        top: 0;
        bottom: 0;
        margin: auto 0;
        width: 2px;
        height: 0.75em;
        background-color: var(--color-red);
        border-radius: 1em;
        transition-duration: 0.5s;
    }

    .toggle_title::after {
        transform: rotate(90deg);
    }

    .toggle_content ul {
        padding: 0;
    }
    
    .toggle_content dd {
        max-height: 0;
        transition-duration: 0.5s;
        overflow: hidden;
    }
    
    .toggle_content.open dd {
        max-height: 100vh;
        margin: 0 auto 1em;
    }

    .toggle_content.open .toggle_title::before {
        transform: rotate(90deg);
    }
    
    #school .card {
        width: calc(100% + 2em);
        margin: 20px -1em 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        padding: 1em;
    }
    
    #school .card h4 {
        margin: 0;
        text-align: left;
        font-size: 18px;
    }

    #school .card .logo_studyinvictoria {
        width: 25%;
        margin: 0 10px;
    }
    
    #school .card img {
        width: 35%;
    }
    
    #school .card>div {
        width: 60%;
    }

    .card_empty, .staff_name br {
        display: none;
    }

    #company th {
        width: 30%;
    }

    #company .content, .staff, #contact br {
        display: block;
    }

    .company_box {
        margin: 20px 0 0;
    }

    .company_box:last-child {
        margin: 40px 0 0;
    }

    .staff_left .staff_name, .container_program {
        width: 100%;
    }

    .btn_contact {
        margin: 20px auto 60px;
    }
    
    .container_program p {
        margin-top: 1em;
    }

}

@media (max-width: 520px) {

    #hero>div>div {
        font-size: 18px;
    }

    #hero p span {
        background: rgb(62, 9, 9, 0.6);
        line-height: 1.8;
        padding: 2px 4px;
    }
}