* {
  /* box-sizing: border-box; */
}
body {
  margin: 0;
  padding: 0;
  background-color: #fefefe;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.history-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0;
  padding: 20px 20px 0;
  background-color: white;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

p.uid-container {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 11px;
}
div.tab-content {
  background-color: rgb(182, 235, 248);
}

.history-section h3 {
  color: #333;
  /* margin-bottom: 10px; */
  margin: 10px 0;
}

.history-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  padding-top: 2px;
}

.history-list a {
  text-decoration: none;
}

.history-list li {
  background-color: #fff;
  margin-bottom: 2px;
  padding: 5px 10px;
  /* border-radius: 5px; */
  gap: 5px;
}

.history-list li:hover {
  background-color: #ddd;
  cursor: pointer;
}
.history-list.visited_list li:hover {
  background-color: #fff;
  cursor: default;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  margin-bottom: 5px;
  padding: 10px;
  /* border-radius: 5px; */
  flex-wrap: wrap;
}

.history-content {
  display: flex;
  width: calc(100% - 36px);
  justify-content: space-between;
}

.history-date {
  color: #555;
  font-size: 0.9em;
}

.history-content-id {
  color: #333;
  font-weight: bold;
  font-size: 0.9em;
  text-align: left;
  /* padding: 0 20px 0 0; */
  padding: 0;
  width: calc(100% - 40px);
}

.tabs {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tab-link {
  padding: 10px;
  cursor: pointer;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  background-color: #e9e9e9;
  border-radius: 20px 20px 0 0;
}

.tab-link.current {
  background-color: #3fc6ff;
  font-weight: bold;
  border-bottom: none;
  color:#fff;
}

.tab-link:hover {
  /* background-color: #ccc; */
}

.tab-content {
  display: none;
  padding: 0;
  border: 1px solid #ddd;
  background-color: #fff;
}

.tab-content.current {
  display: block;
}

i.fas.fa-star {
  color: #9c9c9c;
}

i.fas.fa-star.favarit {
  color: #fab005;
}

i.fas.fa-pen-square{font-size: 20px; color: #007bff;}

/* アコーディオン関連のスタイル */
.accordion-content {
  display: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  width: 100%;
}

.accordion-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
}

.accordion-button:focus {
  outline: none;
}

.accordion-button .fas {
  color: #333;
}

.exhibitor-item.exhibitor-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.exhibitor-item.exhibitor-clickable:hover {
  text-decoration: none;
}

/* フォーム要素のスタイル */
.accordion-content form {
  display: flex;
  flex-direction: column;
}

.accordion-content textarea {
  margin-bottom: 10px;
  resize: vertical;
}

.import-section {
  padding: 0px 20px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
}

.import-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.import-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.import-input {
  margin-bottom: 5px;
  padding: 8px;
  font-size: 14px;
  width: 100%;
  max-width: 300px;
}

.import-submit-container {
  text-align: left;
  width: 100%;
}

.import-submit-button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.import-submit-button:hover {
  background-color: #005599;
}

.import-result {
  margin-top: 20px;
  font-size: 14px;
  color: green;
}
.result-message {
  color: green;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.error-message {
  color: red;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Responsive iframe styling */
.osusume-section {
  position: relative;
  width: 100%;
  height: 100vh;
}

.osusume-section iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.osusume-button-container {
  padding: 10px 0 10px 10px;
}

.mypage-button {
  padding: 5px 20px;
  background-color: #003366;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.history-list .osusume-item {
  display: flex;
  align-items: center;
  padding: 10px 5px;
  /* border-bottom: 1px solid #e0e0e0; */
}

.history-list .osusume-item input[type='checkbox'] {
  margin-right: 10px;
}

.history-list .osusume-item p {
  margin: 0;
  flex: 1;
  white-space: normal;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploaded-image-container {
  width: 120px;
  height: 120px;
  overflow: hidden;
  display: inline-block;
  border: 1px solid #ddd;
  margin: 5px;
  box-sizing: border-box;
}

.uploaded-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .tabs {
    display: flex;
  }
  .tab-content {
    padding-top: 0px;
  }

  .tab-link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    max-width: 180px;
    font-size: 13px;
    padding: 0.5em 0.5em 0.3em;
  }
  .tabs .pc-only-tab {
    display: none;
  }
  ul.history-list {
    /* margin: 10px 0 0; */
  }
  .history-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }
  .history-content {
    display: flex;
    width: 85%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .history-content-id {
    width: 100%;
    color: #333;
    font-weight: bold;
    font-size: 0.9em;
    text-align: left;
    padding: 0;
  }
}

.accordion-content {
  display: none;
  transition: max-height 0.3s ease-out;
}

.hozon {
  width: 100px;
  background: #990000;
  padding: 5px;
  text-align: center;
  border-radius: 20px;
  color: #fff;
  border: 1px solid #fff;
}

.export-button {
  padding: 6px 10px;
  background-color: #880000;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.export-button:hover {
  background-color: #005599;
}

.export-button:active {
  background-color: #002244;
}

.export-button-container {
  margin: 0px;
  padding: 10px;
  background-color: #fff;
  display: flex;
  align-items: center;
  gap:8px;
}

.visit-toggle-button {
  background-color: #fff;
  border: none;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
}
.visit-toggle-button img {
  width: 100%;
  height: 100%;
}


.tab-explanation{background-color: #fff; font-size: 12px; padding: 5px 10px;}

.download-link {
    color: #007bff;
    text-decoration: none;
}

.download-link:hover {
    text-decoration: underline;
}

.download-link i {
    margin-right: 5px;
}