/*----------------------
    ポップアップ
----------------------*/
.news-modal {
    display: none;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: rgba(0,0,0,0.3);
}

.news-modal-bg{
    background: rgba(0,0,0,0.3);
    height: 100vh;
    position: absolute;
    width: 100%;
}

/* コンテンツ */
.news-modal-content {
    background-color: #FFFFFF;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

/* コンテナ */
.news-modal__container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 0 72px;
    width: 100%;
    margin: 0 auto;
}

/* 「✕」 */
.news-modal__batten {
    position: fixed;
    right: 24px;
    top: 24px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 3;
}
.news-modal__batten div {
    width: 20px;
    position: relative;
}
.news-modal__batten div::before,
.news-modal__batten div::after {
  content: "";      /* 疑似要素に必須 */
  width: 100%;      /* 幅いっぱいを指定 */
  height: 2px;      /* 適度な太さを指定 */
  display: inline-block; /* 高さを持たせるためにinline-blockを指定 */
  background: #333; /* 線の色を指定 */
  border-radius: 2px;    /* 線の端を丸くしたいなら指定する */
  position: absolute;    /* 相対位置に指定 */
  top: 0;           /* 表示位置を上から0pxに指定 */
  right: 0;          /* 表示位置を左から0pxに指定 */
}

.news-modal__batten div::before {
  transform: rotate(45deg); /* 時計回りに45度回転させる */
}
.news-modal__batten div::after {
  transform: rotate(-45deg); /* 反時計回りに45度回転させる */
}

/* スクロールバー */
.news-modal__scroll {
    position: fixed;
    right: 20px;
    bottom: 80px;
}
.news-modal__scroll span {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #333;
    letter-spacing: .05em;
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
}
.news-modal__scroll span::before,
.news-modal__scroll span::after{
    position: absolute;
    bottom: -68px;
    left: 50%;
    margin: auto;
    content: "";
    vertical-align: middle;
}
.news-modal__scroll span::before{
    width: 1px;
    height: 60px;
    background: #333;
}
.news-modal__scroll span::after{
    right: 12px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}


/* 三角 */
.news-modal__container::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 480px;
    height: 360px;
    background: linear-gradient(135deg, #D03D37 0%, #D03D37 40%, #fff 40%, #fff 100%);
    z-index: -1;
}

/* 名前「共通」 */
.news-modal__name {
    position: absolute;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 72px;
    font-weight: 200;
    color: #F0C2C1;
    -webkit-text-stroke: 1px #F0C2C1;
    text-stroke: 1px #F0C2C1;
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    z-index: 2;
}
/* 下の名前 */
.news-modal__firstname {
    left: 68px;
    top: 20px;
}
/* 苗字 */
.news-modal__lastname {
    left: 0px;
    bottom: 40px;
}

/* 画像ラッパー */
.news-modal__warapper {
    position: fixed;
    left: 0;
    height: 100%;
}

/* 画像 */
.news-modal__image {
    position: relative;
    left: 40%;
    max-width: 298px;
    width: 100%;
    height: calc( 100% - 58px ); /* 上下の余白を含めて100% */
    margin-top: 48px;
    margin-bottom: 10px;
    overflow-y: hidden;
}

