@charset "utf-8";
/*
Theme Name: Masudajuku
Author: Soichi Tsukamoto
Description: Theme for Masudajuku website
Version： 1.0.0
*/

/* --- 基本設定 --- */

:root {
    --cta-0: #005093;
    --cta-1: #8c2c47;
    --strong: #877455;
    --box-bg: #f1f1e6;
    --font-0: sans-serif;
    --font-1: sans-serif;
/*"游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;*/
/*"游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;*/
    /*"游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;*/

* {
    box-sizing: border-box;
}

html {
    font-size: 102%;
}

body {
    font-family: var(--font-0);
    /*font-size: 0.95rem;*/
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 0;
}

a {
    color: initial;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    display: inline-block;
    line-height: 0;
}

ul {
    padding: 0;
    list-style-type: none
}

button {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

figure {
    margin-inline: auto;
}

figure img {
    /*object-fit: contain;*/
    width: 100%;
}

p {
    margin-bottom: 2rem;
    margin-top: 2rem
}

strong {
    font-weight: 600;
    color: var(--strong);
}

.center-align {
    text-align: center;
}

br.onlySP {
    display: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
table th, table td {
  border: solid 1px black;
  padding: 0.2rem 1rem;
}

table th {
    color: white;
    font-weight: normal;
    background-color: var(--cta-0);
}

table td a {
    color: #043491;
    text-decoration: underline;
}

.has-text-align-center {
    text-align: center;
}
.single header{
    text-align: center;
}
.single h1 {
    display: inline-block;
    font-size:1.4rem;
    border-bottom: 4px solid var(--cta-0);
    margin: 1rem 0;
}

/* --- structure --- */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

body.IsScrollAllowed {
    overflow: hidden;
}

.header-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0 10px;
    align-items: center;
    max-width: 1200px;
}

.wrap {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

aside {
    width: 350px;
    padding-top: 100px;
    order: 0;
}

aside nav {
    position: sticky;
    top: 100px;
}

main {
    /*margin-inline: auto;*/
    max-width: 750px;
    margin-right: 3rem;
    padding-top: 100px;
    order: 1;
}

.contents {
    padding: 2rem 100px 3rem;
}

footer nav {
    padding-top: 22px;
    padding-bottom: 30px;
    padding-right: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (width < 1200px) {

    /* ここからサイドバーなし1カラムに */
    aside {
        display: none;
    }

    main {
        margin-inline: auto;
    }

    footer nav {
        padding-right: 0;
    }
}

@media screen and (width < 750px) {

    /* ここからカード幅より狭く、コンテンツ幅維持しつつ左右余白調整 */
    .contents {
        padding-inline: calc((100% - 550px) / 2);
    }
}

@media screen and (width < 550px) {

    /* ここからコンテンツ幅自体が狭くなる、左右最低限20pxの余白確保 */
    .contents {
        padding-inline: 20px;
    }
}



/* --- モジュール＆パーツデザイン　----*/

.header {
    position: fixed;
    width: 100%;
    top: -87px;
    left: 0;
    z-index: 3;
    padding-inline: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #fff;
    transition: .3s;
}

.header.Show {
    top: 0;
}

.header-wrap {
    margin-inline: auto;
}

.header-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    line-height: 1;
    margin-left: 1rem;
    margin-right: 0.5rem;
}

.header-top figcaption {
    margin-bottom: 4px;
    font-size: .75rem;
    text-align: center;
    padding-bottom: .2rem;
}

.header-top figure {
    margin-top: 0;
    margin-right: .3rem;
    margin-bottom: 0;
}

.header-top-logo {
    width: 111px;
    margin: 0;
}

.tag-box {
    display: flex;
    gap: 0 5px;
    font-family: var(--font-1);
}

.target-tag {
    font-size: .75rem;
    text-align: center;
    display: inline-block;
    padding: 7px;
    line-height: 1;
    color: #fff;
    min-width: 70px;
}

.target-tag--blue {
    background-color: var(--cta-0);
}

.target-tag--brown {
    background-color: var(--strong);
}

.menu-button {
    position: relative;
    width: 17px;
    height: 3px
}

.menu-button span {
    position: absolute;
    display: block;
    width: 3px;
    height: 100%;
    background-color: #000;
    border-radius: 5px;
    transition: .3s
}

.menu-button span:first-of-type {
    right: 0
}

.menu-button span:nth-of-type(2) {
    right: 7px
}

.menu-button span:nth-of-type(3) {
    left: 0
}

.menu-button-wrap {
    display: none;
    place-items: center;
    width: 32px;
    height: 32px;
    /*border: 1px solid #000;*/
    border-radius: 32px;
    background: var(--box-bg);
}

.menu-button-wrap.Open .menu-button span {
    position: absolute;
    display: block;
    width: 100%;
    height: 1px
}

.menu-button-wrap.Open .menu-button span:first-of-type {
    top: 0;
    transform: translateY(1px) rotate(-45deg)
}

.menu-button-wrap.Open .menu-button span:nth-of-type(2) {
    opacity: 0;
    transform: translateX(20px)
}

.menu-button-wrap.Open .menu-button span:nth-of-type(3) {
    right: 0;
    bottom: 0;
    left: inherit;
    transform: translateY(-1px) rotate(45deg);
}

#logo-zkai {
    width: 130px;
    margin-top: 7px;
    margin-right: 20px;
}

.kv {
    padding-inline: 15px;
    background-color: #fff;
    padding-bottom: 35px;
    margin-bottom: 1rem;
}

.kv h1 {
    line-height: 1.7;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 400;
    font-feature-settings: "palt";
    margin-bottom: 2rem
}

.kv-image {
    display: block;
    margin-top: 1.2rem;
    text-align: center;
}

.kv-image img {
    margin-bottom: 0;
}


/* ------ セクション共通 ------ */

.sections-wrap {
    display: grid;
    gap: 20px;
    margin: 1rem 0;
}

.contents {
    background-color: #fff;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 1px 1px 10px 5px rgba(0, 0, 0, .05);
}

.contents .question {
    font-weight: 600;
    font-feature-settings: "palt";
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 2rem 1rem 1rem;
    font-size: 1.2rem;
    line-height: 1.55;
}

.contents .question::before {
    display: block;
    flex-shrink: 0;
    width: 45px;
    height: 67px;
    content: "";
    background: url("img/h2-mark.svg") 0 0/contain no-repeat;
}

.contents .question strong {
    display: contents;
}

.contents h2 {
    font-family: var(--font-0);
    font-weight: 600;
    font-feature-settings: "palt";
    padding: 20px 10px;
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 1.35;
    text-align: center;
    background-color: var(--box-bg);
    text-wrap: balance;
}

.large-arrow {
    width: 37px;
    height: 37px;
    margin-top: 0;
    text-align: center;
    margin-bottom: 2rem;
}

.notes {
    padding: 20px;
    margin-top: 2em;
    margin-bottom: 2em;
    background-color: var(--box-bg);
    font-family: var(--font-0);
    font-weight: 600
}

.notes strong {
    color: #932530
}

.notes a {
    color: var(--cta-0);
    text-decoration: underline
}

.notes p {
    margin: 0;
}




.cta-box {
    display: grid;
    gap: 12px;
    margin-top: 2em;
    font-family: var(--font-1);
    text-align: center;
}

.cta-title {
    font-size: 1rem;
    text-align: center;
}

.cta-text {
    font-size: .8rem;
    max-width: 400px;
    margin: .5rem auto;
    text-align: left;
}

.cta-button {
    display: inline-block;
    line-height: 1;
    margin: 0 auto;
    padding: 15px 0 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .2);
    text-decoration: none;
    max-width: 280px;
    color: #fff;
    position: relative;
    width: 100%;
    background-color: var(--cta-0);
    text-align: center;
}

.cta-button::after {
    display: block;
    transform: translateY(-50%);
    position: absolute;
    content: "";
    top: 50%;
    right: 20px;
    width: 17px;
    aspect-ratio: 1/1;
    background: url("img/cta-icon.svg") center center/contain no-repeat;
    content: "";
}

.cta-button:hover {
    text-decoration: none;
    background-color: rgb(0 107.7551020408 198);
}

.red {
    background-color: var(--cta-1);
}

.red:hover {
    text-decoration: none;
    background-color: rgb(178.8043478261 56.1956521739 90.6793478261);
}

.campaign-title p {
    font-family: var(--font-1);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: .5rem auto;
    --s: 1.8em;
    --d: .8em;
    --c: .8em;
    padding: 0 calc(var(--s) + .5em) var(--d);
    line-height: 1.2;
    padding-top: 1rem;
    padding-bottom: 2rem;
    text-align: center;
    background: conic-gradient(at left var(--s) bottom var(--d), #0000 25%, #0008 0 37.5%, #0004 0) 0/50% 100% no-repeat, conic-gradient(at right var(--s) bottom var(--d), #0004 62.5%, #0008 0 75%, #0000 0) 100%/50% 100% no-repeat;
    clip-path: polygon(0 var(--d), var(--s) var(--d), var(--s) 0, calc(100% - var(--s)) 0, calc(100% - var(--s)) var(--d), 100% var(--d), calc(100% - var(--c)) calc(50% + var(--d)/ 2), 100% 100%, calc(100% - var(--s) - var(--d)) 100%, calc(100% - var(--s) - var(--d)) calc(100% - var(--d)), calc(var(--s) + var(--d)) calc(100% - var(--d)), calc(var(--s) + var(--d)) 100%, 0 100%, var(--c) calc(50% + var(--d)/ 2));
    background-color: #cc333f;
    width: fit-content
}






/* ------ 校舎ページ ------ */

.kosha-info {
    margin: 4rem 0 3rem 0;
}

.kosha-info header {
    display: flex;
    gap: 0 8px;
    align-items: center;
    justify-content: center;
}

.kosha-info header div {
    margin-left: .5rem;
    margin-bottom: 1rem;
}

.kosha-info-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.kosha-info table {
    width: 100%;
    margin-top: 10px
}

.kosha-info table a {
    color: var(--cta-0);
    text-decoration: underline;
}

.kosha-info table a:hover {
    text-decoration: none;
}

.kosha-info table a[href^="tel:"] {
    color: inherit;
    text-decoration: inherit;
    pointer-events: none;
    cursor: default;
}

.kosha-info table td,
.kosha-info table th {
    padding-top: 3px;
    padding-bottom: 3px;
    font-weight: inherit;
    vertical-align: top;
    text-align: left
}

.kosha-info table th {
    width: 26%
}

.message {
    padding: 15px;
    margin-top: 30px;
    background-color: var(--box-bg)
}

.message-panel {
    display: flex;
    flex-direction: column
}

.message-panel-button-wrap {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    order: 2;
    padding-top: 12px;
    margin-top: 12px;
    text-align: center;
    cursor: pointer;
    list-style: none;
    border-top: 1px solid #000
}

.message-panel-button-icon {
    position: relative;
    width: 12px;
    height: 12px
}

.message-panel-button-icon span {
    position: absolute;
    top: 50%;
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    transform: translateY(-50%);
}

.message-panel-button-icon span:nth-of-type(2) {
    transform: rotate(90deg);
}

.message-panel[open] .message-panel-button-icon span:nth-of-type(2) {
    opacity: 0;
}





/* ------ 横スクロールBOX ------ */

.scroll-box {
    position: relative;
}

.scroll-images {
    padding-bottom: 10px;
    margin-top: 1em;
    overflow: auto hidden;
    display: flex;
    gap: 10px;
}

.scroll-images figure {
    position: relative;
    flex-shrink: 0;
    max-width: 280px;
    margin-top: 0;
}

.scroll-images figure img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.scroll-images figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    font-size: .75rem;
    line-height: 1.3;
    color: #fff;
    background-color: rgb(0 0 0 / 60%);
}

.scroll-images::-webkit-scrollbar {
    height: 12px;
    padding-top: 10px;
    background-color: var(--box-bg);
    --bg-opacity: 1;
    border-radius: 9999px;
}

.scroll-images::-webkit-scrollbar-thumb {
    background-color: var(--cta-0);
    border-radius: 9999px;
}



.scroll-table-wrap {
    width: 540px;
    margin: 0;
    padding-bottom: 10px;
    white-space: nowrap;
    overflow: auto hidden;
}

.scroll-table-wrap::-webkit-scrollbar {
    height: 12px;
    padding-top: 10px;
    background-color: var(--box-bg);
    --bg-opacity: 1;
    border-radius: 9999px;
}

.scroll-table-wrap::-webkit-scrollbar-thumb {
    background-color: var(--cta-0);
    border-radius: 9999px;
}


.scroll-table-wrap {
    width: 540px;
    border-collapse: collapse;
}

.scroll-table-wrap figure {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.scroll-table-wrap table {
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.scroll-table-wrap table td,
.scroll-table-wrap table th {
    padding: 5px 10px;
    font-size: .75rem;
    line-height: 1.5;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.scroll-table-wrap table th {
    font-size: .75rem;
    font-weight: inherit;
    text-align: left;
}

.scroll-table-wrap table tr {
    background-color: #e2f0ff;
}

.scroll-table-wrap table tr:nth-child(odd) {
    background-color: var(--box-bg);
}

.scroll-table-wrap table thead {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    background-color: #fff;
}

.scroll-table-wrap table .scroll-table-wrap table-title {
    font-weight: 600;
}


.scroll-hint-icon {
    position: absolute;
    top: 50%;
    right: -15px;
    display: block;
    width: 30px;
    height: 30px;
    background: url("img/right.svg") center center/26% no-repeat #fff;
    border-radius: 100vh;
    box-shadow: 0 0 5px var(--cta-0);
    transform: translateY(-50%);
    animation: 2s infinite scroll-hint-animation;
}

.scroll-hint-icon img {
    line-height: 1;
}

@keyframes scroll-hint-animation {

    0%,
    100% {
        right: -15px;
    }

    50% {
        right: -7px;
    }
}


.kosha-list li{
    background: var(--box-bg);
    padding: 0.3rem 1rem;
    border: solid 1px #333;
    border-bottom: none;
}
.kosha-list li:last-child{
    border-bottom: solid 1px #333;
}

.kosha-list li:nth-child(even){
    background: #e2f0ff;
}


/* ------ 合格実績 ------ */

.gokaku-box {
    margin-top: 1em;
    font-family: var(--font-1);
}

.gokaku-box header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gokaku-label {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 1rem;
}

.gokaku-label::before {
    display: block;
    flex-shrink: 0;
    width: 40px;
    height: 38px;
    content: "";
    background: url("img/sakura.svg") 0 0/contain no-repeat;
}

.gokaku-number {
    font-size: 1.6875rem;
    color: var(--cta-1);
}

.gokaku-number::after {
    font-size: 88.8%;
    color: #000;
    content: "合格";
}

.gokaku-number .unit {
    font-size: 75%;
    color: #000;
}

.gokaku-box ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 8px;
    margin-top: 15px;
}

.gokaku-box ul img {
    display: block;
    width: 100%;
    aspect-ratio: 99/59;
    -o-object-fit: cover;
    object-fit: cover;
}

.gokaku-list-label {
    text-align: center;
}

.gokaku-list-number {
    font-size: 1.125rem;
    line-height: 1;
    color: var(--cta-1);
    text-align: center;
}

.gokaku-list-number::after {
    font-size: 77.7%;
    color: #000;
    content: "名";
}

/* ------ 2カラム ------ */

.two-col {
    display: flex;
}

.two-col+.two-col {
    border-top: 1px dashed #333;
}

.two-col img {
    width: 120px;
    margin: .5rem .5rem .5rem 0;
}

.two-col p {
    padding: .5rem 0;
}

.two-col-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4rem;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: .5rem;
}


/* ------ シンプル ------ */

.plain {
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 5px;
}

.plain table {
    width: 100%;
    padding-inline: 15px;
    margin-top: 15px;
    text-decoration: none;
}

.plain table a {
    color: revert;
    -webkit-text-decoration: revert;
    text-decoration: revert;
}

.plain table td,
.plain table th {
    vertical-align: top;
}

.plain table th {
    width: 35%;
    font-weight: inherit;
    text-align: left;
}

.plain h2 {
    padding-bottom: 15px;
    border-bottom: 1px solid #000;
    background: inherit;
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.plain p {
    margin-top: 20px;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.75;
}


/* ------ フッター ------ */

.pageup {
    position: fixed;
    right: 15px;
    bottom: -35px;
    z-index: 1;
    transition: .3s;
}

.pageup.Show {
    bottom: 15px;
}

.pageup-icon {
    width: 30px;
}

footer {
    font-family: var(--font-1);
    background-color: var(--box-bg);
    text-align: right;
}

footer nav {
    font-size: 90%;
    padding-right: 15px;
}

footer nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

#footer-zkai {
    width: 100%;
    background: #043491;
    text-align: center;
    padding: 2rem;
}

#logo-zkai-footer {
    width: 150px;
}

/* ------ サイドメニュー ------ */

.sectionMenu {
    padding: 30px 15px;
    margin-bottom: 2rem;
}

.sectionMenu-list {
    line-height: 1.5rem;
    margin-top: 0;
}

.sectionMenu-list li a {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 15px;
    font-size: .9rem;
    font-feature-settings: "palt";
    font-weight: bold;
    background-color: #fff;
    border-bottom: 1px solid #333;
}

.sectionMenu-list li:first-child {
    border-top: 1px solid #333;
}

.sectionMenu-list li a:hover {
    text-decoration: none;
    background-color: #efefef;
}

.sectionMenu-list li a.primary {
    position: relative;
    background-color: var(--box-bg);
}

.sectionMenu-list li a.primary:hover {
    text-decoration: none;
}

.sectionMenu-list li a.primary::before {
    position: absolute;
    top: -10px;
    left: -3px;
    display: block;
    width: 23px;
    height: 23px;
    content: "";
}

.sectionMenu-list li a::after {
    display: block;
    transform: translateY(-50%);
    position: absolute;
    content: "";
    top: 50%;
    right: 16px;
    width: 19px;
    height: 19px;
    background: url("img/menu-arrow.svg") center center/contain no-repeat;
    content: "";
}

/* ------ ハンバーガーメニュー ------ */

.gnavi {
    position: fixed;
    width: 100%;
    height: 100svh;
    background-color: #fff;
    top: -130vh;
    z-index: 2;
    font-family: var(--font-1);
    transition: top .3s;
}

.gnavi.Open {
    top: 0;
    padding-top: 82px;
}

.gnavi-list {
    max-width: 600px;
    margin: 1rem auto 0;
}

.gnavi-list li {
    font-size: 0.9rem;
    font-feature-settings: "palt";
    font-weight: bold;
    line-height: 1;
    letter-spacing: .025em;
    border-top: 1px solid #000;
}

.gnavi-list li:last-child {
    border-bottom: 1px solid #000;
}

.gnavi-list li a {
    position: relative;
    display: block;
    padding: 16px;
}

.gnavi-list li a::after {
    display: block;
    transform: translateY(-50%);
    position: absolute;
    content: "";
    top: 50%;
    right: 16px;
    width: 19px;
    height: 19px;
    background: url("img/menu-arrow.svg") center center/contain no-repeat;
    content: "";
}

.gnavi-list li .primary {
    position: relative;
    background-color: var(--box-bg);
}

.gnavi-list li .primary:hover {
    background-color: #f0ae02;
}

.gnavi-list li .primary::before {
    position: absolute;
    top: -5px;
    left: 8px;
    display: block;
    width: 23px;
    height: 23px;
    content: "";
}

.offer {
    font-size: 90%;
    font-weight: normal;
    margin: 0 0.5rem;
}

.top {
    margin-left: 0.5rem;
}

.panphlet-cover {
    border: solid 1px #aaa;
    margin-top: 2.5rem;
}



/* ------ メディアクエリ ------ */

@media screen and (width < 1200px) {
    #logo-zkai {
        display: none;
    }

    .menu-button-wrap {
        display: grid;
    }

}

@media screen and (width < 550px) {
    br.onlySP {
        display: inline;
    }

    br.onlyPC {
        display: none;
    }

    .header {
        padding-inline: 15px;
    }

   table th, table td {
        padding: 0;
    }

    .kosha-info table a[href^="tel:"] {
        color: var(--cta-0);
        text-decoration: underline;
        pointer-events: auto;
        cursor: pointer;
    }

    .scroll-table-wrap {
        width: 315px;
        margin-top: 1em;
        margin-inline: auto;
    }
}



/* ------ 動画BOX（未使用） ------ */

.ly-tm-movie-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    margin-top: 1em;
}

.ly-tm-movie-wrap iframe {
    width: 100%;
    height: 100%;
}

.new {
    display: inline-block;
    font-size: .6rem;
    color: #fff;
    background-color: #c30d01;
    border-radius: 2px;
    padding: 2px 4px;
    margin-bottom: 2px;
    line-height: 1.4;
    vertical-align: middle;
}