input.str-form,
textarea,
select,
select option {
  padding: 5px;
  /* border: 1px #26282B solid; */
  background-color: #fff;
  color: #000;
  border-radius: 8px;
}

th.portfolio-form {
  vertical-align: middle;
  width: 15%;
}

td.portfolio-form {
  width: 65%;
}

/* 新規登録フォーム(/signup, /signup/teacher)
   table+portfolio-form(共通クラス)を使わず、専用のflexレイアウトにしている。
   コンテナ幅に引っ張られて入力欄が間延びしないよう、各入力欄は固定幅で指定する。 */
.signup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
  margin: 16px auto 0;
}

.signup__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ラベルと入力欄(の1行分)だけを含むコンテナ。中央揃えの計算対象をこの2要素だけに限定することで、
   padding等の当て推量なしにalign-items: centerで正確に中央を揃えられる。
   注意書きや補足リンクはこの外側(.signup__row__note)に置き、中央揃えの計算に含めない。 */
.signup__row__main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.signup__row__label {
  flex: 0 0 280px;
  font-weight: 700;
}

.signup__row__field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.signup__input {
  box-sizing: border-box;
  min-width: 0;
}

/* 入力欄のサイズは基準(base)とその半分(half)の2種類のみ。
   半分を2つ並べたとき、間のgap(8px)を含めた合計がbaseと同じ幅になるようにしている。 */
.signup__input-base {
  width: 320px;
}

.signup__input-half {
  width: 156px;
}

/* ラベル幅(280px)+gap(24px)分だけ左に余白を入れ、入力欄の下に注意書き・補足リンクを揃える */
.signup__row__note {
  margin: 0 0 0 304px;
}

.signup__row__suffix {
  white-space: nowrap;
}

/* パスワード表示/非表示切り替え付きの入力欄。
   幅は.signup__input-base等を併用して指定し、中の入力欄自体はその100%まで広げる。 */
.signup__password__field {
  position: relative;
}

.signup__password__input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 36px;
}

.signup__password__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--sub-title);
  font-size: 1.4rem;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .signup__row__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .signup__row__label {
    flex-basis: auto;
  }

  .signup__row__field {
    width: 100%;
  }

  .signup__row__note {
    margin-left: 0;
  }

  .signup__input-base {
    width: 100%;
    max-width: 320px;
  }

  .signup__input-half {
    width: calc(50% - 4px);
    max-width: 156px;
  }
}

.signup__errors {
  color: var(--alert);
  margin: 0 5% 16px;
}

.signup__flash__notice {
  margin-bottom: 16px;
  white-space: pre-line;
}

.signup__flash__notice-success {
  color: var(--secondary);
}

.signup__flash__notice-error {
  color: var(--alert);
}

.signup__resend,
.signup__login__btn {
  margin: 12px 0;
  text-align: center;
}

.signup__resend {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  width: 100%;
  white-space: nowrap;
}

.signup__resend-sp {
  margin-top: 12px;
  text-align: center;
}

.signup__submit__btn {
  margin-top: 24px;
}

.verify__email__notice {
  background: rgba(236, 152, 26, 0.15);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--title);
  text-align: left;
  width: fit-content;
  max-width: 90vw;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .verify__email__notice {
    padding: 8px 6px;
  }
}

