@media (min-width: 769px) {
  body {
    padding-top: 60px;
    overflow-wrap:  break-word;
  }
}
@media (max-width: 768px) {
  body {
    padding-top: 60px;
    margin-bottom: 60px;
    overflow-wrap:  break-word;
  }
}
@media (min-width: 769px) {
  #notice {
    position: fixed;
    left: calc(50% + 100px);
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 9999;
  }
  #alert {
    position: fixed;
    left: calc(50% + 100px);
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 9999;
  }
}
@media (max-width: 768px) {
  #notice {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    z-index: 9999;
  }
  #alert {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    z-index: 9999;
  }
}

@media (min-width: 769px) {
  .nav_menu_text {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .nav_menu_text {
    font-size: 0.875rem;
  }
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.shadow-image {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
}

.head_link {
  height: 30px;
  width: 30px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.sidebar {
  width: 200px;
  position: fixed;
  top: 50px;
  left: 0;
  height: 100%;
  z-index: 1000;
  padding-top: 20px;
}
.sidebar.collapsed {
  width: 80px;
}
.sidebar.hidden {
  display: none;
}

.sidebar ul .selected {
  background-color: var(--bs-tertiary-bg);
  border-radius: 5px;
}
.sidebar .nav li a:hover {
  background-color: var(--bs-tertiary-bg);
  border-radius: 5px;
}
.sidebar .nav-link {
  display: flex;
  align-items: center;
}
.sidebar .nav-link .nav_link_text {
  margin-left: 16px;
}
.sidebar .nav-link .ms-3 {
  display: inline-block;
}
.sidebar.collapsed .nav-link {
  width: 70px;
  height: 70px;
  justify-content: center;
  flex-direction: column; /* 追加 */
}
.sidebar.collapsed .nav-link .nav_link_text {
  display: block; /* 変更 */
  font-size: 0.375rem; /* 追加 */
  margin: 0px;
  padding-top: 5px;
}
.sidebar.collapsed .nav-link .nav_link_atelier_icon {
  margin: 0px !important;
}
.sidebar .sidebar_submenu .nav-link {
  padding-left: 2rem;
}
.sidebar.collapsed .sidebar_submenu .nav-link {
  padding-left: 1rem;
}

.footer_link {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (min-width: 769px) {
  .main {
    padding: 10px;
    padding-bottom: 120px;
  }
}
@media (max-width: 768px) {
  .main {
    padding: 10px;
    padding-bottom: 180px;
  }
}

.main {
  margin-left: 200px;
}
.main.collapsed {
  margin-left: 80px;
}
.main.hidden {
  margin-left: 0;
}


* {
  margin: 0;
  padding: 0;
}

.app {
  width: 100vw;
  height: 100vh;
}

.text_overflow_ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.border-text {
  display: flex;
  align-items: center;
}
.border-text:before,
.border-text:after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background-color: #666;
}
.border-text:before {
  margin-right: 1rem;
}
.border-text:after {
  margin-left: 1rem;
}

.hover-effect-link:hover {
  border-bottom: solid 1px #ACB5BD;
}
.hover-effect-button {
  padding: 8px;
}
.hover-effect-button:hover {
  background-color: var(--bs-tertiary-bg);
  padding: 8px;
  border-radius: 15%;
  opacity: 0.9;
}

.list_image_classic img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.custom-swiper {
  width: 100%;
  --swiper-navigation-color: #085ED6;
  --swiper-pagination-color: #085ED6;
}
.custom-swiper-slide {
  text-align: center;
  background: var(--bs-body-bg);

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}
@media (min-width: 769px) {
  .custom-slide {
    position: relative;
    width: 80%;
    max-width: 540px;
  }
}
@media (max-width: 768px) {
  .custom-slide {
    position: relative;
    width: 80%;
  }
}
.card_custom-swiper {
  width: 80%;
  max-width: 360px;
  --swiper-navigation-color: #085ED6;
  --swiper-pagination-color: #085ED6;
}
.card_custom-swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #212529;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.text-truncate-two-lines {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 769px) {
  .error_wrapper {
    height: calc(100vh - 120px - 60px - 10px);
    width: 100%;
  }
}
@media (max-width: 768px) {
  .error_wrapper {
    height: calc(100vh - 120px - 60px - 60px - 10px);
    width: 100%;
  }
}

@media (min-width: 769px) {
  .data_modal {
    width: 80% !important;
    max-width: 768px !important;
    overflow: hidden !important;
    box-sizing: content-box !important;
    padding: 0.5rem !important;
  }
  @media (max-height: 399px) {
    .data_modal_margin {
      margin: 19px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 248px !important;
    }
  }
  @media (min-height: 400px) {
    .data_modal_margin {
      margin: 19px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 248px !important;
    }
  }
  @media (min-height: 500px) {
    .data_modal_margin {
      margin: 31px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 310px !important;
    }
  }
  @media (min-height: 600px) {
    .data_modal_margin {
      margin: 43px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 372px !important;
    }
  }
  @media (min-height: 700px) {
    .data_modal_margin {
      margin: 55px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 434px !important;
    }
  }
  @media (min-height: 800px) {
    .data_modal_margin {
      margin: 66px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 496px !important;
    }
  }
  @media (min-height: 900px) {
    .data_modal_margin {
      margin: 78px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 558px !important;
    }
  }
  @media (min-height: 1000px) {
    .data_modal_margin {
      margin: 90px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 620px !important;
    }
  }
  @media (min-height: 1100px) {
    .data_modal_margin {
      margin: 101px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 682px !important;
    }
  }
  @media (min-height: 1200px) {
    .data_modal_margin {
      margin: 114px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 744px !important;
    }
  }
  @media (min-height: 1300px) {
    .data_modal_margin {
      margin: 125px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 806px !important;
    }
  }
  @media (min-height: 1400px) {
    .data_modal_margin {
      margin: 137px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 868px !important;
    }
  }
  @media (min-height: 1500px) {
    .data_modal_margin {
      margin: 149px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 930px !important;
    }
  }
  @media (min-height: 1600px) {
    .data_modal_margin {
      margin: 161px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 992px !important;
    }
  }
  @media (min-height: 1700px) {
    .data_modal_margin {
      margin: 173px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 1054px !important;
    }
  }
  @media (min-height: 1800px) {
    .data_modal_margin {
      margin: 184px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 1116px !important;
    }
  }
  @media (min-height: 1900px) {
    .data_modal_margin {
      margin: 196px auto 0 auto !important;
    }
    .data_modal_body {
      overflow: scroll !important;
      height: 1178px !important;
    }
  }
}
@media (max-width: 768px) {
  .data_modal {
    width: 100% !important;
    max-width: 768px !important;
    overflow: hidden !important;
    box-sizing: content-box !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
  }
  .data_modal_body {
    overflow: scroll !important;
    height: 62vh !important;
  }
  .data_modal_body_half {
    height: 38vh !important;
  }
}
.data_modal_header {
  height: 60px;
}
.data_modal_footer {
  border: none !important;
}

@media (max-width: 768px) {
  .contextmenu {
    position: fixed !important;
    width: 100vw !important;
    max-width: 100vw !important;
    bottom: 0px !important;
    left: 0px !important;
    z-index: 9999 !important;
    border: none !important;
  }
  .contextmenu a {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

input {
  background-color: white;
}
@media (min-width: 769px) {
  .input_group input[type="datetime-local"] {
    width: auto;
  }
  .input_group input[type="checkbox"] {
    margin-left: .5rem;
    transform: scale(1.5);
  }
  .input_group .checkbox_wrapper {
    margin-bottom: 2.0rem;
  }
  .input_group select {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .input_group input[type="datetime-local"] {
    width: auto;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
  .input_group input[type="checkbox"] {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
  .input_group .checkbox_wrapper {
  }
  .input_group select {
    width: auto;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
  .input_group .long_text {
    width: 100% !important;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }
  .input_group .target_select_button {
    width: 6.0rem;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
}

@media (min-width: 769px) {
  .form_description_none {
    margin-right: 0rem;
  }
  .form_description_switch {
    margin-right: 0rem;
  }
  .form_description_datetime {
    margin-right: 0rem;
  }
  .form_description_select {
    margin-right: 0rem;
  }
  .form_attr_str {
    margin-right: 0rem;
  }
}
@media (max-width: 768px) {
  .form_description_none {
    margin-right: 0rem;
  }
  .form_description_switch {
    margin-right: 6.0rem;
  }
  .form_description_datetime {
    margin-right: 15.0rem;
  }
  .form_description_select {
    margin-right: 8.0rem;
  }
  .form_attr_str {
    margin-right: 8.0rem;
  }
}

#presentation #sortable .line_border {
  border-top: 2px solid var(--bs-body-bg);
}
#presentation #sortable .sortable-chosen .line_border {
  border-top: 2px solid var(--bs-body-bg);
}
.presentation_line {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 6px;
}
.presentation_line_command:hover {
  background-color: var(--bs-tertiary-bg) !important;
}

/* ===== ブロック編集ツールバー (Phase 1) ===== */
.presentation_line {
  padding-top: 2.5rem !important;
  padding-left: 2.25rem !important;
}
.block-drag-handle {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: grab;
  font-size: 1.1rem;
  padding: 0;
  z-index: 10;
}
.block-drag-handle:hover {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}
.block-drag-handle:active {
  cursor: grabbing;
}
.block-toolbar {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2px;
  z-index: 10;
}
.block-toolbar .btn-block-toolbar {
  padding: 4px 8px;
  font-size: 0.875rem;
  color: var(--bs-body-color);
  background: transparent;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.2;
}
.block-toolbar .btn-block-toolbar:hover {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}
.block-toolbar .btn-block-toolbar.text-danger:hover {
  background: var(--bs-danger-bg-subtle);
  color: var(--bs-danger);
}
.block-toolbar .btn-block-toolbar .ms-1 {
  white-space: nowrap;
}
.block-toolbar .handle {
  cursor: grab;
}
.block-toolbar .handle:active {
  cursor: grabbing;
}
.block-toolbar-divider {
  width: 1px;
  align-self: stretch;
  background: var(--bs-border-color);
  margin: 4px 2px;
}
@media (max-width: 768px) {
  .block-toolbar .btn-block-toolbar .ms-1 {
    display: none;
  }
  .block-toolbar .btn-block-toolbar:first-child .ms-1 {
    display: inline;
  }
}

.article_body img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (min-width: 769px) {
  .article_body img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
@media (max-width: 768px) {
  .article_body img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    overflow: hidden !important;
  }
}

#presentation_targets_modal .target_selector {
  z-index: 1;
  cursor: pointer;
}
#presentation_targets_modal .target_selector:hover {
  background-color: var(--bs-secondary-bg) !important;
  border: solid 1px var(--bs-primary) !important;
}

#footer-buttons {
  width: 100%;
}
/* モーダル表示中は固定フッタを背景(backdrop)の下に沈める。
   画面の低いスマホでは、報酬モーダルの「閉じる」が固定フッタ(z-index:1500)の下に隠れて押せなかった */
body.modal-open #footer-buttons {
  z-index: 1040 !important;
}
#footer-buttons.expanded {
  width: calc(100% - 200px); /* サイドバーの幅を引く */
  left: calc(200px); /* サイドバーの幅の半分を追加 */
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}
#footer-buttons.collapsed {
  width: calc(100% - 80px); /* サイドバーの幅を引く */
  left: calc(80px); /* サイドバーの幅の半分を追加 */
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}

.contents_area {
  width: 100%;
  position: relative;
  padding-bottom: 120px;
}
.action_area {
  position: fixed;
  bottom: 0px;
  background-color: var(--bs-secondary-bg);
  width: 100%;
  padding-top: 5px;
  text-align: center;
  margin-top: 15px;
  z-index: 999;
  transform: translateX(-50%);
  border-top: solid 1px var(--bs-tertiary-bg);
}
.action_area.expanded {
  width: calc(100% - 200px); /* サイドバーの幅を引く */
  left: calc(50% + 100px); /* サイドバーの幅の半分を追加 */
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}
.action_area.collapsed {
  width: calc(100% - 80px); /* サイドバーの幅を引く */
  left: calc(50% + 40px); /* サイドバーの幅の半分を追加 */
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}
.action_area.hidden {
  left: calc(50%);
}
@media (max-width: 768px) {
  .login_induction_modal, .stepsModal, .atelierStepsModal, .tutorialCompleteModal, .tutorialPrerequisitesModal, .templateModal, .onboardingV2PathModal {
    width: 100% !important;
    max-width: 768px !important;
    overflow: hidden !important;
    box-sizing: content-box !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
  }
}
@media (min-width: 769px) {
  .steps_modal_body {
    overflow: scroll !important;
    height: 38vh !important;
  }
}
@media (max-width: 768px) {
  .steps_modal_body {
    overflow: scroll !important;
    height: 38vh !important;
  }
}

#presentation .aspect-ratio-1-1, .gallery_show .aspect-ratio-1-1, .aspect-ratio-1-1 {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1のアスペクト比 */
  overflow: hidden; /* 画像がコンテナ外にはみ出さないようにする */
}

