@charset "UTF-8";

/* 共通 */
main > section h2 + p {
    margin-bottom: var(--padding-base);
    text-align: center;
}

@media screen and (max-width: 768px) {
    main > section h2 + p {
        margin-bottom: var(--padding-sp-y);
    }
}

/* TOPスライド */
main > section.cover {
    display: grid;
    grid-template-columns: auto clamp(450px, -26.2593px + 61.9323vw, 1200px);
    padding: 0;
    max-height: 100vh;
}

@media screen and (max-width: 768px) {
    main > section.cover {
        display: block;
    }
}

main > section.cover > div {
    padding: 0;
    max-width: none;
}

main > section.cover > .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, -2.921px + 2.9806vw, 40px);;
}

@media screen and (max-width: 768px) {
    main > section.cover > .logo {
        display: none;
    }
}

main > section.cover > .logo figure {
    width: clamp(180px, 42.4739px + 17.8838vw, 300px);;
}

main > section.cover > .logo p {
    font-family: 'Zen Antique Soft';
    font-size: clamp(20px, 6.2474px + 1.7884vw, 32px);
}

main > section.cover > .swiper {
    max-height: 100vh;
}

main > section.cover li {
    display: flex;
}

/* メッセージ */
#message {
    padding: 140px 0;
}

@media screen and (max-width: 768px) {
    #message {
        padding: 80px 0;
    }
}

#message > div {
    position: relative;
    margin: 0 auto;
    padding-top: 0;
}

#message > div:before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    height: 100%;
    background: radial-gradient(ellipse at center,#FFFFFF 0%, rgba(255, 255, 255, 0) 90%);
    content: '';
    z-index: -1;
}

@media screen and (max-width: 768px) {
    #message > div:before {
        width: 100%;
    }
}

#message h2 {
    height: 200px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    #message h2 {
        height: 120px;
    }
}

#message h2::before {
    width: 580px;
    height: 200px;
    border-top: none;
}

@media screen and (max-width: 768px) {
    #message h2::before {
        width: 100%;
        max-width: 360px;
        height: 120px;
    }
}

#message p {
    margin-bottom: 0;
}

/* 創業者 */
#founder > div {
    max-width: none;
    background-color: rgba(255, 255, 255, .75);
}

#founder > div > div {
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    gap: 64px;
    margin: 0 auto;
    width: 100%;
    max-width: var(--content-width);
}

@media screen and (max-width: 768px) {
    #founder > div > div {
        grid-template-columns: 1fr;
        gap: var(--padding-sp-x);
    }
}

#founder > div > div > div:first-child {
    grid-template-rows: auto auto;
}

#founder div h3 {
    display: flex;
    align-items: flex-end;
    padding-bottom: 24px;
    font-family: 'Zen Antique Soft';
    font-size: 56px;
    line-height: 1.2;
    border-bottom: solid 1px #000000;
}

@media screen and (max-width: 768px) {
    #founder div h3 {
        justify-content: space-between;
        padding-right: 40px;
        font-size: 36px;
    }
}

#founder div p {
    padding-top: 24px;
}

#founder div figure {
    flex-wrap: wrap;
    justify-content: flex-start;
}

#founder div figure > img {
    width: 240px;
    height: auto;
    border: solid 1px #EEEEEE;
}

/* フレーベル館の歴史 */
#history ul {
    list-style: none;
    padding: 0;
}

#history ul > li {
    display: flex;
    justify-content: center;
    min-height: 320px;
}

@media screen and (max-width: 768px) {
    #history ul > li {
        min-height: auto;
    }
}

#history ul > li:nth-child(odd) {
    background-color: rgba(255, 255, 255, .75);
}

#history ul > li > div {
    position: relative;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    padding: var(--content-padding);
    width: 100%;
    max-width: var(--content-width);
}

@media screen and (max-width: 768px) {
    #history ul > li > div {
        grid-template-columns: 1fr;
        gap: var(--padding-sp-x);
        padding: var(--padding-sp-x);
    }
}

#history ul > li > div > div:first-child {
    display: grid;
    grid-template-rows: 50% 50%;
}

@media screen and (max-width: 768px) {
    #history ul > li > div > div:first-child {
        grid-template-rows: auto auto;
    }
}

#history ul > li > div > div:nth-child(2) {
    display: flex;
}

