/**
 * 画面デザイン用に新規でCSSを追加する時に、追加したものかどうかを
 * わかりやすくするために、CSSファイル名をcustom_css.cssとしています。
 */

.c-textarea.--setting-edit,
.c-textarea__readonly.--setting-edit {
    height: 7.4em
}

.cautions{
    color: #000000;
    font-weight: bold;
    background-image: linear-gradient(to bottom, transparent 50%, #fcee21 50%);
}

.c-login-form__error {
    color: #d9534f;
    text-align: center;
    margin-bottom: 15px;
}

.circle_button{
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    background: #757575;
    color: #FFF;
    width: 1.2em;
    height: 1.2em;
    text-decoration: none;
    text-align: center;
    margin: 10px 0;
}

.c-modal__button--ok {
    background: #2d527c;
    color: #fff;
    transition: background-color .3s
}

.c-modal__button--ok:hover {
    background: #1e3b5a
}

.l-input__lsit-has-radio input[type="checkbox"],
.c-radio-list input[type="checkbox"] {
    margin-top: 12px;
}

.c-file-list {
    max-width: 40vw
}

.c-modal_data_viewer {
    width: 520px;
    padding: 2.5rem;
    border-radius: 12px;
    background: #d3d3d3;
    box-shadow: 0px 6px 6px rgba(228, 228, 228, .7);
    text-align: center;
    pointer-events: none
}

.is-active .c-modal_data_viewer {
    pointer-events: auto
}

figure.p-logo__ysreading a {
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 12px;
    margin-top: 0.5em;
    white-space: nowrap;
}

/* ========== 画像ビューア ========== */
.c-learning-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-image {
    width: 80%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.c-learning-image .p-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.c-learning-image .p-image { 
    max-width: 600px!important;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background-color 0.2s;
    user-select: none;
    padding: 0;
    z-index: 10;
}

.nav:hover {
    background-color: rgba(0,0,0,0.7);
}

.nav.left {
    left: 20px;
}

.nav.right {
    right: 20px;
}

.p-answer__list-item.is-selected {
  background-color: #d1e7fd;
  border-color: #0d6efd;
  color: #0a58ca;
  font-weight: bold;
  box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

.c-login-form__input {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    background: rgba(0, 0, 0, 0);
    background-image: none;
    outline: none;
    box-shadow: none;
    color: var(--text-color);
    text-indent: .01px;
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none
}

.c-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15); /* 半透明の黒 */
  z-index: 999; /* モーダルより手前に表示 */
  display: none; /* 初期状態では非表示 */
  backdrop-filter: blur(8px) saturate(120%);
  opacity: 0;
}

.c-modal-overlay.is-active {
  display: block;
  opacity: 1;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -20px;
  margin-bottom: 20px;
}

.dicom-launch-center {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.dicom_check_button{
  background-color: #fff;
  border: solid 2px #2b62f7;
  color: #2b62f7;
  border-radius: 10px;
  padding: 10px 30px;
  text-decoration: none;
  font-size: 1em;
}
.dicom_check_button:hover {
  color: #fff;
  background-color: #2b62f7;
}

/* Pagination */
.c-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0;
    margin: 0 0 0.5rem 0;
}

.c-pagination .p-info {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

.c-pagination .p-buttons {
    display: flex;
    gap: 0.4rem;
}

.c-pagination .p-btn {
    padding: 0.4rem 1rem;
    border: 1px solid #64b1aa;
    background: #fff;
    color: #64b1aa;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    min-width: 2.5rem;
}

.c-pagination .p-btn.--active {
    background: #64b1aa;
    color: white;
}

.c-pagination .p-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