/* 登録完了画面(/signup/complete)を横中央に配置する */
.signup__complete {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 登録フォーム(/signup, /signup/teacher)全体を画面横幅の中央に配置する。 */
.signup__page__box {
  max-width: 760px;
  margin: 0 auto;
}

/* first_user_page.html.hamlのコンテンツ領域を、ヘッダーとフッターの間で縦中央に配置する */
.first__user__page__content {
  display: flex;
  flex-direction: column;
}

.first__user__page__layout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* button_toをテキストリンクのように見せる */
.link__button {
  background: none;
  border: none;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.submit__btn {
  max-width: 193px;
  margin-left: auto;
  margin-right: auto;

}

.submit__btn a,
.submit__btn input,
.submit__btn button {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
  margin: 0 auto;
}

.submit__btn input:hover,
.submit__btn button:hover {
  background-color: var(--secondary-hover);
  cursor: pointer;
}

/*.submit__btn input::after, .submit__btn button::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url(/assets/img/arrow-right-bb970f3817fb5e3ffd68fd2a26c78201a6e145396c0bb24179b839b77edbe8a3.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}*/

.submit__btn--disabled a,
.submit__btn--disabled input,
.submit__btn--disabled button {
  background-color: var(--disabled);
  color: var(--button-text);
  cursor: not-allowed;
}
.submit__btn--disabled input:hover,
.submit__btn--disabled button:hover {
  background-color: var(--disabled);
  cursor: not-allowed;
}

.exam__task__btn {
  max-width: 270px;
  margin: 0;
}

.exam__task__btn a {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
}

.exam__task__btn a:hover {
  background-color: var(--secondary-hover);
  cursor: pointer;
}

.exam__task__btn a::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url(/assets/img/arrow-right-bb970f3817fb5e3ffd68fd2a26c78201a6e145396c0bb24179b839b77edbe8a3.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.exam__task__btn--disabled a {
  background-color: var(--disabled);
  color: var(--button-text);
  cursor: not-allowed;
  pointer-events: none;
}

.exam__task__content {
  word-break: break-word;
}

table.result__table,
table.result__table th,
table.result__table td {
  border: 1px #26282B solid;
}

table.result__table th,
table.result__table td {
  padding: 5px;
}

table.result__table th,
table.result__table td.result__table__td__center {
  text-align: center;
}



/* アカウント画像マウスオーバー時 */
.header__menu__person__icon {
  display: flex;
  justify-content: flex-start;
  list-style-type: none;
  color: #fff;
  padding: 0;
}

.header__menu__person__icon {
  position: relative;
}

.menuSub {
  position: absolute;
  top: 100%;
  width: 150px;
  margin-left: -6px;
  padding: 10px;
  display: none;
}

.menuSub form.button_to button.logout_btn {
  padding: 5px;
  margin-left: -5px;
  margin-right: -5px;
  margin-bottom: -5px;
  display: block;
  color: #fff;
  text-decoration: none;
  background: #18191b;
}

.menuSub form.button_to button.logout_btn:hover {
  background: #3f4246;
  cursor: pointer;
}

/* 教員画面用のcss設定 */
.education__menu {
  margin-left: -70px;

}

.menuSub form.button_to button.change_btn {
  padding: 10px;
  display: block;
  color: var(--sub-title);
  text-decoration: none;
  background: #18191b;
  border-bottom: solid 1px #FFF;
  border-radius: 5px;
  width: 100%;
}

.menuSub form.button_to button.change_btn:hover {
  background: #3f4246;
  color: #FFF;
  cursor: pointer;
}

/*LMS一覧表示で両端寄席になる対策*/
.play::before,
.verify::before {
  content: "";
  display: block;
  width: 24.42%;
  order: 1;
}

.play::after,
.verify::after {
  content: "";
  display: block;
  width: 24.42%;
}

/*ログイン前ページの文言表示部分*/
.login__page__logo {
  min-height: 50%;
  max-width: 50%;
  margin: 0 auto;
  margin-top: 5%;
  text-align: center;
}

.login__page__logo__img {
  width: 70%;
}

.before_login_message {
  text-align: center;
  margin-top: 2%;
  margin-bottom: 2%;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
}

img.user__thumbnail {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}
@media screen and (max-width: 768px) {
  img.user__thumbnail {
    height: 40px;
    width: 40px;
  }
}


/*ページ下部の戻るボタン*/
.return__link {
  max-width: 193px;
  margin-left:  auto;
  margin-right:  auto;
  text-align: center;
}

.return__link a {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--return-link);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
  margin: 0 auto;
}

.return__link a:hover {
  background-color: var(--return-link-hover);
  cursor: pointer;
}


/*選択問題の選択ボックス*/
select.exam__select {
  min-width: 50%;
}

/*動画概要、講義概要のスタイル*/
p.movie__detail,
p.lms__detail {
  white-space: pre-wrap;
}

/*リクルートページの会社サムネ用*/
img.company__thumbnail {
  width: 100%;
  height: 100px;
  object-fit: scale-down;
}

div.no__thumbnail {
  width: 100%;
  height: 100px;
  background-color: var(--on2-primary);
  color: var(--title);
  display: flex;
  align-items: center;
  justify-content: center;
}

p.no__thumbnail__p {
  display: block;
}

/*パートナーページ*/
.verify__item__partner {
  width: 24.42%;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background-color: var(--on-primary);
  transition: 0.3s;
  /* cursor: pointer; */
}
@media screen and (max-width: 768px) {
  .verify__item__partner {
    width: 100%;
  }
}
.verify__item__partner__link, .verify__item__partner__link__disable {
  padding: 16px;
}
.verify__item__partner__link:hover {
  cursor: pointer;
  background-color: var(--divider);
}

.verify__item__partner__link__company{
  border-bottom: var(--divider) solid 2px;
}

.verify__item__partner__link__left{
  border-right: var(--divider) solid 2px;
}

.verify__item__partner__bottom{
  min-height: 30px;
}

button.company__liked__btn, i.company__chat__btn {
  width: 30px;
  height: 30px;
  float: left;
  color: var(--title);
  text-align: center;
}

button.company__liked__btn:hover {
  cursor: pointer;
  color: var(--yellow);
}

.company__chat__btn.on {
  position: relative;
  top: -3px;
}

/* 赤い点を表示（SVGの上に重ねる） */
.company__chat__btn.on::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--alert);
  position: absolute;
  top: 0;
  right: 0;
}

button.company__liked__btn.liked {
  color: var(--yellow);
}

/*講義概要のスタイル*/
p.lms__detail {
  white-space: pre-wrap;
}

.border_radius {
  border: 1px solid black;
  background-color: white;
  padding: 6px 12px;
  border-radius: 5px;
}

/* 実績ページ関連のスタイル */
.new__achievement__btn {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  font-weight: 700;
  line-height: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--button-text);
  transition: 0.3s;
}

.new__achievement__btn::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url(/assets/img/arrow-right-bb970f3817fb5e3ffd68fd2a26c78201a6e145396c0bb24179b839b77edbe8a3.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.new__achievement__btn:hover {
  background-color: var(--secondary-hover);
}

th.achievement__row {
  width: 20%;
}

th.achievement__row,
td.achievement__row {
  vertical-align: middle;
}

td.achievement__detail {
  white-space: pre-wrap;
}

.download__btn a {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
  margin: 0 auto;
}

.download__btn a:hover {
  background-color: var(--secondary-hover);
  cursor: pointer;
}

.portfolio__box__head__btn a {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  font-weight: 700;
  line-height: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--button-text);
  transition: 0.3s;
}

@media screen and (max-width: 768px) {
  .portfolio__box__head__btn a {
    padding: 16px;
    gap: 0;
    font-size: 0;
  }
}

.portfolio__box__head__btn a::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url(/assets/img/arrow-right-bb970f3817fb5e3ffd68fd2a26c78201a6e145396c0bb24179b839b77edbe8a3.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio__box__head__btn a:hover {
  background-color: var(--secondary-hover);
}

/* 実績登録用モーダル */
/*モーダル本体の指定 + モーダル外側の背景の指定*/
.new-achievement-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 80%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/*モーダル本体の擬似要素の指定*/
.new-achievement-modal-container:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.new-achievement-modal-container.active {
  opacity: 1;
  visibility: visible;
  z-index: 1000;
}

/*モーダル枠の指定*/
.new-achievement-modal-body {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 800px;
  width: 90%;
}

/*モーダルを閉じるボタンの指定*/
.new-achievement-modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: var(--button-text);
  cursor: pointer;
}

