.profile-layout {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  width: fit-content;
  margin: 62px auto 50px;
  padding: 0 20px;
}

@media screen and (max-width: 768px) {
  .profile-layout {
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    padding: 0;
  }
  .profile-layout form {
    width: 100%;
  }
}

/* ======================== profile-card ======================== */
body {
  margin: 0;
  font-family: "Noto Sans JP", "Arial", sans-serif;
  background-color: #f8f8f8;
}

.profile-card {
  max-width: 360px;
  /* height: 791px; */
  padding: 40px 42px 42px 42px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

@media screen and (max-width: 1079px) {
  .profile-card {
    max-width: 30%;
  }
}

@media screen and (max-width: 768px) {
  .profile-card {
    max-width: 130px;
    border-radius: 0 12px 12px 0;
    font-size: 12px;
    padding: 20px 10px;
    margin: 0;
  }
}

.profile-image-wrapper {
  position: relative;
  display: inline-block;
}

.profile-image {
  width: 219px;
  height: 219px;
  margin: 0 auto;
  background-image: url("img/icon.png");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: block;
}

.profile-name {
  margin: 12px 0 71px;
  font-size: 18px;
  color: #359eff;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .profile-name {
    font-size: 12px;
    margin: 5px 0 20px;
  }
}

.profile-menu {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  width: 275px;
  margin: 0 auto;
}

@media screen and (max-width: 1079px) {
  .profile-menu {
    width: 100%;
  }
}

.profile-menu a {
  font-weight: 500;
  font-size: 18px;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  color: #333333;
  background-color: #fff;
  transition: background-color 0.3s, color 0.3s;
  display: block;
}

@media screen and (max-width: 768px) {
  .profile-menu a {
    font-size: 12px;
    padding: 8px 10px;
  }
}

.profile-menu a:hover {
  background-color: #e0e0e0;
}

.profile-menu a.active {
  background-color: #0099d1;
  color: #fff;
}

.profile-menu .add-button:before small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

/* @media (max-width: 480px) {
  .profile-card {
    margin: 10px;
    padding: 16px;
  }

  .profile-name {
    font-size: 16px;
  }

  .profile-menu a {
    font-size: 14px;
  }
} */

/* ======================== basicInfo-wrapper ======================== */

.tab-section.hidden {
  display: none;
}

.profile-container {
  max-width: 700px;
  margin: auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px 40px 280px 40px;
}

@media screen and (max-width: 768px) {
  .profile-container {
    margin: 0 10px 50px 0;
    padding: 10px;
  }
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .profile-table tr {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    padding-bottom: 16px;
  }
}

.profile-table th {
  width: 30%;
  background-color: #e9eef1;
  padding: 10px;
  text-align: left;
  font-weight: normal;
  vertical-align: top;
}

@media screen and (max-width: 768px) {
  .profile-table th {
    width: 100%;
    padding: 5px 10px;
    font-size: 12px;
  }
}

.profile-table td {
  padding: 10px;
  width: 450px;
}

@media screen and (max-width: 768px) {
  .profile-table td {
    width: 100%;
    padding: 0;
  }

  .profile-table td input,
  .profile-table td select {
    font-size: 12px;
  }
}

input,
select {
  padding: 5px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.profile-table input {
  width: 100%;
}

.profile-table select {
  width: 90%;
}

.form-button {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .form-button {
    margin-bottom: 30px;
  }
}

.editButton {
  background-color: #0099d1;
  color: white;
  padding: 10px 30px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .editButton {
    margin-bottom: 30px;
  }
}

#editButton:hover {
  background-color: #007bb6;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-top: 0px;
}

.faculty-list {
  list-style: none;
  padding: 0;
}

.faculty-list li {
  padding: 8px;
  cursor: pointer;
}

.faculty-list li:hover {
  background-color: #f0f0f0;
}

/* ======================== /basicInfo-wrapper ======================== */

/* toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(40, 40, 40, 0.95);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}

.toast-icon {
  font-size: 18px;
  color: #4ade80;
}

/* ======================== conditions-wrapper ======================== */

