@charset "UTF-8";

@media screen and (min-width: 540px) {}

@media screen and (min-width: 640px) {}

@media screen and (min-width: 782px) {}

@media screen and (min-width: 980px) {}


.parent-pageid-170 .breadcrumbs {
  display: none;
}
#question-area {
  background-color: #f7f6f5;
  padding: 50px 24px;
}
.question-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: center;
  border-bottom: dotted 1px #c0c0c0;
  padding-bottom: 24px;
}
.question-title span {
  display: block;
  font-size: 14px;
  font-weight: 400;
}
.question-title span.question {
  display: block;
  font-size: 15px;
  font-weight: bold;
  background-color: #af001f;
  width: max-content;
  padding: 5px 24px;
  border-radius: 50px;
  color: #fff;
  margin: 8px auto 16px;
}
@media screen and (max-width: 600px) {
.question-title span.question {
  display: block;
  font-size: 15px;
  font-weight: bold;
  background-color: #af001f;
  width: max-content;
  padding: 5px 24px;
  border-radius: 50px;
  color: #fff;
  margin: 8px auto 16px;
}
}



.diagnosis-wrapper {
  margin: 0 auto;
  color: #333;
  padding: 10px 0px 80px;
}

.progress-bar {
  background: #e0e0e0;
  height: 10px;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  background-color: #ea0029;
  width: 0;
  transition: width 0.3s ease;
}

.step-count-text {
  text-align: right;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}
#step-count-text {
  text-align: center;
}
.question-title {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.6;
}
@media screen and (max-width: 600px) {
  .question-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.6;
}
}
.option-button:hover {
  background-color: #eee;
}
.option-button.selected {
  background-color: #ea0029;
  color: #fff;
  border-color: #ea0029;
}

.button-area {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
#back-button,
#next-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 16px 25px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  width: 50%;
  margin: 5px;
}
@media screen and (max-width: 600px) {
  #back-button,
#next-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  width: 50%;
  margin: 5px;
}
}
#back-button {
  background-color: #a1a1a1;
}
.back-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.next-button:hover,
.back-button:hover {
  background-color: #ea0029;
}

.result-area {
  margin-top: 40px;
}
.video-card {
  margin-bottom: 0px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.video-card h4 {
  margin: 10px 0 8px;
}
.match-percent {
  font-weight: bold;
  color: #ea0029;
  margin-bottom: 8px;
}

/* SP対応 */
@media screen and (max-width: 600px) {
  .option-button {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
  }
  .button-area {
    flex-direction: column;
    gap: 10px;
  }
  .back-button,
  .next-button {
    width: 100%;
    font-size: 16px;
  }
}

#youtube-diagnosis-wrapper {
  margin: 0 auto;
  padding: 2rem;
}

#progress-bar {
  width: 100%;
  background: #eee;
  height: 10px;
  border-radius: 5px;
  margin-bottom: 1rem;
  overflow: hidden;
}

#progress-fill {
  height: 10px;
  width: 0%;
  background: #ea0029;
  transition: width 0.3s ease;
}

#step-count-text {
  margin-bottom: 1rem;
  font-weight: bold;
}

.option-button {
  display: inline-block;
  width: auto;
  padding: 0.5rem 1rem;
  margin: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  background-color: #fff;
}

.option-button.selected {
  background-color: #ea0029;
  color: #fff;
  border-color: #ea0029;
}

.button-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}


.video-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #fafafa;
}

.match-percent {
  font-weight: bold;
  color: #ea0029;
  margin-bottom: 0.5rem;
}

.video-thumbnail {
  cursor: pointer;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}

.video-thumbnail img {
  width: 100%;
  display: block;
}

.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #000;
  padding: 1rem;
  border-radius: 8px;
}

.video-modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.video-card h4 {
  font-size: 15px;
  margin: 10px 0;
  text-align: left;
}

.video-thumbnail {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 0px;
}

.youtube-button,
.copy-button {
  display: inline-block;
  padding: 8px 16px;
  margin: 6px 4px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #ea0029;
  color: white;
  text-decoration: none;
}

.youtube-button:hover,
.copy-button:hover {
  background-color: #c80022;
}
#result-area h3 {

}
#result-area {
  text-align: center;
}
#result-area h3 {
  position: relative;
  display: inline-block;
  padding: 0 55px;
  margin-bottom: 0px;
  font-size: 20px;
}
@media screen and (max-width: 600px) {
  #result-area h3 {
  position: relative;
  display: inline-block;
  padding: 0 55px;
  margin-bottom: 0px;
  font-size: 17px;
}
}
#result-area h3:before, #result-area h3:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: black;
}

#result-area h3:before {
  left:0;
}
#result-area h3:after {
  right: 0;
}
.copy-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.youtube-button,
.copy-button {
  display: block;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  margin: 6px 0;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 48px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* 色個別指定 */
.youtube-button {
  background-color: #af001f;
}

.youtube-button:hover {
  background-color: #880018;
  color: #fff;
}

.copy-button {
  background-color: #606060;
}

.copy-button:hover {
  background-color: #444444;
}

/* 無効化中のコピー時の表示 */
.copy-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.video-card i {
  padding-left: 4px;
}


/* ロード画面 */
.loading-screen {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 18px;
  color: #333;
  margin-top: 20px;
}

/* スピナー本体 */
.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #ccc;
  border-top: 6px solid #ea0029;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 回転アニメーション */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