/*モーダル内のコンテンツの指定*/
.new-achievement-modal-content {
  background: var(--primary);
  text-align: left;
  padding: 30px 0;
}

/* 講義一覧・動画一覧サムネイル用 */
.movie__thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: scale-down;
}

.no__movie__thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--on2-primary);
  color: var(--title);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--title);
}

.align_top_p_15 {
  vertical-align: top !important;
  padding-top: 15px;
}

.block_btn {
  width: 100%;
  outline: solid 1px red !important;
  text-align: center;
  border-radius: 5px;
  color: #ff0000;
  margin-top: 15px;
  margin-bottom: 15px;
  background-color: #fff;
  width: 50px;
}

body { min-height: 100vh; }

.body {
  background-color: var(--primary);
  height: auto;
  margin: 0;
  padding: 0;
}

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

.temporary-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
  width:100vw;
}

/* チャット画面関連 */
.student__chat__window {
  background-color: var(--on-primary);
  border: 2px solid var(--divider);
  border-radius: 20px 20px 0px 0px;
}

.student__chat__window__ttl {
  border-bottom: 2px solid  var(--divider);
  padding: 10px;
}

.student__chat__window__ttl-main {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--title);
}

.student__chat__window__ttl-close-btn {
  color: var(--sub-title);
}

.studnet__chat__contents {
  border-bottom: 2px solid  var(--divider);
  padding: 10px;
}

.student__chat__content {
  border-bottom: 2px solid  var(--divider);
  padding-bottom: 10px;
}

.student__chat__content-header {
  display: flex;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--title);
}

.student__chat__content-bubble {
  font-weight: 200;
  padding-left: 50px;
  color: var(--title);
}

.student__chat__content-bubble-user {
  float: left;
  width: 80%;
}

.student__chat__content-btns {
  /* float: left; */
  width: 15%;

}

.student__chat__content-update-btn {
  background-color: var(--secondary);
  color: var(--button-text);
}

.student__chat__content-update-btn:hover {
  background-color: var(--secondary-hover);
  color: var(--button-text);
}

.student__chat__content-btns-edit,
.student__chat__content-btns-send {
  font-size: 1.2rem;
  background-color: var(--secondary);
  color: var(--button-text);
}

.student__chat__content-btns-edit:hover,
.student__chat__content-btns-send:hover {
    font-size: 1.2rem;
  background-color: var(--secondary-hover);
}

.student__chat__content-btns-delete {
  font-size: 1.2rem;
  background-color: var(--alert);
  color: var(--button-text);
}

.student__chat__content-btns-delete:hover {
  font-size: 1.2rem;
  background-color: var(--alert-hover);
}

.student__chat__input__area {
  margin-top: auto;
  padding: 10px;
}

.student__chat__input__area-agree-btn,
.student__chat__input__area-degree-btn{
  width: 70px;
  font-size: 1.2rem;
  margin: 5px 10px;
  border-radius: 20px;
}

.student__chat__input__area-agree-btn{
  background-color: var(--secondary);
  color: var(--button-text);
}

.student__chat__input__area-agree-btn:hover{
  background-color: var(--secondary-hover);
  color: var(--button-text);
}

.student__chat__input__area-degree-btn{
  color: var(--button-text);
}

.student__chat__input__form{
  font-size: 1.2rem;
}

.student__chat__input__selected__file{
  padding-left: 15px;
}

textarea[id^="chat-input-edit-"] {
  /* font-family: "Noto Sans JP", sans-serif; */
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
  /* color: var(--title); */
}

div[id^="chat-edit-form-"] button {
  font-size: 1.2rem;
}

/* サブスクリプション確認モーダル関連 */
.subscribe__modal__btn{
  font-size: 120%;
}

.policy__link{
  color: var(--secondary);
}

.policy__link:hover{
  color: var(--secondary);
  text-decoration: underline;
}

.subscribe__modal__detail{
  background-color: var(--divider);
}

.subscribe__modal__detail h2{
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
}

.subscribe__modal__detail h3{
  font-size: 1.5rem;
  font-weight: bold;
}

.subscribe__modal__detail p{
  padding-left: 5%;
  margin-bottom: 10px;
}

.subscribe__submit__btn {
  max-width: 193px;
  margin-left: auto;
  margin-right: auto;

}

.subscribe__submit__btn a{
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
  margin: 0 auto;
}

.subscribe__submit__btn__disable a{
  pointer-events:none;
  background-color: var(--grass-100);
}

.subscribe__submit__btn a:hover {
  background-color: var(--secondary-hover);
  cursor: pointer;
}

.star {
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.star.checked {
  color: gold;
}

.star.half {
  position: relative;
  display: inline-block;
  color: gray;
}

.star.half::before {
  content: '☆';
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1;
}

.star.half::after {
  content: '★';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: gold;
  z-index: 2;
}

form .star:hover {
  cursor: pointer; /* カーソルをポインターに変える */
}

.box > .box__body > video-js {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.avatar .fa-circle-user{
  font-size: 2.5em;
}

/* ポートフォリオ共有用 */
.portfolio__share__link__input{
  font-size: 1em;
  display: flex;
  justify-content: flex-end;
  vertical-align: middle;
}
@media screen and (max-width: 768px) {
  .portfolio__share__link__input{
    display: block;
    align-content: center;
    justify-self: end;
  }

}

.portfolio__share__link__input__url{
  margin-right: 5px;
}
@media screen and (max-width: 768px) {
  .portfolio__share__link__input__url{
    margin-right: 0px;
  }
}

/* ポートフォリオ共有画面用 */
.layout__share__portfolio {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  margin-top: 82px;
}
@media screen and (max-width: 768px) {
  .layout__share__portfolio {
    margin: 57px 0 0;
  }
}

#portfolioConfirmForm{
  display: block;
}

#portfolioContents {
  display: none;
}