/* 補足情報（SNSなど） */
.news-modal-image__desc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FDF8F8;
    padding: 8px 16px;
}
/* 矢印 */
.news-modal-image__desc span {
    position: relative;
}
/* 矢印「共通」 */
.news-modal-image__desc span::before,
.news-modal-image__desc span::after{
    position: absolute;
    top: 0;
    right: -2.5em;
    margin: auto;
    content: "";
    vertical-align: middle;
}
/* 矢印「横線」 */
.news-modal-image__desc span::before{
    bottom: 0;
    width: 16px;
    height: 1px;
    background: #333;
}
/* 矢印「三角」 */
.news-modal-image__desc span::after{
    bottom: -0.5px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
/* SNSブロック */
.news-modal-image__icon {
    display: flex;
    align-items: center;
}
/* リンク要素 */
.news-modal-image__link {
    display: block;
}
/* リンク間 */
.news-modal-image__link + .news-modal-image__link {
    margin-left: 24px;
}

/* プロフィール・クエスチョン全体 */
.news-modal__body {
    max-width: 41.5%;
    width: 100%;
    height: 440px;
    overflow-y: scroll;
    margin: 48px 40px 0 48px;
}



.news-modal-img {
    position: absolute;
    top: -21.5px;
    right: -21.5px;
    width: 43px;
    height: 43px;
}


/*-------------------------
    既存CSS打消し
--------------------------*/
.news-modal__heading::before {
    display: none !important;
}
.news-modal-questions__item > dl {
    border-bottom: none;
}
.news-modal-questions__item > dl dt {
    float: none;
    padding: 0;
    margin: 0;
    border-top: none;
    width: auto;
    text-align: left;
    white-space: normal;
    background: transparent;
}
.news-modal-questions__item > dl dd {
    border-top: none;
    padding: 0;
    margin: 0;
    text-align: left;
}


/*-------------------------
    profile questions共通
--------------------------*/
/* 見出し */
.news-modal__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px !important;
    font-weight: 300 !important;
    letter-spacing: .03em;
    color: #D03D37;
    text-align: center;
    /* 既存CSS打消し */
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
}


/*-------------------------
    profile
--------------------------*/
/* プロフィールリスト全体 */
.news-modal-profile__list {
    margin-top: 16px;
}

/* プロフィール アイテム */
.news-modal-profile__item {
    font-size: 16px;
    color: #333;
    padding: 20px;
}
/* プロフィール アイテム（奇数） */
.news-modal-profile__item:nth-child(odd) {
    background-color: #FDF8F8;
}

/*-------------------------
    questions
--------------------------*/
/* ブロック */
.news-modal__questions {
    margin-top: 24px;
    margin-bottom: 48px;
}

/* クエスチョンリスト全体 */
.news-modal-questions__list {
    margin-top: 16px;
}

/* アイテム全体 */
.news-modal-questions__item {
    background-color: #FDF8F8;
    padding: 12px 28px;
}

/* アイテム間 */
.news-modal-questions__item + .news-modal-questions__item {
    margin-top: 4px;
}

/* リストアイテムの中身 */
.news-modal-questions__item > dl {
    font-size: 16px;
    color: #333;
}

/* 質問 */
.news-modal-questions__item > dl dt {
    position: relative; /* Qの配置のため */
    padding-left: 0.75em; /* 回答とy軸揃える */
}

/* 「 Q 」 */
.news-modal-questions__item > dl dt::before {
    position: absolute;
    content: 'Q';
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #D03D37;
    top: 50%;
    left: -0.5em; /* 質問テキストとの距離 */
    transform: translate(-50%,-50%);
}

/* 回答 */
.news-modal-questions__item > dl dd {
    background-color: #fff;
    padding: 10px 0.75em;
    margin-top: 8px;
}

_::-webkit-full-page-media, _:future, :root .n {
    right: 48px;
}

_::-webkit-full-page-media, _:future, :root .news-modal__scroll {
    right: 48px;
}


@media (max-width: 1024px) {
    .news-modal-content {
        max-width: 93.75%;
    }
    .news-modal__body {
        margin-right: 0;
    }
    .news-modal__image {
        left: 30%;
    }
    .news-modal__firstname {
        left: 40px;
    }
    .news-modal__lastname {
        left: -24px;
    }

}

