/* Survey Reservation */
/* common */
/* Reset some default styles */

.btn_survey {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 8.75rem; /* 140px */
    border: 2px solid #D7DB5B;
    border-radius: 0.625rem; /* 10px */
    background: #ffffff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.bg_btn_light_olive_green {
    background: #D7DB5B;
    border-radius: 0 0 0.5rem 0.5rem; /* 8px */
}

.notification-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #DC605B;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.75rem;
    padding-left: 0.5px;
}

.h-60 {
    height: 3.75rem !important; /* 60px */
}

.survey-section {
    max-width: 500px;
    margin: auto;
    font-family: sans-serif;
}

.title {
    text-align: center;
    color: #50A0D7;
    font-size: 1.25rem; /* 20px */
    margin-bottom: 0.5rem; /* 8px */
}

.subtitle {
    text-align: center;
    color: red;
    font-size: 0.875rem; /* 14px */
    margin-bottom: 1.25rem; /* 20px */
}

.survey-box {
    background-color: #F7F7F7;
    border-radius: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.75rem; /* 12px */
    margin-bottom: 0.9375rem; /* 15px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.3s cubic-bezier(.4, 0, .2, 1),
    color 0.3s cubic-bezier(.4, 0, .2, 1),
    box-shadow 0.3s cubic-bezier(.4, 0, .2, 1),
    transform 0.2s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.survey-box:hover {
    opacity: 0.8;
}

.survey-status {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.625rem; /* 4px 10px */
    border-radius: 0;
    color: #fff;
    font-size: 0.75rem; /* 12px */
    font-weight: bold;
}

.survey-card {
    background-color: #F7F7F7;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 0.75rem; /* 12px */
    margin-bottom: 0.9375rem; /* 15px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.3s cubic-bezier(.4, 0, .2, 1),
    color 0.3s cubic-bezier(.4, 0, .2, 1),
    box-shadow 0.3s cubic-bezier(.4, 0, .2, 1),
    transform 0.2s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}
 
.survey-card:hover {
    opacity: 0.8;
}
 
.survey-card-status {
    bottom: 0;
    left: 0;
    padding: 0.25rem 0.625rem; /* 4px 10px */
    border-radius: 0;
    color: #fff;
    font-size: 0.75rem; /* 12px */
    font-weight: bold;
}

.status-green {
    background-color: #4EAB58;
}

.status-gray {
    background-color: #8B8B8B;
}

.status-red {
    background-color: #b40000;
}

.survey-icon img {
    width: 3rem; /* 48px */
    height: 3rem; /* 48px */
    margin-right: 0.75rem; /* 12px */
}

.survey-content {
    text-align: left;
}

.survey-title {
    font-weight: bold;
    font-size: 1rem; /* 16px */
    margin-bottom: 0.25rem; /* 4px */
}

.article {
    padding: 11rem 2.5rem 4rem 2.5rem; /* 176px 40px 64px 40px */
    max-width: 64rem;
    margin: auto;
}

.gyosei {
    background: #ffffff;
}

.button-wrapper {
    text-align: center;
    margin-top: 2rem; /* 32px */
}

.btn-back {
    width: 280px;
    height: 52px;
    background-color: #F5C15D;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
    margin: 62px auto;
}

#suggestion_registration button{
    margin: 0 auto;
}

.btn-back:hover {
    background-color: #e0ae48;
}

/* warning box */
.guest-warning-box {
    background-color: #FFF2F2;
    padding: 1rem; /* 16px */
    margin-bottom: 1.25rem; /* 20px */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.guest-title {
    text-align: center;
    color: red;
    font-weight: bold;
    font-size: 0.9375rem; /* 15px */
    margin-bottom: 0.5rem; /* 8px */
}

.guest-content {
    padding: 10px 10px 10px 10px;
    background-color: #FFF2F2;
    font-size: 0.875rem; /* 14px */
    color: #333;
    line-height: 1.6;
}

.text-blue {
    color: #50A0D7;
    font-weight: bold;
}
/* warning box */

/* ========== Tab UI for 意見箱 ========== */
.tab-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem; /* 16px */
    gap: 0.5rem; /* 8px */
}