table.portfolio-share {
  width: 100%;
}

th.portfolio-share {
  vertical-align: middle;
  width: 15%;
  max-width: 80px;
  border-bottom: 1px solid var(--section-tag);
}

td.portfolio-share {
  width: 85%;
  border-bottom: 1px solid var(--section-tag);
  padding-left: 5px;
  padding-top: 15px;
  padding-bottom: 15px;
  word-break: break-all;
}

table.portfolio-share-child {
  width: 100%;
}

th.portfolio-share-child-date {
  vertical-align: middle;
  width: 100px;
  border-bottom: 1px solid var(--section-tag);
}

th.portfolio-share-child {
  vertical-align: middle;
  width: 150px;
  border-bottom: 1px solid var(--section-tag);
}

td.portfolio-share-child {
  border-bottom: 1px solid var(--section-tag);
  padding-left: 5px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.portfolio-share-achievement{
  padding-bottom: 15px;
  border-bottom: 1px solid var(--section-tag);
  vertical-align: middle;
  white-space: pre-wrap;
}

.portfolio-share-achievement-content{
  padding-bottom: 10px;
}

.portfolio__share__link__input__url:hover {
  cursor: auto;
}

/* ヘッダのお知らせ一覧 */
.notifications__contents{
  display: grid;
  font-size: 1em;
  line-height: 1.5;
  width: 75vw;
  max-width: 600px; /* 最大幅を600pxに制限 */
  min-width: 250px; /* 最小幅を300pxに制限 */
  max-height: 80vh;
  overflow-y: scroll;
}
@media screen and (max-width: 600px) {
  .notifications__contents{
    position: fixed !important;
    margin-left: 10px;
    width: calc(100vw - 20px);
  }
}

.notifications__content{
  border-bottom: var(--divider) solid 1px;
}

.last__notifications__content{
  border-bottom: none;
}

.notifications__date{
  font-size: 0.9em;
}

.notification__read__tag span{
  padding: 1px 12px 2px 12px;
  border-radius: 12px;
  text-align: center;
  color: var(--button-text);
  margin-left: 5px;
}

.notification__unread{
  background-color: var(--secondary);
}

.notification__read{
  background-color: var(--section-tag);
}

.notification__detail{
  white-space: pre-wrap;
}

/* ヘッダの吹き出し通知 */
.offer__message__notice__icon{
  color: var(--icon-color);
}

/* チャット用ボタン */
.chat__canceled {
  position: relative;
}

.chat__canceled::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--alert); /* 斜線の色 */
  transform: rotate(45deg) translateY(50%);
  transform-origin: center;
}

/* number_fieldのスピナー削除 */
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}


/* 課題の有無のタグ */
.task__tag {
  height: 20px;
  background-color: var(--secondary);
  color: #FFF;
  padding: 4px 12px;
  border-radius: 16px;
}
.task__submitted__tag {
  height: 20px;
  background-color: var(--disabled);
  color: #000;
  padding: 4px 12px;
  border-radius: 16px;
}
.no__task__tag {
  height: 20px;
  color: #000;
  padding: 4px 12px;
  border-radius: 16px;
}

/* ポートフォリオのtooltip用 */
.portfolio__notice{
  width: 300px;
  background-color: var(--grass-100);
  color: #222222;
  /* border: solid 3px var(--secondary); */
}

.portfolio__notice button{
  height: 100%;
  vertical-align: middle;
  position: absolute;
  top: 2px;
  right: 10px;
  color: #222222;
}

.portfolio__notice__alert{
  background-color: var(--alert-100);
  width: 80%;
  max-width: 400px;
}

/* 実績のボタン関係 */
.achievement__btns{
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 10px;
  margin: 10px auto;
}

.edit__btn {
  display: flex;
}

.edit__btn button {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
  margin: 0 auto;
}

.edit__btn button:hover {
  background-color: var(--secondary-hover);
  cursor: pointer;
}

.delete__btn {
  display: flex;
}

.delete__btn button {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--alert);
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
  margin: 0 auto;
}

.delete__btn button:hover {
  background-color: var(--alert-hover);
  cursor: pointer;
}

/* ポートフォリオの遷移用ボタン */
.portfolio__link__btn {
  max-width: 300px;
}

.portfolio__link__btn a {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
}
.portfolio__link__btn a:hover {
  background-color: var(--secondary-hover);
}

.portfolio__link__btn a::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url(/assets/img/arrow-right-bb970f3817fb5e3ffd68fd2a26c78201a6e145396c0bb24179b839b77edbe8a3.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ポートフォリオ順序用 */
.portfolio__sort__updown {
  width: 5%;
  height: 100%;
  text-align: center;
}

.portfolio__no__sort {
  width: 5%;
  height: 100%;
  text-align: center;
}

.portfolio-share-achievement-btn{
  font-size: 1em;
  color: #FFF;
}

.portfolio-share a{
  color: var(--sky);
}

.portfolio-share a:hover{
  text-decoration: underline;
}

.portfolio-share a.portfolio__share__link__btn{
  background-color: var(--secondary);
  color: var(--button-text);
  transition: 0.3s;
}

.portfolio-share a.portfolio__share__link__btn:hover{
  background-color: var(--secondary-hover);
  cursor: pointer;
  text-decoration: none;
}

/* 選択問題結果画面 */
.unselected_answer {
  color: var(--unselected-color);
}

.selected_answer {
  font-weight: bold;
}

.correct_answer {
  color: red;
}

/* テストモードのヘッダ */
.test__mode__header{
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--sub-title);
  border: 1px solid var(--title);
  border-radius: 10px;
  color: var(--button-text);
  text-align: center;
  padding: 10px;
}

