@charset "utf-8";

#mainImg {
    border-bottom: 1px solid var(--main-color);
}
#mainImg .thumbnail {
    width: 80%;
    margin-inline: auto;
}
#contents #mainImg .innerWrap {
    padding-block: 1.5em;
}

#consider .oneWord {
    display: inline-block;
    color: var(--color-white);
    font-size: 1.2vw;
    font-weight: bold;
    background-color: #000;
    border-radius: 50px;
    padding: 5px 2em;
    margin-bottom: 1.2em;
}
#consider h2 {
    font-size: 2.8vw;
    line-height: 1.2;
    margin-bottom: .3em;
}
#consider .considerList {
    text-align: center;
}
#consider .considerList ul {
    display: inline-block;
    text-align: left;
}
#consider .considerList ul > li {
    display: flex;
    align-items: center;
    font-size: 120%;
    gap: 5px;
}

#headquarters {
    padding-top: 2em;
    background-color: var(--main-color);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,.4) inset;
}
#headquarters::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 45px 35px 45px 35px;
    border-color: #fff transparent transparent transparent;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(4px 6px 3px rgba(0, 0, 0, .4));
}
#headquarters > .innerWrap > .detail {
    display: flex;
    justify-content: center;
    gap: 2em;
}
#headquarters > .innerWrap > .detail > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1em;
}
#headquarters > .innerWrap > .detail > div > div:nth-child(1) img {
    width: 100%;
    height: min(100%, 326px);
}
#headquarters > .innerWrap > .detail > div > div:nth-child(3) img {
    width: 100%;
    height: min(100%, 331px);
}
#headquarters .info {
    font-size: 1.5vw;
    font-weight: bold;
    text-align: center;
    margin-block: .8em .6em;
}
/* #headquarters > .innerWrap > .detail > div:nth-child(1) {
    margin-bottom: 1em;
    min-width: 60%;
}
#headquarters > .innerWrap > .detail > div:nth-child(2) {
    flex: 1;
} */
#headquarters h2 {
    color: var(--color-yellow);
    font-size: min(2.8vw, 36pt);
    line-height: 1.2;
}
#headquarters > .innerWrap > .detail > div:nth-child(1) > p {
    font-weight: bold;
    font-size: min(2.0vw, 20pt);
}
#headquarters ul {
    display: flex;
    flex-direction: column;
    gap: .8em;
    width: min(90%, 460px);
    margin-inline: auto;
}
#headquarters ul > li a {
    display: block;
    /* font-size: clamp(10pt, 1.2vw, 12pt); */
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
    background-color: var(--color-yellow);
    border: 1px solid var(--color-yellow);
    border-radius: 50px;
    padding: 10px;
}
#headquarters ul > li a:hover {
    background-color: var(--color-white);
}
#headquarters .img {
    text-align: center;
}

#support .innerWrap .title .oneWord {
    font-size: 1.5vw;
    text-align: center;
}
#support .innerWrap h2 {
    font-size: 2.5vw;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.0em;
}
#support .innerWrap ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-gap: .5em;
}
#support .innerWrap ul > li {
    display: grid;
    text-align: center;
    grid-row: span 5;
    grid-template-rows: subgrid;
    grid-gap: 0;
    background-color: var(--main-color);
    border-radius: 6px;
    padding: 2.5em 5px 1.5em;
    position: relative;
}
#support .innerWrap ul > li::before {
    position: absolute;
    content: url("../img/icon_leaf.svg");
    top: -8.0%;
    left: 50%;
    transform: translateX(-50%);

}
#support .innerWrap ul > li img {
    margin: 0 auto .2em;
}
#support .innerWrap ul > li h3 {
    color: #FFFFB8;
    font-size: 130%;
    line-height: 1.3;
}
#support .innerWrap ul > li p {
    color: var(--color-white);
    font-size: 95%;
    margin-block: .5em;
}
#support .innerWrap ul > li a {
    display: inline-block;
    color: var(--main-color);
    font-size: 95%;
    font-weight: bold;
    text-align: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 50px;
    width: 95%;
    padding: 5px;
    box-sizing: border-box;
}
#support .innerWrap ul > li a:hover {
    color: var(--color-white);
    background-color: var(--main-color);
}