#presentation .aspect-ratio-1-1 img, .gallery_show .aspect-ratio-1-1 img, .aspect-ratio-1-1 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center; /* 画像を中央に配置 */
}

.aspect-ratio-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9のアスペクト比 */
  background-color: var(--bs-tertiary-bg); /* 背景色を設定 */
}

.aspect-ratio-16-9 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-ratio-16-9-justfit {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: var(--bs-secondary-bg);
  overflow: hidden;
}

.aspect-ratio-16-9-justfit img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.aspect-ratio-16-9-justfit.fill-mode img {
  object-fit: cover;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .card-thumbnail-wrapper {
    padding-bottom: 56.25%; /* モバイルでも16:9維持 */
  }
}

.page_title {
  margin-bottom: 16px;
}

.centered-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 2.2rem;
  text-decoration: none; /* 下線を消す */
}

.grayed-out {
  opacity: 0.5;
  pointer-events: none;
}

.breadcrumb-link {
  text-decoration: none;
  color: rgba(173, 181, 189, 0.75);
}
.breadcrumb-link:hover {
  text-decoration: underline;
}

.release-status-icon-wrapper {
  border-radius: 0.25rem;
  padding: 0.25rem;
  width: 30px;
  height: 30px;
}

.tag-suggestions {
  display: none;
  position: absolute;
  background-color: var(--bs-tertiary-bg);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
  text-align: center;
}