.student__chat__avatar{
  font-size: 2.5em;
  margin-right: 10px;
}

.learning-trend-container {
  width: 450px;
  height: 450px;
}
@media screen and (max-width: 768px) {
  .learning-trend-container {
    width: 300px;
    height: 300px;
  }
}

[data-theme=light] .light__bg__fixed {
  background-color: var(--on2-primary);
  border: none;
}

[data-theme=light] .light__bg__fixed__hover:hover {
  background-color: #c9c9c9;
}

/* Innovative Quest一覧カード */
.quest__card__title {
  margin-bottom: 10px;
  min-height: 48px;
}

.quest__card__detail {
  font-size: 12px;
  color: var(--section-tag);
  margin-bottom: 10px;
  min-height: 62px;
}

.quest__card__date {
  font-size: 12px;
  line-height: 2;
  color: var(--section-tag);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quest__card__date__icon {
  font-size: 16px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.partner__contents__no__content {
  color: var(--section-tag);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
}


.pd__container {
  margin: 0 auto;
  padding: 24px 0 0 0;
}
.pd__header {
  margin-bottom: 24px;
}
.pd__header__sub {
  color: var(--sub-title);
}
.pd__header__row {
  display: flex;
  justify-content: space-between;
}
.pd__header__title {
  font-size: 2.4rem;
  font-weight: 700;
}
.pd__header__fav__btn {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--button-text);
  font-size: 1.25rem;
  align-self: center;
}
.pd__header__fav__btn:hover { opacity: 0.85; }

/* --- 2カラム --- */
.pd__columns {
  display: flex;
  gap: 28px;
}
.pd__left {
  width: 100%;
  max-width: 35%;
}
.pd__right {
  min-width: 65%;
}

/* --- カード共通 --- */
.pd__card {
  background: var(--on-primary);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

/* --- サムネイル --- */
.pd__thumb {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

/* --- セクション見出し --- */
.pd__section__title {
  font-weight: 700;
  padding: 10px 0 6px;
  border-bottom: 2px solid var(--secondary);
}

/* --- 左カラム: 基本情報ラベル+値 --- */
.pd__info__list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}
.pd__info__list li:last-child { border-bottom: none; }
.pd__info__label {
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.pd__info__value {
  line-height: 1.5;
}

/* --- 右カラム: 詳細情報テーブル --- */
.pd__detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pd__detail__cell {
  padding: 10px 8px;
  border-bottom: 1px solid var(--divider);
}
.pd__detail__cell.full {
  grid-column: 1 / -1;
}
.pd__detail__label {
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.pd__detail__value {
  line-height: 1.5;
}
.pd__detail__value a {
  text-decoration: underline;
  word-break: break-all;
}

/* --- OB/OGカード --- */
.pd__graduates__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}
.pd__graduate__card {
  display: flex;
  gap: 14px;
  background: var(--on-primary);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 16px;
  word-break: break-word;
}
.pd__graduate__thumb img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.pd__graduate__body {
  flex: 1;
}
.pd__graduate__name {
  font-weight: 700;
  margin-bottom: 2px;
}
.pd__graduate__meta {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.pd__graduate__school {
  font-size: 1.2rem;
}
.pd__graduate__msg {
  margin-top: 6px;
  line-height: 1.5;
}

/* --- もっと見るボタン --- */
.pd__show__more summary {
  padding: 12px 0;
  cursor: pointer;
  width: fit-content;
  justify-self: end;
  color: var(--secondary);
  font-weight: 700;
  list-style: none;
}
.pd__show__more summary:hover {
  opacity: 0.85;
}
.pd__show__more summary::before {
  content: '▼ ';
  margin-right: 6px;
}
.pd__show__more[open] summary::before {
  content: '▲ ';
}

.pd__show__more[open] > .pd__graduates__grid {
  max-height: 600px;
  overflow-y: auto;
}

/* --- 資料 --- */
.pd__doc__list {
  padding: 6px 0;
}
.pd__doc__list li {
  padding: 6px 0;
}
.pd__doc__list li i {
  margin-right: 6px;
}

.pd__none {
  color: var(--sub-title);
  font-size: 1.2rem;
  margin-top: 8px;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
  .pd__columns {
    flex-direction: column; gap: 0;
  }
  .pd__left {
    flex: 1 1 100%; max-width: none;
  }
  .pd__detail__grid,
  .pd__graduates__grid {
    grid-template-columns: 1fr;
  }
  .pd__graduate__card {
    flex: 1 1 100%;
  }
  .pd__show__more[open] > .pd__graduates__grid {
    max-height: 450px;
  }
}

/* ================================================================
   ダッシュボード aside: Ranking / Score セクション
   ================================================================ */

/* ランクタイトル ("B RANK" など) */
.ranking__rank__ttl {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.ranking__rank__letter {
  font-size: 3.6rem;
  font-weight: 700;
  margin-right: 4px;
}

.ranking__rank__suffix {
  font-size: 1.6rem;
  font-weight: 700;
  vertical-align: middle;
}

/* 分布グラフ全体コンテナ */
.ranking__chart {
  position: relative;
  margin-bottom: 16px;
}

/* 棒グラフ群（height と background は動的なのでインラインのまま） */
.ranking__chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
}

.ranking__chart__bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
}

/* ランクラベル行 */
.ranking__chart__rank__labels {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.ranking__chart__rank__label {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
}

.ranking__chart__rank__label__active {
  font-weight: 700;
  color: var(--accent);
}

/* 全体人数テキスト */
.ranking__total__users {
  font-size: 1.1rem;
  color: var(--section-tag);
}

/* ランキングスクロールエリア */
.ranking__scroll {
  max-height: 240px;
  overflow-y: auto;
}

/* ランキングテーブル共通（border-collapse はグローバルで定義済みのため省略） */
.ranking__table {
  width: 100%;
}

.ranking__table td {
  padding: 8px;
  vertical-align: middle;
}

.ranking__table td:nth-of-type(2) {
  padding: 0px;
  font-size: small;
}
@media screen and (max-width: 400px) {
  .ranking__table td:nth-of-type(2) {
    padding: 8px;
  }
}

/* TOP5 テーブル: スティッキーヘッダ */
#rankingTable thead {
  background: var(--on-primary);
}

#rankingTable th {
  font-size: 1.1rem;
  padding: 4px 8px;
}

#rankingTable th:first-child { text-align: center; }
#rankingTable th:last-child  { text-align: right; }

/* 絵文字メダル列を大きく */
#rankingTable td:first-child {
  text-align: center;
  font-size: 1.8rem;
}

#rankingTable td:last-child { text-align: right; }

/* 数字順位（絵文字以外）のスパン */
.ranking__rank__num {
  color: var(--section-tag);
}

/* YOU行テーブル */
.ranking__you__table {
  border-top: 1px solid var(--divider);
}

/* YOU行 */
.ranking__you {
  box-shadow: inset 4px 0 0 var(--accent);
  background-color: rgba(245, 167, 50, 0.12);
}

.ranking__you td {
  padding: 8px;
  font-weight: 700;
}

.ranking__you td:first-child {
  text-align: center;
  color: var(--accent);
}

.ranking__you td:last-child { text-align: right; }

.ranking__update__note {
  margin-top: 6px;
  font-size: 1.1rem;
  color: var(--section-tag);
  text-align: right;
}

/* ================================================================
   Score セクション
   ================================================================ */

.score__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score__card {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.score__card__learning  { background-color: rgba(21, 101, 192, 0.1); }
.score__card__task      { background-color: rgba(230, 81, 0, 0.1); }
.score__card__portfolio { background-color: rgba(97, 97, 97, 0.1); }

.score__card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.score__card__icon__learning {
  background-color: #1565C0;
  color: white;
}

.score__card__icon__task      { background-color: #E65100; color: white; }
.score__card__icon__portfolio { background-color: #616161; color: white; }

.score__card__ttl {
  font-weight: 700;
  margin-bottom: 2px;
}

.score__card__ttl__learning  { color: #1565C0; }
.score__card__ttl__task      { color: #E65100; }
.score__card__ttl__portfolio { color: #616161; }

.score__card__value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.score__card__unit {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--section-tag);
}

.score__card__avg {
  font-size: 1.1rem;
  color: var(--section-tag);
}

/* ================================================================
   スコア増加トースト通知
   ================================================================ */

.score__toast__container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.score__toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--on-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--divider);
  min-width: 220px;
  max-width: 310px;
  pointer-events: auto;
  animation: scoreToastIn 0.3s ease;
}

@keyframes scoreToastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.score__toast__container__fade {
  animation: scoreToastOut 0.3s ease forwards;
}

@keyframes scoreToastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.score__toast__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--grass-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.score__toast__body {
  flex: 1;
}

.score__toast__delta {
  font-weight: 700;
  color: var(--title);
  line-height: 1.3;
}

.score__toast__label {
  font-size: 1.1rem;
  color: var(--sub-title);
  line-height: 1.4;
}

.score__toast__close {
  color: var(--sub-title);
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.score__toast__close:hover {
  color: var(--title);
}

/* ================================================================
   ランクアップモーダル
   ================================================================ */

.rank__up__modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.rank__up__modal__overlay--visible {
  opacity: 1;
  visibility: visible;
}

.rank__up__modal__overlay--dismissing {
  opacity: 0;
  visibility: hidden;
}

.rank__up__modal {
  background: var(--on-primary);
  border-radius: 16px;
  padding: 32px 24px 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  text-align: center;
  animation: rank__up__modal__in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes rank__up__modal__in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.rank__up__modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
}

.rank__up__modal__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.rank__up__modal__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rank__up__modal__badge__prev {
  font-size: 2.0rem;
  font-weight: 700;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--on2-primary);
  color: var(--sub-title);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank__up__modal__badge__new {
  font-size: 2.4rem;
  font-weight: 700;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--button-text);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rank__badge__pulse 1.8s ease-in-out infinite;
}

@keyframes rank__badge__pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.rank__up__modal__arrow {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

.rank__up__modal__desc {
  color: var(--title);
  margin-bottom: 24px;
}

.rank__up__modal__btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--button-text);
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 12px;
}

.rank__up__modal__note {
  font-size: 1.1rem;
  color: var(--sub-title);
}

/* ===== 公開設定モーダル (portfolio-share-modal) ===== */
.pfm__container {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.pfm__container.active {
  opacity: 1;
  pointer-events: auto;
}
.pfm__body {
  background: var(--on-primary);
  border-radius: 10px;
  width: min(580px, 94vw);
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .pfm__body {
    max-height: 70vh;
  }
}
.pfm__body__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
}
.pfm__title {
  font-weight: 700;
  color: var(--secondary);
}
.pfm__notice {
  padding: 8px 18px;
  border-bottom: 1px solid var(--divider);
  color: var(--sub-title);
}
.pfm__scroll {
  overflow-y: auto;
  flex: 1;
}

/* アコーディオンセクション */
.pfm__section__list {
  border: 1px solid var(--divider);
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 16px;
}

.pfm__sec {
  border-bottom: 1px solid var(--divider);
}
.pfm__sec:last-child {
  border-bottom: none;
}

.pfm__sec__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
}

.pfm__sec__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pfm__sec__name {
  flex: 1;
}

.pfm__sec__meta {
  color: var(--sub-title);
  margin-right: 8px;
  white-space: nowrap;
}
.pfm__chevron {
  color: var(--sub-title);
  width: 14px;
}
.pfm__chevron__placeholder {
  width: 14px;
}

/* サブリスト */
.pfm__sub__list {
  background: var(--on-primary);
  border-top: 1px solid var(--divider);
}

.pfm__sub__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 52px;
  border-bottom: 1px solid var(--divider);
}
.pfm__sub__item:last-child {
  border-bottom: none;
}

.pfm__sub__name {
  flex: 1;
  color: var(--sub-title);
}

.pfm__sec__disabled .pfm__sub__name {
  opacity: .45;
}
.pfm__sec__disabled .pf__toggle__slider {
  opacity: .45; cursor: default;
}

/* トグルスイッチ */
.pf__toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.pf__toggle input {
  opacity: 0; width: 0; height: 0; position: absolute;
}

.pf__toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--divider);
  border-radius: 20px;
  cursor: pointer;
}
.pf__toggle__slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}

