@charset "utf-8";

/*===================
    お問い合わせの前に（inquiry/before）CAN-16871
    inquiry.css の上に重ねる。#inq_before の中だけに効かせる
===================*/
@media screen and (min-width: 761px) {
    #container {
        width: 90%;
        max-width: 980px;
    }
}
#inq_before {
    line-height: 1.8;
}
/* common.css が section 等に display:block を指定しているため、hidden 属性を必ず効かせる */
#inq_before [hidden] {
    display: none !important;
}
#inq_before p {
    margin: 0;
}
#inq_before a {
    color: #028AFF;
}
#inq_before a:hover {
    color: #777;
}
#inq_before .before_read {
    background: #f7f7f7;
    padding: 1.5em 4%;
}
#inq_before h3.title {
    font-size: 1.05em;
    font-weight: bold;
    text-align: left;
    margin: 0 0 .5em;
}
#inq_before h4 {
    border-top: 1px solid #e3e3e3;
    padding-top: 1em;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.4;
    margin:3em 0 1em;
    position: relative;
    &:before {
        background: #333;
        content: "";
        display: block;
        position: absolute;
        height: 1px;
        top: 0;
        left: 0;
        width: 160px;
    }
}
#inq_before .section {
    margin-bottom: 48px;
}
#inq_before .caution {
    color: #cc0000;
    padding-left: 1em;
    text-indent: -1em;
    font-size: .9em;
}
#inq_before .caution:before {
    content: "●";
    font-size: .75em;
    padding-right: .3em;
}
#inq_before .bold {
    font-weight: bold;
}
#inq_before .note {
    color: #555;
    font-size: .85em;
    line-height: 1.7;
    margin-top: 8px;
}
#inq_before ol {
    margin: 8px 0;
    padding-left: 1.6em;
}
#inq_before ol li {
    margin: 4px 0;
}
#inq_before .list {
    margin-top: 8px;
}

/* 検索 */
#inq_before .search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
#inq_before .search input {
    flex: 0 1 680px;
    margin: 0 auto;
    min-width: 0;
    font: inherit;
    font-size: 1em;
    padding: 8px 16px 8px 40px;
    /* 左端に虫眼鏡アイコン（SVG を埋め込み） */
    background: #fcfcfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px 18px;
    border: 1px solid #e3e3e3;
    border-radius: 24px;
}
#inq_before .search input::placeholder {
    color: #d3d3d3;
    opacity: 1;
}

/* 困りごとのタイル */
#inq_before .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
#inq_before .tile {
    font: inherit;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    background: #fff;
    color: #222;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 12px 32px 12px 14px;
    height: 72px;
    position: relative;
}
#inq_before .tile[hidden] {
    display: none;
}
#inq_before .tile::after {
    content: "";
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
}
#inq_before .tile:hover {
    background: #f7f7f7;
}
#inq_before .tile:focus-visible {
    outline: 2px solid #028AFF;
    outline-offset: 2px;
}
#inq_before .tile[aria-expanded="true"] {
    background: #efefef;
}
#inq_before .tile .t,
#inq_before .tile .s {
    display: block;
}
#inq_before .tile .s {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}
#inq_before .tile.school .s {
    color: #cc0000;
}
#inq_before .empty {
    color: #777;
    margin-top: 10px;
    font-size: .9em;
}

/* 答え */
#inq_before .answer {
    border: 1px solid #e3e3e3;
    padding: 28px 4%;
    margin-top: 28px;
}
#inq_before .answer:focus {
    outline: none;
}
#inq_before .ans_cap {
    font-weight: bold;
    font-size: 1.3em;
    line-height: 1.4;
    margin-bottom: 1.2em;
    position: relative;
    padding: .75em .75em .75em 2.8em;
    background: #eff4f9;
}
#inq_before .ans_cap::before {
    content: "Q";
    color: #fff;
    background: #004F99;
    display: flex;
    width:1.7em;
    height: 1.7em;
    border-radius: 100%;
    font-family: Arial, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
    font-weight: normal;
    position: absolute;
    left: 1em;
    text-align: center;
    top: calc(50% - .85em);
    font-size: .8em;
    justify-content: center;
    align-items: center;
    line-height: 1;
}
#inq_before .ans_lead {
    font-weight: bold;
    margin-bottom: 8px;
}

