/*=== ログイン画面 ===*/
body {
    background: #fafafa;
}

body#login,
body#signup {
    background: #0e78c5;
}

body#login .wrapper {
    max-width: 1024px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    overflow-y: auto; /* 縦方向のオーバーフローを自動でスクロール可能に */
    max-height: 100%; /* ビューポートの高さを超えないようにする */
}

body#signup .wrapper {
    margin: 30px auto;
    width: 95%;
}

body#login h3,
body#signup h3 {
    text-align: center;
    margin-bottom: 20px;
    border: none;
    font-size: 24px;
}

body#login .modal h3,
body#signup .modal h3 {
    color: #444;
    margin-bottom: 0;
    border-bottom: 1px #ccc solid;
    position: relative;
    padding-bottom: 15px;
}

body#login img.logo,
body#signup img.logo {
    display: block;
    margin: 0 auto;
    margin-bottom: 30px;
    width: 200px;
}

.login_form {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
}

.login_form h3 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.login_form>div {
    padding-bottom: 20px;
}

.login_form>div>p {
    padding-bottom: 5px;
    font-weight: bold;
}

.login_form>div p.fc_red,
.login_form>div>p.attention,
.login_form>div>p.subject {
    font-weight: normal;
}

.modal .pw_forgot {
    padding: 20px;
}

.modal .inner .pw_forgot p {
    font-size: 13px;
    padding-bottom: 5px;
}

input[type="text"],
input#login_pw,
textarea,
input[type="date"],
input[type="password"]{
    font-size: 1.8rem;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px #ccc solid;
    box-sizing: border-box;
}
input#login_mail_confirm.errorBorder{
    border: 2px solid #f06e25;
}

textarea {
    height: 150px;
}

input[type="date"] {
    width: auto;
}

input[type="text"].error {
    border-color: red;
}

span#buttonEye,
span#currentPasswordEye,
span#newPasswordEye,
span#confirmPasswordEye {
    position: absolute;
    right: 15px;
    top: 14px;
    color: gray;
}

.pw_input {
    position: relative;
}

.login_btn {
    width: 100%;
    border: none;
    background: #868d8f;
    color: #fff;
    padding: 10px 0;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 18px;
    display: block;
    text-align: center;
}

.login_btn.active {
    background: #0e78c5;
}

a.add_login {
    text-align: center;
    display: block;
    width: 100%;
    border-top: 1px #ccc solid;
    margin-top: 30px;
    padding-top: 15px;
    box-sizing: border-box;
    color: gray;
}

.attention {
    color: gray;
}
.attention a {
    color: #256db9;
    font-size: 18px;
}
.attention2 {
    color: gray;
    margin-top: 5px;
    display: none;
}
.error_msg {
    color: #f06e25;
    margin-top: 5px;
    display: none;
    font-weight: bold;
}

#login .attention {
    margin-top: 20px;
}

.name_input {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 10px;
}

.consent_txt {
    height: 200px;
    background: #f3f3f3;
    border-radius: 8px;
    padding: 10px;
    overflow-x: scroll;
}

/*=== //ログイン画面 ===*/
header {
    background: #0e78c5;
    padding: 5px 20px;
    color: #fff;
    position: relative;
    height: 70px;
    box-sizing: border-box;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
}

header .logo {
    padding: 17px 0;
}

header .logo img {
    width: 100px;
    vertical-align: bottom;
    margin-right: 20px;
}

/*---menu---*/
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 111;
}

#menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    display: grid;
    align-content: space-between;
    z-index: 999;
}

#menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

#menu ul li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

#menuButton {
    position: fixed;
    top: 18px;
    right: 20px;
    cursor: pointer;
    z-index: 100;
    color: #fff;
    font-size: 22px;
}

.menu_inner {
    display: grid;
    gap: 1rem;
    padding: 2rem 3.5rem;
    margin: 2rem 0;
}

.menu_inner a {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    display: block;
    padding: 10px 0;
}
.menu_inner a img {
    vertical-align: middle;
    padding-right: 1rem;
}

.menu_inner a.profile i {
    font-size: 1.7rem;
    margin-right: 1rem;
    vertical-align: text-bottom;
}

.menu_inner a.profile {
    border-bottom: 1px #ccc solid;
    padding-bottom: 2rem;
}

#closeButton {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
}

div#overlay.active {
    display: block;
}

div#menu.active {
    right: 0;
}

/*---//menu---*/

/*---layout---*/
.mainwrapper {
    max-width: 600px;
    margin: 40px auto;
    width: 90%;
    margin-top: 95px;
    display: grid;
    gap: 2rem;
}

