/* 

【 ひとこと紹介シート 】

作った人：わたぼうし
Twitter：@9rage_ap

利用の前に必ずfirst.txtをお読みください

*/

/* 簡易色変え */
:root {
    --bgColor: #f1fbfb;
    --shadowColor: #e2ecec;
    --baseColor: #fff;
    --h1Color: #93e0da;
    --titleColor: #93e0da;
    --subColor: #8dcccc;
    --tagColor: #999;
    --balloonColor: #edf2f1;
    --textColor: #666;
}


html {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bgColor);
    color: var(--textColor);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Twemoji用設定 */
img.emoji {
    height: 1em;
    width: 1em;
    vertical-align: -0.1em;
}

.all {
    box-sizing: border-box;
    flex: 1;
    margin: 0 auto;
    padding: 20px 20px;
    width: 520px;
}

.shadow {
    filter: drop-shadow(2px 2px 3px var(--shadowColor));
}

.h1bal {
    max-width: 360px;
    margin: 0 auto;
}
h1 {
    color: #fff;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: normal;
    font-size: 21px;
    letter-spacing: 4px;
    text-align: center;
    position: relative;
    margin: 20px 0 60px;
    padding: 25px 0;
    background: var(--h1Color);
    border-radius: 20px;
}
h1:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -15px;
    margin-top: -5px;
    border: 20px solid transparent;
    border-top: 20px solid var(--h1Color);
}

.move {
    animation: zoomIn .8s 1 forwards;
    transform-origin: center bottom;
}
@keyframes zoomIn {
    0% {
      transform: scale(0.8) translateY(10px) rotate(-20deg) scaleX(0.8);
      opacity: 0;
    }
    20% {
      transform: scale(0.8) translateY(10px) rotate(-20deg) scaleX(0.8);
      opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0) rotate(0) scaleX(1);
    }
}
.fuwa {
    animation: fadeIn 1.5s 1 forwards;
    transform-origin: center bottom;
}
@keyframes fadeIn {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
.opa {
    animation: opa 1.5s 1 forwards;
}
@keyframes opa {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.sheet {
    background: var(--baseColor);
    border-radius: 0 5px 5px 5px;
    padding: 12px 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

.shadow + .shadow {
    margin-top: 25px;
}
.title {
    position: relative;
    display: inline-block;
    color: #fff;
    background: var(--titleColor);
    border-radius: 10px 10px 0 0;
    padding: 10px 18px;
    margin: 0;
}
.tag {
    margin: 20px 5px;
    display: inline-block;
    font-family: 'メイリオ', 'ヒラギノ角ゴ', sans-serif;
    letter-spacing: 0.2em;
    font-size: 14px;
    font-weight: normal;
    color: var(--tagColor);
}

.separate {
    display: flex;
}
.separate + .separate {
    margin-top: 10px;
}

.subtitle {
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    font-size: 14px;
    line-height: 1em;
    text-align: center;
    letter-spacing: 1px;
    color: var(--subColor);
    border-right: 1px dotted var(--subColor);
    padding: 14px 8px;
    margin-right: 10px;
    min-height: 70px;
}

.talk {
    display: flex;
    flex-flow: column;
    justify-content: center;
    padding: 5px;
    width: -moz-available;
    width: -webkit-fill-available;
}

.line {
    display: flex;
    align-items: center;
    font-size: 20px;
}
.line + .line {
    margin-top: 5px;
}
.mark {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
}
.word {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    background: var(--titleColor);
    color: #fff;
    border-radius: 15px;
    font-size: 16px;
    padding: 3px 7px;
}

.balloon {
    position: relative;
    display: inline-block;
    padding: 7px 10px;
    margin: 0 14px;
    width: 100%;
    background: var(--balloonColor);
    border-radius: 15px;
    box-sizing: border-box;
    font-size: 16px;
}
.balloon:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -25px;
    margin-top: -15px;
    border: 15px solid transparent;
    border-right: 20px solid var(--balloonColor);
}
.balloon p {
    margin: 0;
    padding: 0;
}

.footer {
    background: var(--h1Color);
    color: #fff;
    text-align: right;
    padding: 5px 10px;
    font-size: 14px;
}

.sp {
    display: none;
}


@media screen and (max-width: 540px) {
    .all {
        width: 100%;
    }
    h1 {
        font-size: 18px;
    }
    .h1bal {
        max-width: 300px;
    }
    .separate {
        flex-flow: column;
    }
    .subtitle {
        writing-mode: inherit;
        min-height: auto;
        padding: 4px 14px;
        margin: 0 0 5px;
        border-right: none;
        border-bottom: 1px dotted var(--subColor);
        border-top: 1px dotted var(--subColor);
    }
    .mark {
        margin-left: 3px;
    }
    .balloon {
        font-size: 14px;
        text-align: justify;
        margin-right: 8px;
        padding: 10px 20px;
    }
}
@media screen and (max-width: 480px) {
    .sp {
        display: initial;
    }
    .tag {
        margin-bottom: 30px;
    }
    .separate + .separate {
        margin-top: 20px;
    }
    .talk {
        max-width: 300px;
        margin: auto;
        box-sizing: border-box;
    }
    .line {
        justify-content: center;
    }
    .balloon {
        padding: 15px 20px;
    }
} 