#history ul > li > div:before,
#history ul > li > div:after {
    position: absolute;
    content: '';
}

#history ul > li > div:before {
    top: 0;
    left: 50%;
    width: 20px;
    height: 100%;
    transform: translateX(-50%);
    background-color: var(--main-color);
}

@media screen and (max-width: 768px) {
    #history ul > li > div:before {
        left: auto;
        right: var(--padding-sp-x);
        width: 12px;
    }
}

#history ul > li:first-child > div:before {
    top: 50%;
}

@media screen and (max-width: 768px) {
    #history ul > li:first-child > div:before {
        top: 95px;
    }
}

#history ul > li > div:after {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #FFFFFF;
    border: solid 4px var(--title-border-color);
}

@media screen and (max-width: 768px) {
    #history ul > li > div:after {
        top: 80px;
        left: auto;
        right: var(--padding-sp-x);
        width: 24px;
        height: 24px;
        transform: translateX(0);
    }
}

#history ul > li:first-child > div:after {
    top: 50%;
}

@media screen and (max-width: 768px) {
    #history ul > li:first-child > div:after {
        top: 80px;
    }
}

#history ul > li h3 {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 24px;
    font-family: 'Zen Antique Soft';
    font-size: 56px;
    line-height: 1.2;
    border-bottom: solid 1px #000000;
}

@media screen and (max-width: 768px) {
    #history ul > li h3 {
        justify-content: space-between;
        padding-right: 40px;
        font-size: 36px;
    }
}

#history ul > li h3 > span {
    position: absolute;
    top: -50px;
    right: -49vw;
    font-size: 56px;
    opacity: .2;
}

@media screen and (max-width: 768px) {
    #history ul > li h3 > span {
        position: relative;
        top: auto;
        right: auto;
        font-size: 24px;
    }
}

#history ul > li > div p {
    padding-top: 24px;
    padding-right: 50px;
}

@media screen and (max-width: 768px) {
    #history ul > li > div p {
        padding-right: 40px;
    }
}

#history ul > li > div figure {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 24px;
    margin-left: 50px;
}

#history ul > li > div figure.logo {
    gap: 0;
}

@media screen and (max-width: 768px) {
    #history ul > li > div figure {
        margin-left: 0;
    }
}

#history ul > li > div figure > img {
    width: 240px;
    height: auto;
    border: solid 1px #EEEEEE;
}

#history ul > li > div figure.logo > img {
    border: none;
}

#history ul > li:last-child {
    position: relative;
}

@media screen and (max-width: 768px) {
    #history ul > li:last-child {
        justify-content: flex-start;
        padding: var(--padding-sp-x);
        min-height: 240px;
    }
}

#history ul > li:last-child:before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 40%;
    transform: translateX(-50%);
    background-color: var(--main-color);
    content: '';
}

@media screen and (max-width: 768px) {
    #history ul > li:last-child:before {
        left: auto;
        right: var(--padding-sp-x);
        width: 12px;
        height: 50%;
    }
}

#history ul > li:last-child h3 {
    align-items: center;
    padding-bottom: 0;
    font-size: 36px;
    border: none;
}

#history ul > li:last-child span {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-top: solid 30px var(--main-color);
    border-left: solid 18px transparent;
    border-right: solid 18px transparent;
    content: '';
}

@media screen and (max-width: 768px) {
    #history ul > li:last-child span {
        left: auto;
        right: var(--padding-sp-x);
        transform: translateX(-2px);
        border-top-width: 16px;
        border-left-width: 10px;
        border-right-width: 10px;
    }
}

#history ul > li:last-child span:before,
#history ul > li:last-child span:after {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-top: solid 30px var(--main-color);
    border-left: solid 18px transparent;
    border-right: solid 18px transparent;
    content: '';
}

@media screen and (max-width: 768px) {
    #history ul > li:last-child span:before,
    #history ul > li:last-child span:after {
        left: auto;
        border-top-width: 16px;
        border-left-width: 10px;
        border-right-width: 10px;
    }
}

#history ul > li:last-child span:before {
    top: 8px;
}

#history ul > li:last-child span:after {
    top: 46px;
}

@media screen and (max-width: 768px) {
    #history ul > li:last-child span:after {
        top: 32px;
    }
}