.title {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}
.dlarea {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 20px;
}

h2{
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2.0rem;
}

h4.color_title {
    background: #fef1da;
    padding: 10px;
    border-radius: 8px;
}

.back a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.basic_box {
    display: grid;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #00000010;
    gap: 2rem;
    position: relative;
}

.basic_inner:first-child {
    border: none;
    padding-top: 0;
}

.basic_inner {
    border-top: 1px #ccc solid;
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
}

.basic_inner div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.submit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.btn {
    padding: 1rem;
    background: #0e78c5; /* 立体感を出すグラデーションを削除し、単色で指定 */
    font-size: 1.8rem;
    color: #fff;
    border-radius: 8px;
    width: 150px;
    text-align: center;
    border: none; /* ボーダーを削除してフラットに */
    box-shadow: none; /* ボックスシャドウを削除してフラットに */
}
.btn.download {
    width: 200px;
    padding: 1.2rem 2rem;
    border-radius: 6px;
}

.basic_grid_1 {
    display: grid;
    gap: 0.5rem;
}

.basic_grid_2 {
    display: grid;
    gap: 1rem;
}

.basic_grid_3 {
    display: grid;
    gap: 2rem;
}
.basic_grid_3.center {
    justify-items: center;
}
.hidden {
    display: none;
    gap: 1rem;
}

.d_flex {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.error {
    color: red;
}

.supplement{
    text-align: left;
    font-size: 16px;
    margin: 0px 0px 25px 30px;
    display: grid;
}
/*---//layout---*/
/*---home---*/

.record_list {
    display: grid;
    grid-template-columns: max-content;
    grid-template-rows: repeat(3, 1fr);
    grid-row-gap: 10px;
    justify-content: center;
}

.record_list a {
    background: #fff;
    border: 2px #ccc solid;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #3d3a39;
    padding: 10px;
    transition: 0.2s;
    width: 330px;
}

.record_list a:hover {
    background: #0e78c530;
}

.record_list a img {
    width: 100px;
    vertical-align: middle;
    margin-right: 20px;
}

.motivation {
    background: #fae7dd;
    padding: 15px 20px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr min-content;
    grid-template-rows: repeat(2, min-content);
    grid-column-gap: 0px;
    grid-row-gap: 10px;
    font-size: 1.6rem;
    position: relative;
}

.motiv_txt {
    grid-area: 2 / 1 / 3 / 3;
    font-size: 1.2em;
}

a.edit {
    text-wrap: nowrap;
    font-size: 1.4rem;
    align-items: baseline;
    gap: 0.25rem;
    position: absolute;
    right: 16px;
    top: 16px;
}

/*---//home---*/
/*---slide range---*/
.status {
    display: grid;
    justify-content: center;
    gap: 2rem;
}

div#imageContainer img ,
div#imageContainer2 img,
div#imageContainer3 img {
    width: 220px;
    /* margin: 0 auto; */
}

#scaleInput ,
#scaleInput2,
#scaleInput3 {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-apperance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background-color: transparent;
    border-radius: 7px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    /* Styles for WebKit browsers */
    -webkit-appearance: none;
    width: 20px;
    /* Set thumb width */
    height: 20px;
    /* Set thumb height */
    background-color: #0e78c5;
    /* Thumb color */
    border-radius: 50%;
    /* Circle shape for the thumb */
    cursor: pointer;
    /* Cursor on hover */
    box-shadow: 2px 2px 5px #00000020;
}

input[type="range"]::-moz-range-thumb {
    /* Styles for Firefox */
    width: 20px;
    /* Set thumb width */
    height: 20px;
    /* Set thumb height */
    background-color: #0e78c5;
    /* Thumb color */
    border-radius: 50%;
    /* Circle shape for the thumb */
    cursor: pointer;
    /* Cursor on hover */
    box-shadow: 2px 2px 5px #00000020;
}

.range_label {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: normal;
    color: #91989a;
    position: relative;
    height: 22px;
}

.range_label div.left{
    position: absolute;
    left: -30px;
}
.range_label div.right{
    position: absolute;
    right: -40px;
}

.range_area {
    position: relative;
}

.range_value {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    color: #91989a;
    position: relative;
    height: 30px;
}