#movie .title h2 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1em;
}

#movie .detail ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 3fr));
    gap: 1em;
}
#movie .detail ul > li {
    font-weight: bold;
    text-align: center;
}
#movie .detail ul > li img,
#movie .detail ul > li video
{
    margin-bottom: 1em;
}

#etcBnr .innerWrap ul {
    display: flex;
    justify-content: center;
    gap: 2em;
}
#etcBnr .innerWrap ul:not(:first-child) {
    margin-top: 1.8em;
}
#etcBnr .webform img {
    width: 100%;
}

#magazine .title h2 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
    margin-bottom: 1em;
}
#magazine .title h2 + p {
    text-align: center;
}
#magazine .detail .img {
    text-align: center;
}
#magazine .detail .new {
    position: relative;
}
#magazine .detail .new::before {
    content: url('../img/icon_new.svg');
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0;
    right: 10px;

}
#magazine .detail .img img {
    width: 100%;
}
#magazine .detail .img p {
    margin-top: .5em;
}

#etcRabbynet .title h2 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}
#etcRabbynet .title h2 + p {
    font-weight: bold;
    font-size: 28px;
    text-align: center;
    margin-bottom: 1.5em;
}

#greeting {
    background-image: url("../img/bg_greeting.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}
#greeting > .innerWrap {
    padding-block: 8em 15em;
}
#greeting > .innerWrap > div {
    color: var(--color-white);
    text-align: center;
    border: 2px solid var(--color-white);
    padding: 2.5em 2em;
}
#greeting > .innerWrap > div h2 {
    font-size: 40px;
    text-decoration: underline;
}
#greeting > .innerWrap > div p > span {
    color: #FFFF00;
}
#greeting > .innerWrap > div .name b {
    font-size: 1.6vw;
}

#etc .title p {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}

#etc .bnrList {
    padding: 0 30px;
}
#etc .bnrList .bnrImg {
    padding: 0 .5em;
}

#etc .bnrList .etcBnrList {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
    margin-block: 1.5em;
}
#etc .bnrList .etcBnrList > li {
    width: min(100%, 305px);
}
#etc .bnrList .etcBnrList > li p {
    font-size: 90%;
}

#etc .akiya {
    display: grid;
    grid-template-columns: auto 1fr 2fr;
    align-items: stretch;
    border: 1px solid var(--main-color);
    border-radius: 6px;
    background-color: var(--color-white);
}
#etc .akiya > div:nth-child(1) {
    color: var(--color-white);
    background-color: var(--main-color);
    padding: .5em;
    display: flex;
    align-items: center;
}
#etc .akiya > div:nth-child(1) > span {
    writing-mode: vertical-rl;
    font-weight: bold;
}
#etc .akiya > div:nth-child(2)
{
    margin: 1em .5em 1em 1em;
}

#etc .akiya > div dl dt {
    font-weight: bold;
}
#etc .akiya > div ul > li a {
    display: block;
    color: var(--color-white);
    text-align: center;
    background-color: #000;
    border: 1px solid #000;
    border-radius: 50px;
    padding: .2em 1em;
    text-decoration: none;
}
#etc .akiya > div ul > li a:not(.noLink):hover {
    color: #000;
    background-color: var(--color-white);
}
#etc .akiya > div ul > li a.noLink {
    border: 1px solid #aaa;
    background-color: #aaa;
    cursor: default;
}

#etc .akiya > div:nth-child(3) {
    padding-left: 1.5em;
    border-left: 1px solid var(--main-color);
    margin: 1em;
}

#etc .akiya > div:nth-child(3) ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    grid-gap: 8px;
}