.tag-suggestions-with-button {
  width: calc(100% - 80px);
}

.tag-suggestion {
  display: block;
  width: 99%;
  text-align: center;
  padding: 8px 12px;
  color: #F8F9FA;
  background: rgba(var(--bs-success-rgb), var(--bs-bg-opacity));
}

.tag-suggestion:hover {
  border: none;
  background: rgba(var(--bs-success-rgb), var(--bs-bg-opacity));
  opacity: 0.8;
}

.tag {
  border: none;
  color: #F8F9FA;
  background: rgba(var(--bs-success-rgb), var(--bs-bg-opacity));
}

.tag:hover {
  border: none;
  background: rgba(var(--bs-success-rgb), var(--bs-bg-opacity));
  opacity: 0.8;
}

.default_user_icon {
}

.card-title-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes flash {
  0% { background-color: #343A3F; }
  100% { background-color: transparent; }
}

.flash-animation {
  animation: flash 2s ease-in-out;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* タイムラインの基本スタイル */
.timeline {
  position: relative;
  padding: 20px 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bs-tertiary-bg);
  left: 0%;
  margin-left: -2px;
}

.timeline-item {
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bs-success);
  margin-left: -10px;
}

.timeline-item .timeline-content {
  padding: 10px 20px;
  border-radius: 5px;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 55%;
}