.tab-button {
    padding: 0.25rem 0.625rem; /* 4px 10px */
    border-radius: 0.375rem; /* 6px */
    background-color: transparent;
    color: #000;
    font-weight: bold;
    font-size: 0.9375rem; /* 15px */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tab-button.active {
    background-color: #e9e9e9;
}

.tab-separator {
    color: #666;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem; /* 10px 20px */
    background-color: #50A0D7;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.9375rem; /* 15px */
}

.hr-b {
    border: none;
    border-top: 1px dashed #000000;
    margin: 0 0 1.25rem 0; /* 20px */
}

.floating-save-btn {
    position: fixed;
    bottom: 19px;
    right: 1.25rem; /* 20px */
    transform: translateY(-50%);
    background-color: #3498db;
    border: none;
    border-radius: 50%;
    width: 3.75rem !important;/* 60px */
    height: 3.75rem; /* 60px */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.floating-save-btn img {
    width: 24px;
    height: 24px;
}

.floating-save-btn .label {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    margin-top: 0.125rem; /* 2px */
}

.question-block {
    padding: 1rem; /* 16px */
    background: #ffffff;
}

.question-block h3 {
  font-size: 1.125rem; /* 18px */
  font-weight: bold;
  margin-bottom: 0.5rem; /* 8px */
}

.question-block p {
  font-size: 0.875rem; /* 14px */
  margin-bottom: 0.75rem; /* 12px */
}

.question-image img {
  width: 388px;
  height: 146px;
  background: #3c3b6e;
  color: #fff;
  display: block;
  margin: 0 auto 1rem auto; /* 16px */
}


.option-title {
  font-weight: bold;
  margin-bottom: 0.5rem; /* 8px */
}

.inline-textbox {
  margin-left: 0.625rem; /* 10px */
  padding: 0.25rem 0.5rem; /* 4px 8px */
  border: 1px solid #ccc;
  font-size: 0.8125rem; /* 13px */
  border-radius: 0.25rem; /* 4px */
}

.short-text {
  flex: 1 1 3.75rem;
  padding: 0.5rem 0.625rem; /* 8px 10px */
  font-size: 0.875rem; /* 14px */
  border: 1px solid #ccc;
  border-radius: 0.25rem; /* 4px */
  background-color: #f8f8f8;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  margin-bottom: 0.625rem; /* 10px */
  flex-wrap: wrap;
}

.prefix,
.suffix {
  font-size: 0.875rem; /* 14px */
  white-space: nowrap;
}

.info-row {
  border-bottom: 1px dashed #999;
  padding: 0.5rem 0; /* 8px 0 */
}

.info-row strong {
  display: block;
  font-size: 0.875rem; /* 14px */
  font-weight: bold;
  color: #000000;
}

.info-row p {
  margin: 0.125rem 0 0 0; /* 2px 0 0 0 */
  font-size: 0.875rem; /* 14px */
  color: #000000;
}

.mt80w {
    margin-top: 5rem; /* 80px */
}

.txt-center {
    text-align: center;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0.625rem; /* 10px */
}

.tab-text {
  cursor: pointer;
  padding: 0.25rem 0.5rem; /* 4px 8px */
  font-size: 1rem; /* 16px */
  color: #333;
}

.tab-text:hover {
  text-decoration: underline;
  color: #50A0D7;
}

.tab-text.active {
  font-weight: bold;
  color: #50A0D7;
}

.article.surveys h2 {
    margin-bottom: 0.5rem; /* 8px */
}
/* Survey Form Styles */
.surveys .form-group {
    margin-bottom: 1.25rem; /* 20px */
}

.surveys .h2-wrapper {
    margin-bottom: 3rem; /* 48px */
}

.surveys .sub-title {
    color: #FF0000;
    text-align: center;
    margin-bottom: 1.25rem; /* 20px */
    margin-top: -0.25rem; /* -4px */
}

.surveys .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

.surveys .form-group .required {
    color: #fff;
    background: #800000;
    padding: 0.125rem 0.25rem; /* 2px 4px */
    border-radius: 0.1875rem; /* 3px */
    font-size: 0.5rem; /* 8px */
    display:inline-block;
    white-space: nowrap;
}

.surveys .form-group .option-group {
    margin-top: 1.5rem; /* 24px */
}

.surveys .form-group .option-group .option-label {
    margin-top: -0.5rem; /* -8px */
}

.surveys .form-group .option-group p {
    padding-left: 0.125rem; /* 2px */
    margin-top: -0.25rem; /* -4px */
    width: 24.25rem;
    word-break: break-word;
    font-size: 1rem; /* 16px */
    margin-bottom: 0rem;
    line-height: 1.5;
}

.surveys .form-group .option-group .radio-group {
    gap: 0.5rem; /* 8px */
    display: flex;
    flex-direction: column;
    margin-top: 2rem; /* 32px */
}

.surveys .form-group .option-group .paragraph {
    margin-bottom: 3rem; /* 48px */
}

.surveys .form-group .option-group .radio-group {
    gap: 0.5rem; /* 8px */
    display: flex;
    flex-direction: column;
    margin-top: 2rem; /* 32px */
}

.surveys .form-group .form-control {
    width: 100%;
    height: 2.375rem; /* 38px */
    padding: 0.5rem 0.75rem; /* 8px 12px */
    font-size: 0.875rem; /* 14px */
    line-height: 1.42857143;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 0rem; /* 0px */
    box-sizing: border-box;
}

.surveys .form-group textarea.form-control {
    height: auto;
    min-height: 15rem; /* 120px */
    resize: vertical;
    background-color: #f5f5f5;
}

.option-group input[type="radio"] {
    margin-right: 0.75rem; /* 12px */
    transform: scale(1.3);
    accent-color: #5ba4d8;
}

.option-group span {
    color: #333;
    user-select: none;
    cursor: pointer !important;
}

.surveys .form-action {
    margin-top: 5.5rem; /* 88px */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px */
}

/* Form action buttons */
.surveys .button {
    max-width: 17.5rem; /* 280px */
    display: block;
    padding: 0.5rem 1rem; /* 8px 16px */
    border: none;
    border-radius: 0.375rem; /* 6px */
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.surveys .button:not(.btn-back):not(.floating-save-btn) {
    background-color: #5ba4d8;
    color: #fff;
}

.surveys .button:not(.btn-back):not(.floating-save-btn):hover {
    background-color: #4a93c7;
}

.surveys .btn-back {
    background-color: #F5C15D;
    color: #fff;
}

.surveys .article {
    padding: 1rem; /* 16px */
    max-width: 100%;
    margin: auto;
    background-color: #ffffff;
}

.surveys .article h2 {
    color: #5ba4d8;
    font-size: 1rem; /* 16px */
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem; /* 8px */
}

.article.surveys.success-box {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.article.surveys.success-box .success-box-header {
   margin-bottom: 50%;
}

.article.surveys.success-box .success-box-header .success-box-header__subtext {
    margin-top: 3rem; /* 16px */
}

.empty-message {
  text-align: center;
  margin-bottom: 100px;
}

.survey-list-box {
    max-height: 500px;
    padding: 10px 0;
}

.survey-notice{
    margin-top: 20px;
    margin-bottom: 50px;
}

/* ------------- Mayor Suggestions ------------- */

.back_button_container {
    display: flex;
    justify-content: center;
    margin-bottom: 6rem;
}

.mayor_suggestion_container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mayor-suggestion-rule {
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.mayor-suggestion-rule p {
    margin: 0;
}

#questionnaire-confirm-view button{
    margin:20px auto;
}

.mayor_suggestion_list ul.page_navi {
    display: flex;
    margin-bottom: 1.5rem;
    justify-content: left;
}

.mayor_suggestion_list ul.page_navi li {
    padding: 0 1rem;
}

.mayor_suggestion_list ul.page_navi li a {
    display: block;
    padding: 0.2rem 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mayor_suggestion_list ul.page_navi li a.active {
    background-color: #e9e9e9;
}

.response_badge {
    background-color: #F46D6D;
    color: white;
    padding: 0.25rem 0.625rem; /* 4px 10px */
    font-size: 0.75rem;
    border-radius: 0px;
    bottom: 0;
    left: 0;
}

.title-question{
    font-family: "YuGothic","游ゴシック体", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic";
}

.date {
    margin: 0 0 18px;
}

.btn-questionnaire {
    width: 280px !important;
    height: 52px !important;
}

.mh30 {
    min-height: 30rem;
}

.qsn-text {
    pointer-events: none;
}

.instruct-text {
    width: auto !important;
}

.title-question-suggestion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 9px;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    color: #000;
}

.checkbox-option, .radio-option{
    pointer-events: none;
}

.checkbox-option span, .radio-option span {
    pointer-events: auto;
    cursor: pointer;
}

.fill-blank-text{
    padding: 0 !important;
}

label {
    cursor: text !important;
    font-size: 1rem !important;
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif !important;
}

.table02 th{
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;      
}

.checkbox-table span, .rating-option span {
    cursor: pointer !important;
}

.no-action-button:hover{
    text-decoration: none;
    box-shadow: none;
    opacity: 1;
    cursor: default;
}

.form-overlay-wrapper {
    position: relative;
}

.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: transparent;
    cursor: not-allowed;
}

.nested-question {
    margin-top: 1rem;
}

.is-read {
    color: #686868;
}

.overflow-visible{
 overflow: visible;
}

.f-0{
    font-size: 0 !important;
}

.w-30{
  width: 30px;
}

#user-form-submit-btn{
  height: 52px;
}

#form-update button{
   margin:20px auto;
}

#form-create button{
   margin:20px auto;
}

.my-0{
 margin:0 auto;
}

button, a.button{
    padding: 8px 12px;
}

.article{
    overflow-wrap:anywhere;
    word-break:break-word;
    hyphens:auto;
}

.survey-detail-review  > * {
    cursor: not-allowed !important;
    color:#000000 !important;
}

.survey-detail-review  .checkbox-option span,
.survey-detail-review  .radio-option span {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.survey-detail-review  .question-wrapper__component .questionnaire-table th,
.survey-detail-review  .question-wrapper__component .checkbox-table th,
.survey-detail-review  .question-wrapper__component .text-table th {
    background:#ffffff;
    font-weight: 700;
    font-size: 13px;
}

.survey-detail-review  input[type="radio"] + span, 
.survey-detail-review  input[type="checkbox"] + span ,
.survey-detail-review  .question-wrapper__component .table-text-input{
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.survey-detail-review  .table02 .th>div table {
    color: #000000;
}