:root {
    --vw-without-scrollbar: calc(100vw - var(--scrollbar-width));
    --color-base: #000;
    --color-accent: #005b92;
    --color-accent-right: #1e97d2;
    /* --color-accent-deep: #0000cc; */
    --color-border: #e6e6e6;
    --background-base: rgb(30, 151, 210);
    --background-gradient: linear-gradient(90deg, rgba(30, 151, 210, 1) 0%, rgba(0, 117, 185, 1) 50%, rgba(0, 91, 146, 1) 100%);
    /* --color-border-lightblue: #29a5dc;
  --color-border-lightgray: #efefef;
  --color-red: #f06543;
  --color-red2: #FF2100;
  --color-gray: #808080;
  --color-gray2: #969696;
  --color-link: #000;
  --background-gray: #c6c6c6;
  --background-gray2: #ececec;
  --background-lightblue: #e5eff7; */
    --fontsize-10: clamp(0.9rem, 0.864rem + 0.11vw, 1.0rem);
    --fontsize-12: clamp(1.0rem, 0.928rem + 0.23vw, 1.2rem);
    --fontsize-14: clamp(1.3rem, 1.264rem + 0.11vw, 1.4rem);
    --fontsize-16: clamp(1.5rem, 1.464rem + 0.11vw, 1.6rem);
    --fontsize-18: clamp(1.6rem, 1.528rem + 0.23vw, 1.8rem);
    --fontsize-20: clamp(1.8rem, 1.728rem + 0.23vw, 2.0rem);
    --fontsize-22: clamp(2.0rem, 1.928rem + 0.23vw, 2.2rem);
    --fontsize-28: clamp(2.6rem, 2.528rem + 0.23vw, 2.8rem);
    --fontsize-30: clamp(2.8rem, 2.728rem + 0.23vw, 3.0rem);
    --fontsize-34: clamp(3.0rem, 2.854rem + 0.45vw, 3.4rem);
    --fontsize-38: clamp(3.4rem, 3.254rem + 0.45vw, 3.8rem);
    --fontsize-40: clamp(3.6rem, 3.454rem + 0.45vw, 4.0rem);
}

html {
    margin: 0;
    /* 余白の削除 */
    padding: 0;
    /* 余白の削除 */
    width: 100%;
    /* 横の幅を100% */
    font-size: 62.5%;
    overflow: auto;
    -webkit-text-size-adjust: 100%;
    /* iOS文字サイズリセット */
}

body {
    margin: 0;
    /* 余白の削除 */
    padding: 0;
    /* 余白の削除 */
    width: 100%;
    /* 横の幅を100% */
    overflow: auto;
    background: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-size: 1.4rem;
    line-height: 1.8;
    letter-spacing: 0.1rem;
    height: 100%;
    font-feature-settings: "palt";
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
}
main {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#chatbot_layer{
    box-shadow: 0px 0px 5px #ccc;
    border-radius: 10px;
}
#header{
    margin:0;
    background:#000;
    color:#fff;
    height:50px;
    position:fixed;
    top:0;
    width:100%;
}
#header h1 {
    font-size:14px;
    padding:0 10px;
    line-height:50px;
}
#chatbot_contents {
    margin-top:50px;
    position:relative;
    height: calc(100vh - 50px);
}
#chatbot_field{
    overflow-y: scroll;
    padding: 0 5px;
    margin-bottom: 60px;
}
#chatbot_input_layer {
    position:absolute;
    bottom: 10px;
    width: calc(100% - 20px);
    align-items: center;
    display: flex;
    left: 10px;
    right: 10px;
}
textarea{
    width: calc(100% - 94px);
    resize: none;
    border: #fff;
    padding: 10px;
    outline: none;
    border-radius: 10px;
}
button{
    padding: 10px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    line-height: 1;
    margin-left:10px;
}
/*吹き出し*/
/* styles.css */
.chat-bubble {
    display: grid;
    gap: 1em 0;
    background-color: #769ece;
    height: calc(100vh - 50px);
}
.chat-bubble__section {
    display: flex;
    gap: 0 15px;
    margin:20px 0;
}
.chat-bubble__img {
    width: 2.7em;
    height: 2.7em;
    border-radius: 50%;
}
.chat-bubble__text {
    display: inline-block;
    position: relative;
    max-width: 80%;
    margin: 0;
    padding: .5em 1em;
    border-radius: 20px;
    color: #333;
    margin-top:10px;
}

.chat-bubble__text.left {
    background-color: #fff;
}

.chat-bubble__text.right {
    background-color: #30e852;
    margin: 0 10px 0 auto;
}

.chat-bubble__text::before {
    position: absolute;
    top: -15px;
    width: 20px;
    height: 30px;
    content: '';
}

.chat-bubble__text.left::before {
    left: -10px;
    border-radius: 0 0 0 15px;
    box-shadow: -3px -15px 0 -7px white inset;
}

.chat-bubble__text.right::before {
    right: -10px;
    border-radius: 0 0 15px 0;
    box-shadow: 3px -15px 0 -7px #30e852 inset;
}