/* タイムライン(交差)の基本スタイル */
.timeline-alternating {
  position: relative;
  padding: 20px 0;
  list-style: none;
}

.timeline-alternating::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bs-tertiary-bg);
  left: 50%;
  margin-left: -2px;
}

.timeline-alternating-item {
  margin-bottom: 20px;
  position: relative;
}

.timeline-alternating-item::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bs-success);
  margin-left: -10px;
}

.timeline-alternating-item .timeline-alternating-content {
  padding: 10px 20px;
  border-radius: 5px;
  position: relative;
}

.timeline-alternating-item:nth-child(odd) .timeline-alternating-content {
  left: 0;
}

.timeline-alternating-item:nth-child(even) .timeline-alternating-content {
  left: 55%;
}

.accordion-button:not(.collapsed) {
  background-color: initial !important;
  color: var(--bs-secondary) !important;
  border-color: #ACB5BD !important;
  box-shadow: none !important;
}
.accordion-button {
  box-shadow: none !important;
}
.accordion-button:hover {
  color: var(--bs-secondary) !important;
}

#userDropdown:hover {
  opacity: 0.8;
}

.add-atelier-button:hover {
  opacity: 0.8;
}

.hover-effect-opacity-button:hover {
  opacity: 0.8;
}
.hover-effect-color-button:hover {
  opacity: 0.6;
}
.hover-effect-underline-link {
  border-bottom: solid 1px #8B909800;
}
.hover-effect-underline-link:hover {
  border-bottom: solid 1px #8B9098;
}
.hover-card {
}
.hover-card:hover {
  opacity: 0.6;
}

