@charset "utf-8";

/* 標準のフォントと文字サイズ */
* {
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 1.16rem;
}

/* グローバルリンククリックで表示された箇所がヘッダーに隠されないための対応 */
html {
  scroll-padding-top: 14vw;
}

/* アクセシビリティ対応。キーボードフォーカスは目立つ色で囲む */
*:focus {
    outline: 3px solid deeppink !important;
}

/* 囲んでいる枠の大きさに収まるのような画像用クラス（Bootstrap4の真似） */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 中央寄せ（Bootstrap4の真似） */
.text-center {
    text-align: center !important;
}


/* #header ここから ------------------------------------------------- */
#header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 100;    /* bxSliderが飛び出るので対策として */
}

.background-image {
    background: url("images/siteimage.png") center center no-repeat;
    background-size: cover;
    padding: 3vw 0 2vw 2vw;    /* この余白でwrap-sitenameの場所を決めている */
}

.wrap-sitename {
    width: 60vw;
    max-width: 600px;
}

/* メインメニュー ここから ------------------ */
nav a,
nav a:visited,
nav a:hover {
    color: #333333;
}
nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
nav > ul > li {
    background-color: #FCA0F6;
    border: 1px solid white;
    color: white;
    font-size: 1.8vw;
    flex: 0 1 calc(100% / 5);
    flex: auto;
}
/* リンクの装飾 */
nav > ul > li > a {
    padding: 0.5vw;
    display: block;    /* リンク文字ではない領域にカーソルを置いてもリンクとして反応させる */
    text-align: center;
}
/* メインメニュー ここまで ------------------ */

/* #header ここまで ------------------------------------------------- */

.wrap-main {
    margin: 3vw 6vw;
}

/* ようこそ枠 ここから ---------------------------------------*/
.wrap-introduction {
    width: 100%;
    display: flex;
    margin-bottom: 4vw;
}
.wrap-intro-slider {
    width: 50%;
    background-color: #FFEEFD;
}
/* bxSlider設定ここから ----------------------- */
/* 外枠を無しにする（強制的にCSS反映するために!important） */
.bx-wrapper {
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
}
/* アクセシビリティ対応。一時停止ボタンやpagerをTabキーフォーカスが逆順にならないように移動 */
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
    left: 0 !important;
    z-index: 1;    /* これでクリックできなくなるのを回避 */
    position: relative;    /* これでクリックできなくなるのを回避 */
}
.bx-pager.bx-default-pager {
    text-align: center !important;
    width: 100% !important;
}
/* bxSliderの各種ボタンの「テキスト飛ばし」をブラウザに優しい方法に書き換え */
.bx-wrapper .bx-controls-direction a {
    z-index: auto;    /* これでクリックできなくなるのを回避 */
    text-indent: 100%;
    overflow: hidden;
}
.bx-wrapper .bx-controls-auto .bx-start,
.bx-wrapper .bx-controls-auto .bx-stop {
    text-indent: 100%;
    overflow: hidden;
}
.bx-wrapper .bx-pager.bx-default-pager a {
    text-indent: 100%;
    overflow: hidden;
}
.bx-wrapper .bx-pager, .bx-wrapper .bx-controls-auto {
    bottom: 15px !important;
}
/* bxSlider設定ここまで ----------------------- */

/* ようこそメッセージ */
.wrap-intro-message {
    width: 50%;
    padding: 2vw 2vw;
    background-color: #FFEEFD;
    text-align: justify;
}
.wrap-intro-message .welcome-title {
    font-size: 4.5vw;
    font-weight: 800;
    line-height: 110%;
    text-align: center;
    color: #7D0459;
    text-shadow: 2px 2px 2px #bbbbbb;
    margin-bottom: 2vw;
    white-space: nowrap;
}
/* ようこそ枠 ここまで ---------------------------------------*/