.range_design {
    width: 100%;
    background: #ccc;
    /* height: 7px; */
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 7px;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.range_design span {
    background: #fff;
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/*---//slide range---*/


/*---modal---*/
.modal {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

.overLay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    z-index: 10;
}

.modal .inner {
    position: fixed;
    z-index: 11;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    box-sizing: border-box;
    max-width: 400px;
    max-height: 80vh;           /* スマホでボックスからはみ出さないように高さを制限 */
    overflow-y: auto;           /* はみ出す場合はボックス内でスクロール */
}

.modal .inner .basic_grid_1 {
    justify-content: flex-start; /* 左寄せにしてテキストを自然に折り返し */
    gap: 0.5rem;                 /* モバイル用の大きすぎるgapを上書き */
}

.modal .inner .basic_grid_1 p {
    font-size: 1.6rem;
    line-height: 1.4;
    word-break: break-all;       /* 長い文言もボックス幅で折り返す */
}

span.modalClose {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 1.8rem;
}
span.modalClose.btn {
    position: static;
    background: transparent;
    color: #444;
    border: 1px #555352 solid;
    font-size: 1.6rem;
    padding: 3px 0;
    border-radius: 5px;
    margin-top: 20px;
}

.modal .inner.add_user {
    padding: 0;
    padding-top: 20px;
}

.modal .inner.add_user table tr>* {
    border: none;
}

.modal .inner.add_user th {
    width: 30%;
    vertical-align: top;
}

.modal .inner.add_user .sbmit_btn .btn {
    margin: 0;
}

.modal .inner.add_user .sbmit_btn p {
    padding-bottom: 10px;
    padding-top: 0;
}

.modal .inner.add_user .sbmit_btn {
    border-top: 1px #ccc solid;
    margin-top: 30px;
    padding: 0 30px;
    padding-bottom: 30px;
    padding-top: 20px;
}

.modal .inner.add_user h3 {
    margin-bottom: 30px;
}

.modal .inner p.attention {
    font-size: 12px;
    color: #ec0000;
    padding: 5px 0;
}

.modal .inner p.attention:before {
    content: "\f071";
    font-family: "Font Awesome 6 Free";
    font-weight: bold;
    margin-right: 3px;
}

.modal .inner input[type="file"] {
    text-align: left;
    display: block;
    margin-top: 10px;
}

.modal .inner img {
    max-width: 100px;
}
/*---//modal---*/
/*---review---*/
.basic_box.review p.rev_date{
    font-size: 2.0rem;
}
.basic_box.review img {
    width: 30px;
}

.basic_box.review .basic_grid_1 p {
    font-size: 2.0rem;
    font-weight: bold;
    color: #0e78c5;
}

.basic_box.review .basic_grid_1 p.mental {
    color: #ff8f00;
}

.basic_box.review .basic_grid_1 p.environment {
    color: #459372;
}

.review_title {
    display: grid;
    gap: 0.5rem;
    justify-content: center;
    justify-items: center;
}
.review_title h3 {
    font-size: 2.0rem;
}

.basic_box.review a.modalOpen {
    position: absolute;
    right: 20px;
    top: 30px;
}

.review_title_left {
    display: grid;
    gap: 0.5rem;
    justify-content: start;
    justify-items: start;
}
.review_title_left h3 {
    font-size: 2.1rem;
}

.change_btn {
    width: 44%;
    border-radius: 25px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 9px 0;
    transition: all 0.3s ease;
    font-size: 1.6rem;
}

.change_btn.active {
    background: #0e78c5;
    color: #fff;
    border: 1px solid #0e78c5;
}

.basic_grid_2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14%;
    margin-top: 5px;
    margin-bottom: 5px;
}
p.review_help_text {
    color: #666;
    line-height: 1.1;
}
@media screen and (max-width:720px) {

    .change_btn {
        width: 45%;
    }

    .basic_grid_1 {
        gap: 10%;
    }
}
/*---//review---*/

.swal2-popup{
    font-size: 1.2em;
}

#mypage h3{
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 1.4em;
}
#mypage .basic_grid_1{
    margin-top: 10px;
}

#check_date{
    width: 250px;
    background-image: url('../img/calendar_today.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    background-size: 20px 20px; /* アイコンのサイズを20px x 20pxに指定 */
}

#category{
    font-size: 1.6em;
    border: 0px solid;
    background: #fafafa;
    padding-right: 20px;
    font-weight: bold;
}
#review select{
    font-size: 1.8rem;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px #ccc solid;
    box-sizing: border-box;
}
.chart-container {
    height: 300px; /* 高さを300pxから350pxに変更 */
    margin-bottom: 30px;
}
#myChart {
    height: 100%; /* 親コンテナの高さに合わせる */
}
a.download_btn {
    background: #64C8CB;
    padding: 10px 20px;
    color: #fff;
    border-radius: 5px;
    margin-left: 30px;
}