/* パンくずリストのリンクスタイル */
.breadcrumb-item a.text-decoration-none:hover {
  text-decoration: underline !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
}

.highlight {
  z-index: 3001 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
  pointer-events: none !important;
}
.highlight-light-text {
  color: var(--bs-light);
}

.tutorial-message {
  position: absolute;
  padding: 10px;
  border-radius: 5px;
  z-index: 3002;
}

.like-button:hover {
  color: var(--bs-secondary) !important;
  border: solid 1px var(--bs-secondary) !important;
}

/* YouTubeのレスポンシブ対応 */
.youtube-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9のアスペクト比 */
  height: 0;
  overflow: hidden;
}

.youtube-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.notification_target_button:hover {
  background-color: var(--bs-tertiary-bg) !important;
}

.notification-card:hover {
  background-color: var(--bs-tertiary-bg) !important;
}

@keyframes bell-shake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.bell-shake {
  animation: bell-shake 1s infinite;
}

.has_shadow_presentation {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 769px) {
  .list_article_timeline_alternating_text {
  }
}
@media (max-width: 768px) {
  .list_article_timeline_alternating_text {
    background-color: var(--bs-body-bg);
  }
}

.driver-to-btn-primary {
  --bs-btn-padding-x: 0.75rem !important;
  --bs-btn-padding-y: 0.375rem !important;
  --bs-btn-font-size: 1rem !important;
  --bs-btn-font-weight: 400 !important;
  --bs-btn-line-height: 1.5 !important;
  --bs-btn-color: var(--bs-body-color) !important;
  --bs-btn-bg: transparent !important;
  --bs-btn-border-width: var(--bs-border-width) !important;
  --bs-btn-border-color: transparent !important;
  --bs-btn-border-radius: var(--bs-border-radius) !important;
  --bs-btn-hover-border-color: transparent !important;
  --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075) !important;
  --bs-btn-disabled-opacity: 0.65 !important;
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(49, 132, 253 !important, .5) !important;
  display: inline-block !important;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x) !important;
  font-family: var(--bs-btn-font-family) !important;
  font-size: var(--bs-btn-font-size) !important;
  font-weight: var(--bs-btn-font-weight) !important;
  line-height: var(--bs-btn-line-height) !important;
  color: var(--bs-btn-color) !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color) !important;
  border-radius: var(--bs-btn-border-radius) !important;
  background-color: var(--bs-btn-bg) !important;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
  --bs-btn-color: #fff !important;
  --bs-btn-bg: #0d6efd !important;
  --bs-btn-border-color: #0d6efd !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #0b5ed7 !important;
  --bs-btn-hover-border-color: #0a58ca !important;
  --bs-btn-focus-shadow-rgb: 49, 132, 253 !important;
  --bs-btn-active-color: #fff !important;
  --bs-btn-active-bg: #0a58ca !important;
  --bs-btn-active-border-color: #0a53be !important;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
  --bs-btn-disabled-color: #fff !important;
  --bs-btn-disabled-bg: #0d6efd !important;
  --bs-btn-disabled-border-color: #0d6efd !important;
  text-shadow: none !important
}

