@charset "UTF-8";

body {
    margin: 0;
    font-family: serif;
    background-color: #f8ecea;
}

header {
    background-color: #ffffff;
    padding: 0px 0px;
    font-weight: bold;
    text-align: center;
    /*文字位置を中央に*/
}

/* CSSコード */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%
}

.logo a {
    font-size: 24px;
    padding-left: 30px;
}

/*.logo p {
    font-size: 12px;
    vertical-align: 20%;
    line-height: 1;
    padding-top: 5px;
}*/

/* ここから下がハンバーガーメニューに関するCSS */

/* チェックボックスを非表示にする */
.drawer_hidden {
    display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
    display: flex;
    height: 60px;
    width: 100px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    /* 重なり順を一番上にする */
    cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #333;
    transition: 0.5s;
    position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
    bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
    top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked~.drawer_open span {
    background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked~.drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer_input:checked~.drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* メニューのデザイン*/
.nav_content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    /* メニューを画面の外に飛ばす */
    z-index: 99;
    background: #fff;
    transition: .5s;
}

/* メニュー黒ポチを消す */
.nav_list {
    list-style: none;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked~.nav_content {
    left: 0;
    /* メニューを画面に入れる */
}

/*メニュー画面の位置の調整*/
.nav_item_special {
    display: flex;
    justify-content: center;
}

.nav_item_special p {
    margin: 0;
    margin-top: 3px;
}

details {
    width: 13em;
    /*11文字分の広さにすることで変化前後での位置の変動を防ぐ*/
}

.nav {
    display: flex;/*インスタとハンバーガーアイコンを横並びにする*/
}
.wide_icon {/*ツイッター・インスタアイコンの配置についての設定*/
    padding-top: 15%;
    padding-left: 5%;    
}

/*メニュー画面の位置の調整ここまで*/

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

a:hover {
    opacity: 0.6;
}

ul {
    /*list-style-type: none;/*制作情報論ではlistで・をつけたくないので、細かくタグをつけて設定する
    /*padding: 0;*/
    text-align: start;/*リストの処理とかぶっていたら細分化する必要があるかも*/
}
.nav_list {
    text-align: center;
}

.middle {
    background-color: #f8ecea;
    padding: 60px 30px;
    padding-bottom: 20px;
}

.middle p {
    text-align: center;
}

.middle a {
    text-decoration: underline;
}

/*.middle p {
    text-align: center;
}*/

.midashi {
    border-radius: 4px;
}

.midashi h1 {
    text-align: left;
    margin: 0;
}

.midashi p {
    text-align: right;
    margin: 0;

    line-height: 1;
}

h1 {
    font-size: 28px;
}

h3 {
    margin: 0;
}

h4 {
    margin: 0;
}

.red {
    /*赤文字*/
    color: #ff0000;
}

span {
    /*太字*/
    font-weight: bold;
}

.center h3 {
    text-align: start;
    font-size: 20px;
    padding-bottom: 10px;
}
.center h4{/*参考書の説明の文字の設定*/
    text-align: center;
    font-size: 20px;
}

.serch_botton {
    border: solid 1px #000000;
    border-radius: 10px;
    background-color: #ffffff;
    margin: 10px;
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
    padding: 5px 5px;
    /*上下*/
    margin-bottom: 30px;
}

article {
    background-color: #ffffff;
    padding: 10px 30px;
    padding: 20px 30px;
    /*縦・横*/
    margin: 15px, 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.induction_botton {
    /*トップページの誘導ボタンを丸く囲むための指示*/
    margin: 0;
    border: solid 1px #000000;
    border-radius: 10px;
    background-color: #ffffff;
    margin-bottom: 10px;
    margin-left: 5%;
    margin-right: 5%;
    text-align: center;
    /*width: 90%;*/
}

article h2 {
    text-align: center;
}

article p {
    /*2023年度の場所*/
    margin: 0;
    text-align: left;
}

.profile figure {
    text-align: center;
    margin-bottom: 0;
}
time {
    color: #666666;
}

img {
    width: 100%;
    height: auto;
}

.textbook {
    /*参考書写真の大きさの設定*/
    /*margin: 0;
    padding: 10%;後で試す*/
    min-width: 210px;
    max-width: 310px;
}

.profile img {
    border-radius: 50%;
    border: solid 1px #000000;
    width: 100px;
}
.profile p {
    font-size: 12px;
}
.profile_start p {
    text-align: start;
}


/*テーブルについての設定*/
th,
td {
    border: solid 1px #cccccc;
    padding: 18px;
}

th {
    width: 11em;
    /*四文字分の横幅に設定して勝手に改行しないようにする*/
    text-align: left;
}
.special_table th {/*左の枠を狭くしたtableを使うときに使う*/
    width: 4em;
}

.tyuuouyose {
    text-align: center;
}

.book_explain th {
    width: 5em;
}

.book_explain td {
    width: 13em;
}

.book_explain {
    min-width: 250px;
}

/*表の大きさ調整*/

table {
    border-collapse: collapse;
    /*ボーダーの線を重ねてつなげた形で表示*/
}

aside {
    background-color: #ffffff;
    padding: 20px 30px;
    /*縦・横*/
    margin-bottom: 30px;
}

.underline {
    text-decoration: underline;
}

.explain a {
    text-decoration: underline;
}

.explain p {
    text-align: start;
}

.classinfo th {
    width: 5em;
    /*授業詳細の枠の大きさ調整*/
}

.classinfo td {
    width: 16em;
}

.linkbotton {
    /*先輩の本を探すページに移動させるためのボタン*/
    border: solid 2px #000000;
    padding: 10px 40px;
    border-radius: 10px;
    background-color: #eeeeee;
    margin-top: 10px;
}

/*スクロールについての設定*/
html {
    scroll-behavior: smooth;
}

.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

/*スクロールについての設定ここまで*/

footer {
    background-color: #ffffff;
    padding: 25px 30px;
}

footer p {
    margin: 0;
    padding: 0;
    text-align: center;
    justify-content: center;
}

/*お問い合わせページ*/
input,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

textarea {
    height: 120px
}

input[type="submit"] {
    background-color: #ffaa00;
    border: none;
}

/*お問い合わせページココまで*/

/*ボタンで表示・非表示を変える処理*/

summary {
    font-weight: bold;
}

.new_article {
    /*新着記事一覧の配置*/
    display: flex;
    flex-wrap: wrap;
    /*オーバーフローした記事を次の列に表示させる*/
    justify-content: space-between;
    /*記事を中央に揃える*/
}

.new_article article {
    padding: 0;
    width: 48%;
    flex: none;
    /*横幅と横並びの処理を重ね掛けするために必要な処理*/
    font-size: 10px;
    /*記事の題名の文字を小さくする*/
}
.new_article figure {/*記事の写真の大きさの処理*/
    margin: 0;
    padding: 10%;
}

/*記事それぞれの吹き出しの設定*/
.balloon1-left {
    position: relative;
    display: inline-block;
    margin: 1.5em 0 1.5em 15px;
    /*margin: 5% 0 5% 15px;
    /*修正可能性あり*/
    padding: 7px 10px;
    min-width: 120px;
    max-width: 100%;
    color: #555;
    font-size: 16px;
    background: #e0edff;
    border-radius: 15px;
}

.balloon1-left:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -25px;
    margin-top: -10px;
    border: 15px solid transparent;
    border-right: 15px solid #e0edff;
}

.balloon1-left p {
    margin: 0;
    padding: 0;
}

strong {
    background-color: yellow;
}

/*
.balloon1-right {
    position: relative;
    display: inline-block;
    margin: 1.5em 15px 1.5em 0;
    padding: 7px 10px;
    min-width: 120px;
    max-width: 100%;
    color: #555;
    font-size: 16px;
    background: #e0edff;
    border-radius: 15px;

}

.balloon1-right:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -10px;
    border: 15px solid transparent;
    border-left: 15px solid #e0edff;
}

.balloon1-right p {
    margin: 0;
    padding: 0;
}
*/
.comment-left {
    padding: 0;
    /*padding-right: 20px;*/
    display: flex;
    height: 100px;
    /*max-height: 100px;*/
}
.balloon1-left {
    font-size: smaller;/*吹き出しの文字の間隔を狭くする*/
}
/*
.comment-right {
    padding: 0;
    display: flex;
    margin: 0 0 0 auto;
}
*/
.comment_person {/*吹き出しにうつる人の写真*/
    padding: 0;
    margin: 0;
    width: 100px;
    overflow: hidden;/*オーバーフローした写真部分を非表示にする*/
}

.midashi h1 {
    font-size: 22px;
}

.explain p {
    line-height: 2em;
    margin-bottom: 2.5em;
    font-size: 14px;
}

/*目次に関する設定*/
.l_toc {
    border: solid 1px #000000;
    border-radius: 5px;
    padding-right: 30px;
    width: fit-content;
}

.l_toc ol {
    margin: 0;
}

.l_toc h4 {
    /*目次の文字*/
    text-align: center;
}

.chapter_midashi h3 {
    border: solid 2px #f8ecea;
    border-radius: 5px;
    background-color: #fce7fc;
    padding: 0 10px 0 10px;
    margin: 10px 0 10px 0;
    text-align: center;
}

.conclusion {
    background-color: #fce7fc;
    padding: 5%;
}

.article_table {/*記事における表についての設定*/
    font-size: smaller;
}
/*変えるかも*/
.article_table th {
    width: 40%;
}
.article_table td {
    width: 60%;
}
.article_table {
    text-align: start;
}
.widepic {/*横幅が広い写真に適応してサイズを大きくする*/
    margin: 0;
}

@media (min-width: 600px) {

    /*PC版コンテナ*/
    .middle {
        max-width: 700px;/*800pxから700pxにした*/
        margin-left: auto;
        margin-right: auto;
    }

    article {
        padding-left: 60px;
        padding-right: 60px;
    }
    .midashi h1 {
        font-size: 26px;
    }

    aside {
        padding-left: 60px;
        padding-right: 60px;
    }

    .wide_posision {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }

    .classinfo {
        /*大きさを整える*/
        max-width: 350px;
        margin: 0;
    }

    .classinfo th {
        min-width: 5em;
    }

    .classinfo td {
        min-width: 8em;
    }

    h1 {
        font-size: 40px;
    }

    h3 {
        font-size: 22px;
    }

    p {
        font-size: 20px;
    }

    .center {
        margin: 0;
        margin-top: 20px;/*変えるかも*/
        max-width: 300px;
        margin-right: 20px;/*profileとの隙間をあける*/
        /*授業の大きさを整える*/
    }
    .center h3 {
        text-align: center;
        font-size: 24px;
    }
    .center figure {
        min-width: 130px;
    }
    .tyuuouyose {
        margin-top: 20px;
    }

    aside {
        margin: 0;
        text-align: center;
    }

    .explain {
        margin-top: 20px;
    }
    .explain p {
        font-size: 18px;
    }
    .explain ul {
        font-size: 20px;
    }

    .profile {
        margin-top: 20px;
    }
    .profile p {
        font-size: 18px;
    }
    .article_table {/*記事の表の文字の大きさ*/
        font-size: large;
    }
}