@media screen and (max-width: 430px){
    #mainImg {
        margin-bottom: 1em;
    }

    /* #sp_consider {
        padding: 1.2em 0 1em;
        background-image: url("../img/bg_consider.png?ts=2403");
        background-repeat: no-repeat;
        background-position: top right;
        background-size: 100%;
    } */

    #consider .oneWord {
        font-size: 3.6vw;
        line-height: 1.2;
        padding: 10px 25px;
    }
    #consider h2 {
        font-size: 7.5vw;
    }
    #headquarters h2 {
        font-size: 8.5vw;
        margin-bottom: .5em;
    }
    #headquarters .info {
        font-size: 100%;
    }
    #headquarters .info::after {
        display: block;
        content: "▼";
    }
    #headquarters > .innerWrap > .detail > div {
        grid-template-columns: repeat(2, 2fr);
    }
    #headquarters > .innerWrap > .detail > div > div:nth-child(1) {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }
    #headquarters > .innerWrap > .detail > div > div:nth-child(2) {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }
    #headquarters > .innerWrap > .detail > div > div:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }
    #headquarters > .innerWrap > .detail > div > div:nth-child(1) img {
        width: 75%;
    }
    /* #headquarters > .innerWrap > .detail > div > div:nth-child(3) img {
        width: 100%;
    } */

    #support .innerWrap .title .oneWord {
        font-size: 5vw;
    }
    #support .innerWrap h2 {
        font-size: 28pt;
        line-height: 1.2;
    }
    #support .innerWrap ul {
        grid-template-columns: 1fr;
        grid-gap: 1em;
    }
    #support .innerWrap ul > li {
        margin: 1em 1.5em;
    }

    #movie .title h2 {
        font-size: 7vw;
    }

    #movie .detail ul {
        flex-direction: column;
        grid-template-columns: 1fr;
        width: 85%;
        margin-inline: auto;
    }
    #movie .detail ul > li img,
    #movie .detail ul > li video
    {
        margin-bottom: .2em;
    }
    #movie .detail ul > li:not(:first-child) {
        margin-top: 1em;
    }

    #contents .topics_list > ul {
        width: 90%;
    }

    #etcBnr .innerWrap ul {
        flex-direction: column;
    }

    #greeting {
        background-size: inherit;
    }
    #greeting > .innerWrap {
        padding-block: 3em;
    }
    #greeting > .innerWrap > div {
        padding: 1em;
        width: 90%;
        margin-inline: auto;
    }
    #greeting > .innerWrap > div h2 {
        font-size: 6.5vw;
    }
    #greeting > .innerWrap > div h2 + p {
        margin-top: 2em;
    }
    #greeting > .innerWrap > div .name b {
        font-size: 6vw;
    }

    #etcBnr {
        padding-block: 2em;
    }
    #etcBnr .innerWrap ul {
        flex-direction: column;
    }
    #etcBnr .innerWrap ul > li {
        text-align: center;
    }
    #etcBnr .webform img {
        width: 70%;
    }
    #etcBnr .koho img {
        width: 85%;
    }

    #etcRabbynet {
        padding-block: 1em;
    }

    #etcRabbynet .title h2 {
        font-size: 7vw;
    }
    #etcRabbynet .title h2 + p {
        font-size: 5vw;
        margin-bottom: 1.5em;
    }

    #magazine .title h2 {
        font-size: 7vw;
    }

    #etc .title p {
        font-size: 7vw;
    }

    #etc .akiya {
        grid-template-columns: 1fr;
        margin-inline: auto;
    }
    #etc .akiya > div dl dt {
        text-align: center;
    }
    #etc .akiya > div:nth-child(1) > span {
        writing-mode: horizontal-tb;
        justify-content: center;
    }
    #etc .akiya > div:nth-child(3) {
        border-left: none;
        border-top: 1px solid var(--main-color);
        padding-top: 1em;
        padding-left: 0;
        margin-top: 1em;
    }
    #etc .akiya > div:nth-child(3) ul {
        grid-template-columns: repeat(2, 1fr);
    }
    #etc .akiya > div ul > li a {
        font-size: 90%;
        padding-inline: .5em;
    }
}