.driver-to-btn-secondary {
  --bs-btn-padding-x: 0.75rem !important;
  --bs-btn-padding-y: 0.375rem !important;
  --bs-btn-font-family: ;
  --bs-btn-font-size: 1rem !important;
  --bs-btn-font-weight: 400 !important;
  --bs-btn-line-height: 1.5 !important;
  --bs-btn-color: var(--bs-body-color) !important;
  --bs-btn-bg: transparent !important;
  --bs-btn-border-width: var(--bs-border-width) !important;
  --bs-btn-border-color: transparent !important;
  --bs-btn-border-radius: var(--bs-border-radius) !important;
  --bs-btn-hover-border-color: transparent !important;
  --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075) !important;
  --bs-btn-disabled-opacity: 0.65 !important;
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5) !important;
  display: inline-block !important;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x) !important;
  font-family: var(--bs-btn-font-family) !important;
  font-size: var(--bs-btn-font-size) !important;
  font-weight: var(--bs-btn-font-weight) !important;
  line-height: var(--bs-btn-line-height) !important;
  color: var(--bs-btn-color) !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color) !important;
  border-radius: var(--bs-btn-border-radius) !important;
  background-color: var(--bs-btn-bg) !important;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
  --bs-btn-color: #fff !important;
  --bs-btn-bg: #6c757d !important;
  --bs-btn-border-color: #6c757d !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #5c636a !important;
  --bs-btn-hover-border-color: #565e64 !important;
  --bs-btn-focus-shadow-rgb: 130, 138, 145 !important;
  --bs-btn-active-color: #fff !important;
  --bs-btn-active-bg: #565e64 !important;
  --bs-btn-active-border-color: #51585e !important;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
  --bs-btn-disabled-color: #fff !important;
  --bs-btn-disabled-bg: #6c757d !important;
  --bs-btn-disabled-border-color: #6c757d !important;
  text-shadow: none !important
}

.driver-to-link {
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)) !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(13, 110, 253, 0.3);
    transform: scale(1.05);
  }
}

.tutorial-save-button {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Turbo Frame ローディング状態 */
turbo-frame#new_presentation[busy],
turbo-frame[id^="presentation_"][busy] {
  display: block;
  position: relative;
  pointer-events: none;
  min-height: 60px;
}

turbo-frame#new_presentation[busy]::before,
turbo-frame[id^="presentation_"][busy]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

turbo-frame#new_presentation[busy]::after,
turbo-frame[id^="presentation_"][busy]::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border: 3px solid #dee2e6;
  border-top-color: #6c757d;
  border-radius: 50%;
  animation: turbo-frame-spin 0.8s linear infinite;
  z-index: 11;
}

@keyframes turbo-frame-spin {
  to {
    transform: rotate(360deg);
  }
}

/* コンテンツタブ ローディング状態 */
.content-tab-loading {
  display: none;
  position: relative;
  min-height: 100px;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
}

.content-tab-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #dee2e6;
  border-top-color: #6c757d;
  border-radius: 50%;
  animation: turbo-frame-spin 0.8s linear infinite;
}