@media (max-width: 767px) {
    .news-modal-content {
        top: 56%;
        height: 60vh;
        overflow-y: scroll;
    }
    .news-modal__container {
        flex-direction: column;
        align-items: center;
        padding: 0 30px;
        margin-top: -20px;
    }
    .news-modal__warapper {
        position: static;
    }
    .news-modal__image {
        max-width: 184px;
        left: auto;
        margin-top: 28px;
        margin-bottom: 0;
    }
    .news-modal__body {
        max-width: 100%;
        height: auto;
        overflow-y: auto;
        margin: 20px 0 0;
    }
    /* 名前 */
    .news-modal__name {
        position: absolute;
        display: inline-block;
        font-family: 'Montserrat', sans-serif;
        font-size: 36px;
        font-weight: 200;
        letter-spacing: .07em;
        color: #F0C2C1;
        -webkit-text-stroke: 1px #F0C2C1;
        text-stroke: 1px #F0C2C1;
        writing-mode: vertical-rl;
        -webkit-writing-mode: vertical-rl;
        -ms-writing-mode: tb-rl;
        z-index: 2;
    }
    .news-modal__firstname {
        left: 48px;
    }
    .news-modal__lastname {
        left: 16px;
        bottom: auto;
        top: 120px;
    }
    /* 三角 */
    .news-modal__container::before {
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        width: 300px;
        height: 240px;
        background: linear-gradient(135deg, #D03D37 0%, #D03D37 40%, #fff 40%, #fff 100%);
        z-index: -1;
    }
    /*-------------------------
        プロフィール画像ブロック
    --------------------------*/
    /* 補足説明 */
    .news-modal-image__desc {
        padding: 8px 10px;
    }
    .news-modal-image__desc span {
        font-size: 10px;
    }
    .news-modal-image__link {
        font-size: 10px;
    }
    .news-modal-image__link + .news-modal-image__link {
        margin-left: 16px;
    }
    .news-modal-image__link img {
        width: 16px;
        height: 16px;
    }
    /* 矢印 */
    .news-modal-image__desc span::before,
    .news-modal-image__desc span::after{
        right: -2em;
    }
    .news-modal-image__desc span::before{
        bottom: 0;
        width: 10px;
    }
    .news-modal-image__desc span::after{
        bottom: 0;
        width: 5px;
        height: 5px;
    }

    /*-------------------------
        profile questions共通
    --------------------------*/
    /* 見出し */
    .news-modal__heading {
        font-size: 20px !important;
    }
    .news-modal__displya--pc {
        display: none;
    }
    /*-------------------------
        profile
    --------------------------*/
    /* プロフィールリスト全体 */
    .news-modal-profile__list {
        margin-top: 12px;
    }

    /* プロフィール アイテム */
    .news-modal-profile__item {
        font-size: 12px;
        color: #333;
        padding: 8px;
    }

    /*-------------------------
        questions
    --------------------------*/
    /* ブロック */
    .news-modal__questions {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    /* クエスチョンリスト全体 */
    .news-modal-questions__list {
        margin-top: 12px;
    }

    /* アイテム全体 */
    .news-modal-questions__item {
        padding: 8px 16px 12px 24px;
    }

    /* リストアイテムの中身 */
    .news-modal-questions__item > dl {
        font-size: 14px;
    }

    /* 質問 */
    .news-modal-questions__item > dl dt {
        padding-left: 0.5em; /* 回答とy軸揃える */
    }

    /* 「 Q 」 */
    .news-modal-questions__item > dl dt::before {
        font-size: 16px;      
    }

    /* 回答 */
    .news-modal-questions__item > dl dd {
        padding: 10px 0.5em;
        margin-top: 10px;
    }

    /*----------------------
        スクロールバー
    ----------------------*/
    .news-modal__scroll {
        right: 8px;
        bottom: 46px;
    }
    .news-modal__scroll span {
        font-size: 12px;
    }
    .news-modal__scroll span::before,
    .news-modal__scroll span::after{
        bottom: -34px;
        left: 50%;
        transform: translateX(-50%);
    }
    .news-modal__scroll span::before{
        width: 0.5px;
        height: 30px;
    }
    .news-modal__scroll span::after{
        right: 50%;
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
    }
    /* 「✕」 */
    .news-modal__batten {
        position: sticky;/*固定する*/
        position: -webkit-sticky;/*Safari用ベンダープレフィックス*/
        margin-left: auto;
        right: 12px;
    }

    _::-webkit-full-page-media, _:future, :root .news-modal__scroll {
        right: 24px;
    }
}