.pf__toggle input:checked + .pf__toggle__slider {
  background: var(--secondary);
}
.pf__toggle input:checked + .pf__toggle__slider::before {
  transform: translateX(18px);
}

/* 確認モーダル内フラットリスト */
.pfm__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--divider);
}
.pfm__row:last-child {
  border-bottom: none;
}

.pfm__confirm__detail {
  color: var(--sub-title);
  margin-left: 6px;
}
.pfm__badge {
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.pfm__badge__on  {
  background: var(--secondary);
  color: var(--button-text);
}
.pfm__badge__off {
  background: var(--divider);
  color: var(--sub-title);
}
.pfm__confirm__list {
  padding: 0 2px;
}

/* モーダルフッター */
.pfm__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--divider);
}

.pfm__confirm__body {
  padding: 14px 18px 4px;
}
.pfm__confirm__sub  {
  color: var(--sub-title);
  margin-bottom: 10px;
}

.pfm__btn {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.pfm__btn__primary   {
  background: var(--secondary);
  color: var(--button-text);
}
.pfm__btn__secondary {
  background: var(--divider);
  color: var(--sub-title);
}
.pfm__btn__outline   {
  background: var(--on-primary);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}

/* 公開設定ボタン（ページ上部） */
.pfm__open__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--on-primary);
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.portfolio__container .result__table {
  table-layout: fixed;
}
.portfolio__container .result__table th:nth-of-type(1) {
  width: 2%;
}
.portfolio__container .result__table th:nth-of-type(2) {
  width: 10%;
}
.portfolio__container .result__table td:nth-of-type(3) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio__container .result__table th:nth-of-type(4) {
  width: 50%;
}
.portfolio__container .result__table td:nth-of-type(4) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.5;
  min-height: calc(1.5em * 3);
  padding: 4px;
  border: none;
  border-bottom: 1px #26282B solid;
}
.portfolio__container .result__table tr:last-child td:nth-of-type(4) {
  border-bottom: none;
}
.portfolio__container .result__table th:nth-of-type(5),
.portfolio__container .result__table td:nth-of-type(5) {
  display: none;
}
.portfolio__container .result__table th:nth-of-type(6) {
  width: 12%;
}