.preference-card {
  max-width: 700px;
  width: 700px;
  /* height: 791px; */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 40px 40px 40px 40px;
  font-family: sans-serif;
}

@media screen and (max-width: 1079px) {
  .preference-card {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .preference-card {
    margin: 0 10px 50px 0;
    padding: 10px;
    width: calc(100% - 10px);
  }
}
.preference-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
  .preference-table tr {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    padding-bottom: 16px;
  }
}
.preference-table th {
  width: 35%;
  background: #f0f4f7;
  text-align: left;
  padding: 12px;
  font-weight: 600;
  color: #333;
}
@media screen and (max-width: 768px) {
  .preference-table th {
    width: 100%;
    padding: 5px 10px;
    font-size: 12px;
  }
}
.preference-table td {
  padding: 12px;
  color: #333;
}
@media screen and (max-width: 768px) {
  .preference-table td {
    width: 100%;
    padding: 0;
  }
}
.preference-table textarea {
  width: 100%;
}
@media screen and (max-width: 768px) {
  .preference-table textarea {
    font-size: 12px;
    border: solid 1px #f0f4f7;
    padding: 6px 9px;
  }
}
.preference-table .c-form__group .tag {
  text-align: left;
}
@media screen and (max-width: 768px) {
  .preference-table .c-form__group .tag {
    font-size: 12px;
  }
  .preference-table #change-time {
    font-size: 12px;
  }
}
.editButton {
  display: block;
  background: #0099d9;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .editButton {
    margin-bottom: 30px;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  font-weight: 400;
  width: 568px;
  height: 400px;
}
.modal-content h3 {
  margin-top: 0;
}
.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.modal-content li {
  margin-bottom: 10px;
}
.modal-content button {
  margin-right: 10px;
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-start;
}
.location-list label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  white-space: nowrap;
}

/* ======================== career-wrapper ======================== */
.career-block {
  margin-bottom: 30px;
}

.label {
  font-weight: bold;
  margin-bottom: 5px;
}

.remove-button {
  color: #888;
  font-size: 0.9em;
  margin-left: 10px;
  cursor: pointer;
}
.add-button-box {
  display: flex;
}
.add-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

.add-button:before {
  content: "";
  background-image: url("img/circle_icon.png");
  background-size: cover;
  background-position: center;
  width: 50px;
  height: 50px;
  display: inline-block;
}

.preference-card-career {
  /* min-height: 1180px; */
}

.preference-card-career-small {
  width: 700px;
  height: 450px;
  background: #fff;
  padding: 1px 40px 0px 40px;
  margin: 0 auto;
  position: relative;
  left: -40px;
}

.preference-card-career-small:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.button-wrapper {
  width: 700px;
  height: 200px;
  background: #fff;
  padding: 1px 40px 0px 40px;
  margin: 0 auto;
  position: relative;
  left: -40px;
}

/* ======================== cert-wrapper ======================== */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.cert-list {
  list-style: none;
  padding: 0;
}

.cert-item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.cert-item:hover {
  background-color: #f0f0f0;
}

/* ======================== file-wrapper ======================== */
.file-label {
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
}

@media screen and (max-width: 768px) {
  .file-label {
    font-size: 14px;
  }
}

.file-section,
.other-file-entry {
  margin-bottom: 20px;
}

.file-drop-box {
  background-color: #edf1f4;
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.file-display {
  border: 1px solid #ccc;
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  background: white;
  border-radius: 6px;
}

.file-meta {
  margin-top: 10px;
}

.file-meta a {
  color: #007bff;
  text-decoration: none;
  margin-right: 10px;
}

.delete-btn {
  border: 1px solid #999;
  background: white;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.file-small {
  display: block;
  text-align: right;
}

@media screen and (max-width: 768px) {
  .file-small {
    text-align: left;
    font-size: 12px;
  }
}

.add-btn {
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  border: 1px solid #ccc;
  display: block;
  margin: 0 auto;
}

.hidden {
  display: none;
}