#inq_before .steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}
#inq_before .addr {
    font-weight: bold;
    word-break: break-all;
}
#inq_before .solved {
    border-top: 1px solid #efefef;
    margin-top: 18px;
    padding-top: 14px;
}
#inq_before .solved .q {
    font-weight: bold;
    margin-bottom: 10px;
}
#inq_before .btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
#inq_before .btn {
    font: inherit;
    font-size: .85em;
    line-height: 1.4;
    cursor: pointer;
    border-radius: 20px;
    padding: 8px 18px;
    border: 1px solid #dfdfdf;
    background: #fff;
    color: #222;
}
#inq_before .btn:hover {
    background: #efefef;
}
#inq_before .after {
    margin-top: 16px;
}
#inq_before .recommend_caution {
    padding: 1em;
    background: #fdf2f2;
    border: 1px solid #f6b9b9;
    color: #ee2525;
}

/* 学校へ直接お問い合わせいただく内容（4つの枠） */
#inq_before .school_topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1em;
}
#inq_before .school_topics > div {
    background: #eff4f9;
    border-radius: 6px;
    padding: 14px 16px;
}
#inq_before .school_topics .tt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 15px;
    color: #004F99;
    margin-bottom: 6px;
}
#inq_before .school_topics .ico {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background: #004F99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
#inq_before .school_topics ul {
    margin: 0;
    padding-left: 1.3em;
    list-style: disc;
    font-size: .93em;
    line-height: 1.7;
}

/* 学校の連絡先 */
#inq_before .sc_card {
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 24px;
}
#inq_before .sc_head {
    padding: 24px 4% 8px;
    font-weight: bold;
    font-size: 1.25em;
    line-height: 1.4;
    text-align: center;
}
#inq_before .sc_body {
    padding: 12px 4% 20px;
}
/* メール・電話のボタン。1つなら全幅、2つなら横に並べる */
#inq_before .sc_btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    row-gap: 16px;
}
#inq_before .sc_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #414141;
    background: #414141;
    color: #fff;
    border-radius: 4px;
    padding: 14px 10% 14px 4%;
    text-decoration: none;
    line-height: 1.4;
    font-weight: bold;
    word-break: break-all;
    width: min(100%, 444px);
    margin: 0 auto;
}
#inq_before .sc_btns .btn_mail {
    background: #fff;
    color: #222;
    svg {
        stroke: #444;
    }
    &:hover {
        background: #f9f9f9;
        color: #111;
    }
}
/* 電話ボタンは日英で番号の書き方が違うことがあるため2つ置いている。display:flex が言語切り替えの display:none に勝たないようにする */
html.lang-ja #inq_before .sc_btn.lang-en,
html.lang-en #inq_before .sc_btn.lang-ja {
    display: none;
}
#inq_before .sc_btn:hover {
    background: #222;
    color: #fff;
}
#inq_before .sc_btn svg {
    flex: none;
    opacity: .4;
}
#inq_before .sc_btn small {
    display: block;
    font-weight: normal;
    font-size: .85em;
    opacity: .85;
}
/* 決まった形で書けない連絡先（contact_html） */
#inq_before .sc_free {
    margin-top: 14px;
}
#inq_before .sc_btns + .sc_free {
    margin-top: 18px;
}
#inq_before .sc_body > :first-child {
    margin-top: 0;
}
#inq_before .sc_hours {
    margin-top: 1em;
    /* padding-top: 12px;
    border-top: 1px solid #efefef; */
    font-size: .9em;
    color: #555;
    text-align: center;
}
#inq_before .sc_body > .sc_hours:first-child {
    padding-top: 0;
    border-top: none;
}

/* 問い合わせフォームへ */
#inq_before .btn_form {
    display: block;
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 1em auto 0;
    padding: 14px;
    border-radius: 4px;
    background: #414141;
    color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}
#inq_before .btn_form:hover {
    background: #222;
    color: #fff;
}
/* #inq_before .btn_form.small {
    width: 300px;
    margin: 8px 0 0;
    padding: 10px;
} */

/*===================
    スマホのとき
===================*/
@media screen and (min-width: 0px) and (max-width: 760px) {
    #inq_before h4 {
        font-size: 1.15em;
    }
    #inq_before .school_topics {
        grid-template-columns: 1fr;
    }
    #inq_before .section {
        padding: 0;
    }
    #inq_before .grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    #inq_before .tile {
        height: auto;
        font-size: 1em;
    }
    #inq_before .ans_cap {
        font-size: 1.2em;
    }
    #inq_before .answer {
        padding: 16px 5%;
    }
    #inq_before .btn {
            padding: 7px 14px;
    }
    #inq_before .sc_btns {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 10px;
    }
    #inq_before .sc_hours {
        text-align: left;
    }
}