/**/
.information {
    /* margin: 2.5rem; */
    margin: 2.5rem 0;
    padding: 1rem;
    border: 2px dotted #FCA0F6;
}
.information .info-title {
    font-weight: bold;
    font-size: 1.4rem;
    color: #363636;
}
.information dl.info-detail {
    display: flex;
    margin-bottom: 0;
}
.information dl.info-detail dt {
    margin-right: 1rem;
    font-weight: normal;
}

h2 {
    background-color: #FFD5F5;
    font-size: 1.9rem;
    font-weight: bold;
    text-align: center;
    color: #363636;
    border-bottom: solid 5px #FCA0F6;
    letter-spacing: 0.3rem;
    margin-bottom: 1rem;
}

.maintext {
    padding: 0 3vw 3vw;
}

/* h3の装飾 ここから -------------------- */
h3 {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    color: #73009B;
    margin-bottom: 1rem;

    display: flex;
    align-items: center;
}
h3:before, h3:after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background-color: #73009B;
    display: block;
}
h3:before {
    margin-right: 1.6rem;
}
h3:after {
    margin-left: 1.6rem;
}
/* h3の装飾 ここまで -------------------- */


/* 主な活動 ここから -------------------- */
.wrap-action {
    display: flex;
    margin-bottom: 2rem;
}
.action-image {
    width: 40%;
}
.action-text {
    width: 60%;
    margin-left: 4vw;
}
/* 主な活動 ここまで -------------------- */



/* ピアサポート ここから ------------- */
.peersupport-text {
    padding: 2rem;
    border: solid 4px #FCA0F6;
    margin: 2rem 0;
}
/* ピアサポート ここまで ------------- */

/*お問い合わせ ここから ----------------- */
.inquiry {
    width: 60vw;
    margin: 0 auto 5rem auto;
}
.inquiry label {
    margin-bottom: 0;
}
.inquiry .required {
    color: red;
    font-weight: bold;
}
.inquiry #your-name, #mailaddress, #tel, #question {
    padding: 6px 10px;
    width: 100%;
    margin-bottom: 1rem;
}
.inquiry textarea {
    height: 7rem;
}
.inquiry .SendButton {
    background-color: #FCA0F6;
    color: #363636;
    border: solid 1px;
    padding: 0.2rem 0.8rem;
}
/*お問い合わせ ここまで ----------------- */


/* footer ここから ------------------------------------------------- */
footer {
    background-color: #FCA0F6;
    margin-bottom: 0;
    text-align: center;
    color: #363636;
    padding: 1rem 0;
}

footer p, address {
    margin-bottom: 0;
}



/* #footer ここまで ------------------------------------------------- */

@media screen and (max-width: 544px) {}

@media screen and (max-width: 992px) {

    * {
		font-size: 1.1rem;
	}

    #header {
        position: initial;
    }

    nav > ul > li {
        font-size: 3vw;
        font-weight: bold;
        width: 8.5rem;
        flex: auto;
    }
    
    nav > ul > li > a {
        padding: 1vw;
    }

    .wrap-introduction {
        width: 100%;
        display: block;
    }

    .wrap-intro-slider {
        width: 100%;
		margin-bottom: 10px;
    }

    .wrap-intro-message {
        width: 100%;
        padding: 5vw;
    }

    .wrap-intro-message .welcome-title {
        font-size: 8vw;
    }

    h3 {
        margin-bottom: 0;
    }

    .information {
        /* margin: 2.5rem; */
        margin: 2.5rem 0;
        padding: 1rem;
        border: 2px dotted #FCA0F6;
    }
    .information .info-title {
        font-weight: bold;
        font-size: 1.4rem;
        color: #363636;
    }
    .information dl.info-detail {
        /* display: flex; */
        margin-bottom: 0;
    }
    .information dl.info-detail dt {
        margin-right: 1rem;
        font-weight: normal;
    }

    .wrap-action {
        display: block;
    }
    .action-image {
        width: 100%;
    }
    .action-text {
        width: 100%;
        padding: 0;
		margin-left: 0;
    }
 
    
    .inquiry {
        width: 100%;
    }
}

@media screen and (min-width: 1200px) {

}
