@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');


body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #191919;
  background-color: #f8f8f8;
}

* {
  box-sizing: border-box;
}

.none {
  display: none;
}

/* modal */
.modal-wrapper:not(.initial-show) {
  display: none;
}

.modal-wrapper:not(.initial-show) .modal-bg,
.modal-wrapper:not(.initial-show) .modal {
  opacity: 0;
}

.modal-bg {
  content: "";
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  position: absolute;
  background-color: rgba(200, 200, 200, 0.3);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  z-index: 88;

  &.second-modal-bg {
    z-index: 109;
  }
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: opacity 0.15s ease;
  background-color: var(--white);
  padding: 24px 30px 30px;
  border-radius: 8px;
  z-index: 99;
  max-width: 95%;
  max-height: 90%;
  overflow-y: auto;

  &::-webkit-scrollbar {
    width: 0;
  }

  &::-webkit-scrollbar-track {
    background: var(--transparent);
    border: none;
    box-shadow: none;
  }

  &::-webkit-scrollbar-thumb {
    box-shadow: none;
  }

  &.second-modal {
    box-shadow: 0 0 300px -80px var(--primary-black);
    z-index: 119;
  }

  &:not(.auto-modal) {
    width: 390px;
  }

  &.auto-modal {
    max-height: 100%;
  }

  &.larger-modal {
    width: 550px;
  }

  &.large-modal {
    width: 650px;
  }

  &.small-modal {
    width: 360px;
  }

  &.image-modal {
    display: inline-block;
    width: auto;
    height: auto;
    background-color: var(--transparent);
    padding: 0;
    border-radius: 0;
  }

  &.image-modal img {
    max-height: 90vh;
    /* viewportの高さに対して最大90% */
    max-width: 90vw;
    /* viewportの幅に対して最大90% */
    height: auto;
    width: auto;
  }

  & .heading-wrapper {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: center;
  }

  & .modal-content > .tab-wrapper {
    border-bottom: 2px solid #eee;

    & .tab.current {
      color: var(--primary);
      position: relative;
      font-weight: bold;

      &::after {
        content: "";
        position: absolute;
        height: 2px;
        width: 100%;
        background-color: var(--primary);
        bottom: -2px;
        left: 0;
      }
    }
  }

  &-menu {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  & .form:not(.scroll-form-wrapper) {
    padding-top: 30px;
  }

  & .button-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  & .form .error-text {
    margin-bottom: 4px;
  }
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.header h2 {
  margin: 0;
  color: #FF5A5F;
  font-size: 28px;
}

.main-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}


.section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section h3 {
  color: #008489;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
}

/* ナビゲーションメニューのスタイル */
.main-nav {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-bottom: 30px;
}

.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo h2 {
  margin: 0;
  padding: 15px 0;
  color: #FF5A5F;
  font-size: 22px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-item {
  position: relative;
}

.nav-item a {
  display: block;
  padding: 20px 15px;
  color: #191919;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: color 0.3s, background-color 0.3s;
}

.nav-item a:hover {
  color: #FF5A5F;
  background-color: #f8f8f8;
}

.nav-item.active a {
  color: #FF5A5F;
  border-bottom: 3px solid #FF5A5F;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    padding: 0;
  }
  
  .nav-logo {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }
  
  .nav-menu {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .nav-item {
    flex: 1 1 50%;
    text-align: center;
  }
  
  .nav-item a {
    padding: 15px 10px;
  }
}

@media (max-width: 600px) {
  .nav-item {
    flex: 1 1 100%;
  }
}

.form-container {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 6px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.button {
  background-color: #FF5A5F;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #FF3B41;
}

.sessions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.session-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.session-info h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #191919;
  font-size: 18px;
}

.session-info p {
  margin: 0;
  color: #767676;
  font-size: 14px;
}

.view-report-button {
  display: block;
  text-align: center;
  margin-top: 15px;
  padding: 8px 12px;
  background-color: #008489;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.view-report-button:hover {
  background-color: #006C70;
}

.status-message {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.progress-container {
  margin-top: 20px;
}

.progress-bar {
  height: 20px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background-color: #FF5A5F;
  width: 0%;
  transition: width 0.5s;
}

.progress-text {
  text-align: center;
  margin-top: 5px;
  font-size: 14px;
  color: #767676;
}


.nav-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
}

.nav-link-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: #008489;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-right: 10px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.nav-link-button:hover {
  background-color: #006C70;
}

.analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #FF5A5F;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 15px;
}

.analyze-btn:hover {
  background-color: #E74047;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-icon {
  font-size: 22px;
  font-weight: bold;
}

.btn-text {
  font-size: 18px;
}

/* 追加スタイル */
.input-group {
  display: flex;
  align-items: center;
}

.url-input {
  flex-grow: 1;
}

.memo-input {
  width: 200px;
}

.add-url-btn {
  background-color: #008489;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
}

.remove-btn {
  color: #FF5A5F;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}

.queue-container {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.queue-item:last-child {
  border-bottom: none;
}

.queue-info {
  flex-grow: 1;
}

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

.queue-url {
  color: #767676;
  font-size: 14px;
  word-break: break-all;
}

.queue-status {
  margin-left: 15px;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.status-waiting {
  background-color: #f8f8f8;
  color: #767676;
}

.status-processing {
  background-color: #E6F7F8;
  color: #008489;
}

.status-completed {
  background-color: #E7F9ED;
  color: #35B55F;
}

.status-error {
  background-color: #FFF4F4;
  color: #FF5A5F;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-left: 10px;
}

.view-report-btn {
  background-color: #008489;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  display: none;
}

.remove-queue-btn {
  background-color: #FF5A5F;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.add-form-container {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

/* 新たに追加したスタイル */
.session-list {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.session-list th, .session-list td {
  border: 1px solid #eee;
  padding: 10px;
  text-align: left;
}

.session-list th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.session-list tr:hover {
  background-color: #f1f1f1;
}

.sort-active {
  color: #008489;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.pagination a, .pagination span {
  margin: 0 5px;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a {
  background-color: #f1f1f1;
  color: #333;
}

.pagination a:hover {
  background-color: #ddd;
}

.pagination .current {
  background-color: #008489;
  color: white;
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-container {
  height: 500px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.investment-score {
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
}

.score-excellent-plus {
  background-color: #008cff; /* 青 - 100-90点 */
}

.score-excellent {
  background-color: #02a16f; /* 緑 - 90-80点 */
}

.score-good {
  background-color: #88CC00; /* 黄緑 - 80-70点 */
}

.score-average {
  background-color: #FFEB3B; /* 黄色 - 70-60点 */
}

.score-below-average {
  background-color: #FF9800; /* オレンジ - 60-50点 */
}

.score-poor {
  background-color: #F44336; /* 赤 - 50点以下 */
}

.view-report-button {
  display: inline-block;
  background-color: #008489;
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.view-report-button:hover {
  background-color: #006c70;
}

/* ナビゲーションドロップダウン */
.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-toggle.active {
  color: #007bff;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #007bff;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
  color: #6c757d;
  pointer-events: none;
  background-color: transparent;
}

.refresh-map-control {
  background-color: #2196F3;
}

.refresh-map-control:hover {
  background-color: #0b7dda;
}

/* アイコン用のスタイル */
.fa-refresh:before { content: "🔄"; }
.fa-check:before { content: "✓"; }
.fa-times:before { content: "✗"; }
.fa-spinner:before { content: "◌"; }
.fa-info:before { content: "ℹ"; }

/* スピナーアニメーション */
.fa-spin {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .sessions-list {
    grid-template-columns: 1fr;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header h2 {
    margin-bottom: 10px;
  }
}