@media screen and (max-width: 768px) {
  .portfolio__container .portfolio__share__link__input {
    display: grid;
    justify-content: flex-end;
  }
  .portfolio__container .portfolio__share__link__input__url {
    display: flex;
    width: 100%;
  }

  .portfolio__container .user__thumbnail__preview {
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio__container .basic__info__table {
    display: block;
  }
  .portfolio__container .basic__info__table tbody {
    display: grid;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .portfolio__container .basic__info__table tr {
    display: flex;
    flex-direction: column;       /* 縦2段 */
  }
  .portfolio__container th.portfolio-form {
    height: auto !important;      /* インラインの height:50px を上書き */
  }
  .portfolio__container .portfolio-form {
    width: 100%;
  }
  .portfolio__container .basic__info__table td {
    display: block;
    width: 100%;
  }
  .portfolio__container .imput__flex {
    display: flex !important;
    gap: 10%;
    align-items: center;
  }
  .portfolio__container .imput__flex .str-form {
    width: 45% !important;
  }

  .portfolio__container .academic__bg__fields {
    display: grid !important;          /* inline style の flex を上書き */
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 8px;
  }
  .portfolio__container .academic__bg__fields .portfolio__sort__updown,
  .portfolio__container .academic__bg__fields .portfolio__no__sort {
    grid-column: 1;
    grid-row: 1 / 3;
    width: auto;
    height: auto;
  }
  .portfolio__container .academic__bg__fields .portfolio__date__field {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    margin-right: 0 !important;
  }
  .portfolio__container .academic__backgrounds__fields .academic__bg__fields > input.str-form,
  .portfolio__container .licenses_fields .academic__bg__fields > input.str-form {
    grid-column: 2;
    grid-row: 2;
    width: 100% !important;
    margin-right: 0 !important;
  }
  .portfolio__container .academic__bg__fields > button {
    grid-column: 3;
    grid-row: 1 / 3;
    width: auto !important;
  }

  .portfolio__container .profile_others_fields .str-form:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    margin-right: 0 !important;
  }
  .portfolio__container .profile_others_fields .str-form:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .portfolio__container .result__table {
    table-layout: fixed;
  }

  .portfolio__container .result__table th:nth-of-type(1) {
    width: 8%;
  }
  .portfolio__container .result__table th:nth-of-type(2) {
    width: 30%;
  }
  .portfolio__container .result__table td:nth-of-type(3) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .portfolio__container .result__table th:nth-of-type(4),
  .portfolio__container .result__table th:nth-of-type(5),
  .portfolio__container .result__table td:nth-of-type(4),
  .portfolio__container .result__table td:nth-of-type(5) {
    display: none;
  }
  .portfolio__container .result__table th:nth-of-type(6) {
    width: 12%;
  }

  .portfolio__container .box__head__btn a {
    padding: 6px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .portfolio__container th.portfolio-share {
    width: 100%;
    text-align: center;
  }
}

/* Cropper */

.profile__box {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  justify-content: center;
  position: relative;
  width: fit-content;
}
@media screen and (max-width: 768px) {
  .profile__box {
    align-items: center;
    width: 100%;
  }
}

.user__thumbnail__preview {
  border-radius: 50%;
  background: var(--on-primary);
  width: 100px;
  height: 100px;
  padding: 2px;
  display: block;
  position: relative;
}

img.user__thumbnail__preview {
  border: 3px solid var(--secondary);
  object-fit: cover;
}

.camera__edit {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-color: var(--on-primary);
  border-radius: 100%;
  padding: 1px 3px;
}
@media screen and (max-width: 768px) {
  .camera__edit {
    right: 20vw;
  }
}

.camera__icon {
  font-size: 20px;
  color: var(--sub-title);
}

.cropper__hidden {
  display: none !important;
}

.cropper__modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.cropper__modal img {
  position: fixed;
  max-width: 100%;
  max-height: 80vh;
}

.cropper__modal
.modal__content {
  background-color: var(--on-primary);
  padding: 50px 20px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.cropper__modal
.modal__content
.cropper__actions {
  margin-top: 10px;
  text-align: center;
  z-index: 100;
}

.cropper__modal
.modal__content
.cropper__actions
.cropper__btn {
  width: 100%;
  height: 40px;
  font-size: 14px;
  line-height: 1.5;
  background-color: var(--secondary);
  color: var(--button-text);
  border-radius: 12px;
  padding-top: 10px;
  cursor: pointer;
}

.close__btn_on_top_right {
  width: 30px;
  height: 30px;
  top: 1.15rem;
  right: 1.25rem;
  position: absolute;
  cursor: pointer;
}

.close__btn_on_top_right span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--secondary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s;
}

.close__btn_on_top_right span:nth-of-type(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close__btn_on_top_right span:nth-of-type(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.turn__button {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 1.7rem;
  right: 5rem;
  cursor: pointer;
}

.turn__button
.turn__right__icon {
  height: 1.8rem;
}

.pc__only {
  display: block;
}
@media screen and (max-width: 768px) {
  .pc__only {
    display: none;
  }
}
.sp__only {
  display: none;
}
@media screen and (max-width: 768px) {
  .sp__only {
    display: contents;
  }
}

/* ===== LMS受講履歴テーブル スマホ対応 ===== */
@media screen and (max-width: 768px) {
  table.lms__history__table {
    table-layout: fixed;
    width: 100%;
  }

  /* 提供元・講師列を非表示 */
  table.lms__history__table th:nth-child(2),
  table.lms__history__table td:nth-child(2),
  table.lms__history__table th:nth-child(3),
  table.lms__history__table td:nth-child(3) {
    display: none;
  }

  /* 講義タイトル列 */
  table.lms__history__table th:nth-child(1),
  table.lms__history__table td:nth-child(1) {
    width: 55%;
    word-break: break-word;
  }

  /* 進捗率列 */
  table.lms__history__table th:nth-child(4),
  table.lms__history__table td:nth-child(4) {
    width: 20%;
    text-align: center;
    padding: 5px 2px;
  }

  /* ボタン列 */
  table.lms__history__table th:nth-child(5),
  table.lms__history__table td:nth-child(5) {
    width: 25%;
  }

  /* 詳細ボタンのタップ領域確保 */
  table.lms__history__table .box__head__btn a {
    padding: 6px 8px;
    justify-content: center;
    font-size: 0;
  }
}


.achievement__image {
  width: 100% !important;
  max-width: 30vw;
  word-break: break-word;
}

.achievement__row .download__btn {
  word-break: break-word;
}

/* ================================================================
   実績新規登録フォーム スマホ対応
   iPhone 12〜17 (max-width: 768px)
   ================================================================ */
@media screen and (max-width: 768px) {
  table.achievement-form-table {
    display: block;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  table.achievement-form-table tbody {
    display: block;
  }
  table.achievement-form-table tr {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
  }
  table.achievement-form-table tr:last-child {
    border-bottom: none;
  }
  table.achievement-form-table th.portfolio-form {
    width: 100%;
    height: auto !important;
    padding-bottom: 4px;
  }
  table.achievement-form-table td.portfolio-form {
    width: 100%;
  }
  th.achievement__row {
    width: 25%;
  }
  .achievement__image {
    max-width: 100%;
    padding-left: 0px !important;
  }
}

/* ================================================================
   iPhone 12〜17 (max-width: 768px)
   ================================================================ */
@media screen and (max-width: 768px) {
  main.layout__main {
    width: 100% !important;
  }
  aside.layout__aside {
    width: 100% !important;
  }

  .pdf-container {
    display: flex !important;
    flex-wrap: wrap;
  }
  .pdf-container .table-cell {
    display: block !important;
    width: auto !important;
  }

  .exam__task__btn {
    margin: auto;
  }
  .exam__task__btn a {
    justify-content: center;
  }

  /* 登録画面の学生/教員切り替えボタン: .box__head__btn標準のモバイル挙動(文字非表示・丸アイコン化)だと
     ボタンの意味が伝わらなくなるため、テキストが見えるコンパクトなボタンに上書きする */
  .box__head__btn.signup__head__btn a {
    font-size: 1.3rem;
    padding: 8px 12px;
    gap: 4px;
    white-space: nowrap;
  }
  .box__head__btn.signup__head__btn a::after {
    width: 12px;
    height: 12px;
  }
}