#content_tabs .nav-link {
  touch-action: manipulation;
}

/* ホーム画面 モバイル最適化 */
@media (max-width: 768px) {
  /* 最新の投稿カード */
  .latest-post-card {
    width: 240px !important;
  }

  /* 新着アトリエカード */
  .showcase-atelier-card {
    width: 140px !important;
  }

  .showcase-atelier-card .card-img-to img {
    max-width: 140px !important;
  }

  /* 自分のアトリエ・参加中のアトリエカード */
  .owned-atelier-card {
    min-width: 200px !important;
    max-width: 200px !important;
  }

  .owned-atelier-card .card-img-to img {
    max-width: 90px !important;
  }

  /* アトリエ管理画面 */
  .admin-atelier-card {
    height: 200px !important;
  }

  .admin-atelier-card .card-img-to img {
    max-width: 80px !important;
  }

  .admin-atelier-card .card-body {
    padding: 0.5rem !important;
  }

  .admin-atelier-card .card-title {
    margin-bottom: 0.25rem !important;
  }

  .admin-atelier-card .btn {
    margin-top: 0.5rem !important;
    padding: 0.25rem 0.75rem !important;
  }

  .admin-atelier-add {
    height: 200px !important;
  }
}

.poll-body > *:last-child {
  margin-bottom: 0;
}

/* HOMEセクション見出し(コンテンツ優位の控えめな階層) */
.home-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}

/* HOMEフィード行のアトリエアイコン */
.atelier-feed-icon {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

/* HOMEフィード行の記事サムネイル(16:9) */
.atelier-feed-thumbnail {
  width: 107px;
  height: 60px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .atelier-feed-thumbnail {
    width: 89px;
    height: 50px;
  }
}

/* HOMEフィード行の新着インジケーター(24時間以内の投稿) */
.new-post-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  vertical-align: middle;
}
blockquote {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 40px;
  margin-inline-end: 40px;
  border-left: 2px solid #ccc;
  margin-left: 1.5rem;
  padding-left: 1rem;
}

