* {box-sizing:border-box;}


#container {
    max-width: 960px;
    margin: 0 auto;
    overflow-x:hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

main {
    padding: 15px;
}


h2 {
    background-color: #f90;
    color: #fff;
    text-align: center;
    font-size: 200%;
    padding: 5px 15px;
    margin-bottom: 15px;
}

h3 {
    width: 100%;
    margin-top: 40px;
    font-size: 175%;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 5px solid #f90;
}

h4 {
    border-left: 8px solid #f90;
    background-color: #eee;
    margin: 1em 0 1em 5px;
    padding-left: 0.5em;
    font-size: x-large;
    font-weight: bold;
}

h5 {
    font-size: large;
    font-weight: bolder;
}

dl {
    padding: 10px;
}

dt {
    width: 7em;
    margin: 10px 0;
    padding-left: 2em;
    font-weight: bold;
}


dd {
    width: calc(100% - 10em);
    margin: 10px 0;
    padding-left: 3em;
    font-size: large;
    text-align: left;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}


/*=============================================================================================
ヘッダー関係
=============================================================================================*/
header {
    margin-top: -5px;
    margin-left: 12px;
    padding-top: 10px;
    z-index: 1;
}

header #openBtn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: xx-large;
}

header #closeBtn {
    font-size: xx-large;
}

h1 img {
    width: 85%;
}

#active {
  scroll-margin-top: 130px; /* 固定ヘッダーの高さに合わせて調整 */
}




@media(max-width:959px) {
    header {
        position: fixed;
        width: 98%;
        background-color: #fff;
    }
}

@media(min-width:960px) {
    header {
        position: fixed;
        background-color: #fff;
    }
}

/*=============================================================================================
ナビゲーション関係
=============================================================================================*/

@media(max-width:959px) {
    nav {
    padding: 15px;
    background-color: #fff;
    position: absolute;
    width: 270px;
    top: 0;
    right: 0;
    transition: right 1.5s ease;
    }

    nav ul {
        border-top: 1px solid #000;
    }

    nav li {
        border-bottom: 1px solid #000;
    }

    nav ul li:last-child {border-right: none;}

    nav a {
        display: block;
        color: #000;
        text-decoration: none;
        padding: 0.5em 1em;
        margin: 0 10px;
    }

    nav a:hover {
        background-color: rgb(254, 254, 148);
    }

    nav p {
        text-align: right;
    }

    .open {
        right: -300px;
    }
}

@media(min-width:960px) {
    header h1 {
        width: 430px;
    }

    nav {
        width: calc(100% - 450px);
    }

    header #openBtn {
        display: none;
    }

    .flex960 {
        display: flex;
    }

    nav #closeBtn {
        display: none;
    }

    nav li {
        width: 25%;
    }

    nav ul li a {
        width: 8em;
        text-decoration: none;
        display: block;
        padding: 1em;
        color: #000;
        text-align: center;
        border-bottom: 3px solid #f80;
    }

    nav a:hover {background-color: rgb(255, 197, 131);}
}

/*=============================================================================================
柔道部欄関係
=============================================================================================*/
#theme {
    margin-top: 100px;
}

#theme p {
    font-size: 125%;
    padding: 0 0.5em 20px;
}

.icon {
    text-align: center;
}

.insta_btn {
  display: inline-block;
  text-align: center;/*中央揃え*/
  color: #2e6ca5;/*文字色*/
  font-size: 20px;/*文字サイズ*/
  text-decoration: none;/*下線消す*/
  margin: 0 10px;
}

.insta_btn:hover {/*ホバー時*/
  color:#668ad8;/*文字色*/
  transition: .5s;/*ゆっくり変化*/
}

.insta_btn .insta{/*アイコンの背景*/
  position: relative;/*相対配置*/
  display: inline-block;
  width: 50px;/*幅*/
  height: 50px;/*高さ*/
  background: -webkit-linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
  background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;/*グラデーション①*/
  overflow: hidden;/*はみ出た部分を隠す*/
  border-radius: 13px;/*角丸に*/

}

.insta_btn .insta:before{/*グラデーションを重ねるため*/
  content: '';
  position: absolute;/*絶対配置*/
  top: 23px;/*ずらす*/
  left: -18px;/*ずらす*/
  width: 60px;/*グラデーションカバーの幅*/
  height: 60px;/*グラデーションカバーの高さ*/
  background: -webkit-radial-gradient(#ffdb2c 10%, rgba(255, 105, 34, 0.65) 55%, rgba(255, 88, 96, 0) 70%);
  background: radial-gradient(#ffdb2c 10%, rgba(255, 105, 34, 0.65) 55%, rgba(255, 88, 96, 0) 70%);/*グラデーション②*/
}

.insta_btn .fa-instagram {/*アイコン*/
  color: #FFF;/*白に*/
  position: relative;/*z-indexを使うため*/
  z-index: 2;/*グラデーションより前に*/
  font-size: 35px;/*アイコンサイズ*/
  line-height: 50px;/*高さと合わせる*/
}

@media(max-width:599px) {
    #theme img {
    width: 100%;
    margin-bottom: 20px;
}
}



@media(min-width:600px) {
    #theme img {
    width: 49%;
    margin-bottom: 20px;
}
}



/*=============================================================================================
関連サイト関係
=============================================================================================*/
#relation {
    margin-top: 40px;
}
@media(max-width:599px){
    #relation ul {
        display: flex;
        flex-wrap: wrap;
    }

    #relation li {
        width: 45%;
        margin: 20px auto;
        padding: 10px;
    }

    #relation li:first-child {
        width: 100%;
        padding-left: 20px;
    }

    #relation li:nth-child(2) {
        height: 200px;
    }

    #relation li:nth-child(4) {
        margin-top: -50px;
        height: 210px;
    }

    #relation li:nth-child(5) {
        margin-top: 20px;
    }

    #relation li:nth-child(6) {
        margin-top: -30px;
        height: 180px;
    }

    #relation li:nth-child(7) {
        margin-top: 20px;
        height: 130px;
    }

    #relation a {
        display: block;
        text-decoration: none;
        color: #000;
    }

    #relation a:hover {color: #f60;}

    #relation img {
        width: 100%;
        margin-top: 10px;
    }
}


@media(min-width:600px){
    #relation ul {
        display: flex;
        flex-wrap: wrap;
    }

    #relation li {
        width: 45%;
        margin: 10px auto;
        text-align: center;
    }

    #relation li:first-child {
        width: 40%;
    }


    #relation li:nth-child(2) {
        width: 25%;
    }

    #relation li:nth-child(3) {
        width: 25%;
    }

    #relation li:nth-child(4) {
        width: 25%;
    }

    #relation li:nth-child(5) {
        width: 25%;
    }

    #relation li:nth-child(6) {
        width: 25%;
    }

    #relation li:nth-child(7) {
        width: 25%;
    }

    #relation a {
        display: block;
        text-decoration: none;
        color: #000;
    }

    #relation a:hover {color: #f60;}
    

    #relation img {
        width: 100%;
        margin-top: 10px;
    }
}

/*=============================================================================================
フッター関係
=============================================================================================*/
footer {
    margin: 40px auto 0;
    text-align: center;
    background-color: #ff6000;
    color: #fff;
}