code {
  background-color: #e8e8e8;
  border-radius: 3px;
  padding: 0.1rem 0.2rem;
}
/* Bootstrap 5 カスタマイズ */
[data-bs-theme=""] {
  --bs-body-bg: #EBEBEB;
  --bs-body-bg-rgb: 235, 235, 235;
  --bs-secondary-bg: #f5f5f5;
  --bs-secondary-bg-rgb: 245, 245, 245;
  --bs-tertiary-bg: #c0c0c0;
  --bs-tertiary-bg-rgb: 192, 192, 192;
  --bs-border-color: #c8c8c8;
  --bs-tertiary-bg-rgb: 224, 224, 224;
  --bs-warning-rgb: 240, 173, 5;
  .form-control:disabled {
    background-color: var(--bs-tertiary-bg) !important;
  }
}
@media (min-width: 769px) {
  .add_content_button {
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    margin-right: 30px;
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  .add_content_button {
    position: fixed;
    bottom: 60px;
    right: 0px;
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    margin-right: 30px;
    font-size: 2.2rem;
  }
}
.add_content_button:hover {
  opacity: 0.8;
}
.devise_shared {
  text-align: center;
}
h1 {
  font-size: 2rem !important;
}
h2 {
  font-size: 1.75rem !important;
}
h3 {
  font-size: 1.5rem !important;
}
h4 {
  font-size: 1.25rem !important;
}
h5 {
  font-size: 1.15rem !important;
}
h6 {
  font-size: 1rem !important;
}

/* カスタムフォントサイズクラス (旧 font_size.scss の $font-sizes マップを展開したもの) */
.fs-1 {
  font-size: 1.5rem !important;
}
.fs-2 {
  font-size: 1.35rem !important;
}
.fs-3 {
  font-size: 1.25rem !important;
}
.fs-4 {
  font-size: 1.15rem !important;
}
.fs-5 {
  font-size: 1rem !important;
}
.fs-6 {
  font-size: 0.875rem !important;
}
.gallery_show {
  overflow: hidden;
}
@media (min-width: 769px) {
  .gallery_show img {
  }
}
@media (max-width: 768px) {
  .gallery_show img {
  }
}
.position-relative [data-horizontal-scroll-target="container"] {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.position-relative [data-horizontal-scroll-target="container"]::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.position-relative button[data-horizontal-scroll-target="leftArrow"],
.position-relative button[data-horizontal-scroll-target="rightArrow"] {
  transition: opacity 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.position-relative button[data-horizontal-scroll-target="leftArrow"]:hover,
.position-relative button[data-horizontal-scroll-target="rightArrow"]:hover {
  color: var(--bs-secondary) !important;
  opacity: 1 !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .position-relative button[data-horizontal-scroll-target="leftArrow"],
  .position-relative button[data-horizontal-scroll-target="rightArrow"] {
    width: 35px !important;
    height: 35px !important;
  }
  .position-relative button[data-horizontal-scroll-target="leftArrow"] i,
  .position-relative button[data-horizontal-scroll-target="rightArrow"] i {
    font-size: 1rem;
  }
}
#editor {
  height: 400px; /* 高さを固定 */
  overflow: visible;
}
.quill_editor {
  height: 400px; /* 高さを固定 */
}
.ql-editor p {
  font-size: 16px !important;
  margin-bottom: 1rem;
}
.ql-editor h1 {
  margin-bottom: 0.5rem;
}
.ql-editor h2 {
  margin-bottom: 0.5rem;
}
.ql-editor h3 {
  margin-bottom: 0.5rem;
}
.ql-editor h4 {
  margin-bottom: 0.5rem;
}
.ql-editor h5 {
  margin-bottom: 0.5rem;
}
.ql-editor h6 {
  margin-bottom: 0.5rem;
}
.ql-toolbar.ql-snow {
  border: solid 1px #495057;
  border-radius: 0.375rem;
}
.ql-container.ql-snow {
  margin-top: -10px;
  padding-top: 10px;
  border: solid 1px #495057;
  border-radius: 0.375rem;
}
.ql-snow .ql-picker {
  color: var(--bs-secondary);
}
.ql-snow.ql-toolbar {
  stroke: var(--bs-secondary);
}
.ql-snow .ql-stroke {
  stroke: var(--bs-secondary);
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  background-color: var(--bs-secondary-bg);
  border-color: #495057;
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  border-color: #495057;
}
.ql-snow .ql-tooltip{
  background-color: var(--bs-secondary-bg);
  color: var(--bs-secondary);
}
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
    content: attr(data-value) !important;
}
.ql-align-right {
  text-align: right;
}
.ql-align-center {
  text-align: center;
}
.ql-align-left {
  text-align: left;
}
.ql-code-block {
  background-color: #23241E;
  border-radius: 0.375rem;
  padding: 0.5rem;
}
/* 日本語入力(IME)の変換中はプレースホルダを表示しない（_form.html.erbでクラスを付与） */
.ql-editor.ql-blank.ql-composing::before {
  content: none;
}
.position-relative [data-horizontal-scroll-target="container"] {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.position-relative [data-horizontal-scroll-target="container"]::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.position-relative button[data-vertical-scroll-target="topArrow"],
.position-relative button[data-vertical-scroll-target="bottomArrow"] {
  transition: opacity 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.position-relative button[data-vertical-scroll-target="topArrow"]:hover,
.position-relative button[data-vertical-scroll-target="bottomArrow"]:hover {
  color: var(--bs-secondary) !important;
  opacity: 1 !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .position-relative button[data-vertical-scroll-target="topArrow"],
  .position-relative button[data-vertical-scroll-target="bottomArrow"] {
    width: 35px !important;
    height: 35px !important;
  }
  .position-relative button[data-vertical-scroll-target="topArrow"] i,
  .position-relative button[data-vertical-scroll-target="bottomArrow"] i {
    font-size: 1rem;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
