@charset "UTF-8";
@media screen and (max-width: 768px){
  .pconly{
    display: none !important;
  }
  .sponly > p{
    width: 92%;
    max-width: 450px;
    text-align: center;
    margin: auto;
    padding: 23px 0 40px;
  }
}
@media screen and (min-width: 769px){
  .sponly{
    display: none !important;
  }
}
nav.breadcrumb{
  display: block;
  background: #f5fdff;
}
nav.breadcrumb ol{
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  width: 90%;
  max-width: 1200px;
  padding: 10px 0;
  list-style: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
nav.breadcrumb ol li{
  position: relative;
  padding-right: 1.5em;
}
nav.breadcrumb ol li::before{
  content: ">";
  position: absolute;
  right: 3px;
}
nav.breadcrumb ol li:last-child::before{
  content: none;
}
.breadcrumb a{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
.big-flex{
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 40px 0 60px;
}
main{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
.big-flex main{
  width: 73%;
}
.big-flex aside{
  width: 22%;
  position: sticky;
  top: 100px;
  height: 100%;
}
.big-flex aside .side-cta{
  position: relative;
  margin-bottom: 10px;
}
.big-flex aside .side-cta .back{
  width: 100%;
}
.big-flex aside .side-cta .btn1,
.big-flex aside .side-cta .btn2{
  position: absolute;
  left: 8%;
  bottom: 6%;
  width: 80%;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.big-flex aside .side-cta .btn1{
  bottom: -1%;
  width: 57%;
  left: 40%;
}
body,
.jobs-content__row-item__info-title{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif !important;
}
/* モーダル用のスタイル */
.modal-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001; /* ゲーム画面より手前に */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.visible{
  opacity: 1;
  pointer-events: auto;
}
.modal-content{
  background: white;
  padding: 30px;
  border-radius: 16px;
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content{
  transform: scale(1);
}
.modal-close-btn{
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 2.5rem;
  color: #888;
  cursor: pointer;
}

/* ランク詳細ボタンのスタイル */
.result-details-action{
  text-align: center;
}
.result-button.tertiary{
  background: none;
  border: 1px solid #ccc;
  color: #555;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}
.result-button.tertiary:hover{
  background: #f0f0f0;
  border-color: #bbb;
  transform: translateY(0); /* 他のボタンのホバー効果を打ち消し */
  box-shadow: none;
}

/* モーダル内のテーブルスタイル */
.modal-content .rank-table-container{
  max-width: 100%;
  margin: 0 auto;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
.modal-content .rank-table-title{
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #333;
}
.modal-content .rank-table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.modal-content .rank-table th, .modal-content .rank-table td{
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
}
.modal-content .rank-table thead th{
  background-color: #f2f2f2;
  font-weight: 600;
  color: #333;
}
.modal-content .rank-table .description-header{
  width: 50%;
}
.modal-content .rank-table tbody tr:last-child td{
  border-bottom: none;
}
.modal-content .rank-table tbody td:not(:last-child){
  border-right: 1px solid #ddd;
}
.modal-content .rank-description{
  text-align: left;
  vertical-align: middle;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 20px;
  color: #333;
  font-weight: normal;
}
.modal-content .rank-group-sa{ background-color: #e0f2ff; }
.modal-content .rank-group-bc{ background-color: #e6ffe6; }
.modal-content .rank-group-d { background-color: #fff2e0; }


.rank-table-section{
  margin-top: 60px;
  padding: 30px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
/* モーダル内のテーブルスタイル */
.rank-table-section .rank-table-container{
  max-width: 100%;
  margin: 0 auto;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
.rank-table-section .rank-table-title{
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #333;
}
.rank-table-section .rank-table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.rank-table-section .rank-table th, .rank-table-section .rank-table td{
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
}
.rank-table-section .rank-table thead th{
  background-color: #f2f2f2;
  font-weight: 600;
  color: #333;
}
.rank-table-section .rank-table .description-header{
  width: 50%;
}
.rank-table-section .rank-table tbody tr:last-child td{
  border-bottom: none;
}

.rank-table-section .rank-description{
  text-align: left;
  vertical-align: middle;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 20px;
  color: #333;
  font-weight: normal;
}
.rank-table-section .rank-group-sa{ background-color: #e0f2ff; }
.rank-table-section .rank-group-bc{ background-color: #e6ffe6; }
.rank-table-section .rank-group-d { background-color: #fff2e0; }


:root{
  --font-game: 'Noto Sans JP', sans-serif;
  --color-bg-start: #2a61c7;
  --color-bg-end: #59a2ff;
  --color-text-primary: #ffffff;
  --color-text-secondary: #cce0ff;
  --color-accent: #00d2ff;
  --color-correct: #34d399;
  --color-error: #ff6b81;
  --color-panel-bg: rgba(255, 255, 255, 0.98);
  --color-panel-text: #1e3a8a;
  --color-shadow: rgba(0, 52, 128, 0.2);
  --transition-speed: 0.5s;
  --transition-easing: cubic-bezier(0.25, 1, 0.5, 1);
  --rank-s-plus: #ffbf00;
  --rank-s: #ffd700;
  --rank-a: #c0c0c0;
  --rank-d: #a0a0a0;
}
#typing-thumbnail-card{
  position: relative;
  border-radius: 24px;
  padding: 3rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  color: #fff;
  font-family: var(--font-game);
  opacity: 1;
}
#typing-thumbnail-card.fade-out{
  opacity: 0;
  pointer-events: none;
}
.thumbnail-bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-bg-start), var(--color-bg-end));
  z-index: 1;
}
.thumbnail-content{
  position: relative;
  z-index: 2;
}
.thumbnail-title{
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.thumbnail-title span{ display: block; }
.thumbnail-description{
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
}
.thumbnail-button{
  background: #fff;
  color: var(--color-bg-start);
  border: none;
  border-radius: 50px;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: var(--font-game);
}
.thumbnail-button:hover{
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.how-to-play-btn {
  width: 7em;
  position: absolute;
  right: 0;
  text-align: center;
  cursor: pointer;
}
.how-to-play-btn:hover{
  opacity: 0.7;
}

#typing-game-wrapper{
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  background: linear-gradient(160deg, var(--color-bg-start), var(--color-bg-end));
  color: var(--color-text-primary);
  font-family: var(--font-game);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 5rem;
  overflow-y: auto;
  background-size: 200% 200%;
  animation: moveGradient 15s linear infinite;
}
.step-description>p{
  padding: 0;
}

@keyframes moveGradient{
  0%{
    background-position: 0% 50%;
  }
  50%{
    background-position: 100% 50%;
  }
  100%{
    background-position: 0% 50%;
  }
}
#how-to-modal{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 100vw;
  height: 100vh;
  display: none;
}

.how-to-play-section {
  padding: 30px 40px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #dbe9ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
  width: 90%;
  max-width: 800px;
  margin: 7% auto;
  position: relative;
}
.how-to-play-section .close{
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #797979;
  color: white;
  text-align: center;
  font-size: 16px;
  padding-top: 1px;
  right: 40px;
  top: 30px;
  cursor: pointer;
  z-index: 1000000;
}


.how-to-play-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  color: #1e3a8a;
  position: relative;
  padding-bottom: 0.75rem;
}
.how-to-play-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0eaff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, var(--color-bg-end, #59a2ff), var(--color-bg-start, #2a61c7));
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(42, 97, 199, 0.3);
}
.step-description {
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 0.25rem;
}
.step-description p {
  margin: 0 0 0.5rem 0;
}
.step-description p:last-child {
  margin-bottom: 0;
}
.step-description kbd {
  display: inline-block;
  padding: 0.1em 0.6em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9em;
  color: var(--color-bg-start, #2a61c7);
  background-color: #eaf2ff;
  border: 1px solid #b3c7ff;
  border-radius: 4px;
  box-shadow: 0 2px 0 #b3c7ff;
  margin: 0 0.2em;
  font-weight: 600;
  transform: translateY(-1px);
}

#typing-game-wrapper.active{
  opacity: 1;
  pointer-events: auto;
}
body.game-active{
  overflow: hidden;
}
#countdown-overlay{
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 15rem;
  font-weight: 700;
  color: #fff;
}
#countdown-number{
  transform: scale(0.5);
  opacity: 0;
  transition: none;
}
#countdown-overlay.active #countdown-number{
  animation: countdown-tick 0.66s ease-out;
}
@keyframes countdown-tick{
  0%{ transform: scale(0.5); opacity: 0; }
  50%{ transform: scale(1.1); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}

#start-screen{ text-align: center; }
.start-title{
  font-size: 4rem; font-weight: 500; letter-spacing: 0.2em;
  opacity: 0; animation: fade-in-up 1s forwards;
}
.start-instruction{
  font-size: 1.5rem; font-weight: 300;
  opacity: 0; animation: fade-in-up 1s 0.2s forwards;
}
.start-key-prompt{
  margin-top: 2rem; opacity: 0;
  animation: fade-in-up 1s 0.4s forwards;
}
.start-key-prompt .key{
  display: inline-block;
  padding: 0.5rem 4rem;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 1.2rem;
  padding-top: 12px;
}
@keyframes fade-in-up{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

#game-container{
  width: 100%; max-width: 900px;
  position: relative;
  flex-grow: 1; display: flex;
  align-items: center;
  margin: auto 0;
}
.screen{
  position: absolute; width: 100%; opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing);
}
.screen.active{ opacity: 1; pointer-events: auto; transform: translateY(0); }

.game-header{
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
#game-timer{
  font-size: 1.5rem;
  font-weight: 500;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}
.game-controls{
  display: flex;
  gap: 0.75rem;
}
.game-control-button{
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-game);
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s;
}
.game-control-button:hover{
  background: rgba(255, 255, 255, 0.3);
}

#progress-bar{
  position: fixed; top: -10px; left: 0; height: 4px;
  background-color: var(--color-accent); width: 0%;
  transition: width 0.6s var(--transition-easing);
  box-shadow: 0 0 15px var(--color-accent);
}
#progress-bar::after{
  content: ''; position: absolute; top: 0; right: 0;
  width: 100px; height: 100%;
  background: linear-gradient(to left, var(--color-text-primary), transparent);
  border-radius: 50%; box-shadow: 0 0 10px var(--color-text-primary);
  opacity: 0; transition: opacity 0.3s;
}
#progress-bar.shining::after{
  opacity: 1;
  transition: opacity 0s;
}
#quote-wrapper{
  min-height: 150px;
  display: grid;
  place-items: center;
}
#quote-display{
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
  transition: opacity 0.3s, transform 0.3s;
  margin-top: 60px;
  user-select: none;
}
#input-textarea{
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-game);
  font-size: 1.8rem;
  text-align: center;
  resize: none;
  transition: all 0.3s;
  margin-top: 1rem;
}
#input-textarea:focus{
  outline: none;
  border-color: var(--color-text-primary);
  background-color: rgba(0, 0, 0, 0.2);
}
#input-textarea.error{
  border-color: var(--color-error);
  animation: shake 0.4s;
}
@keyframes shake{
  25%{ transform: translateX(6px); }
  75%{ transform: translateX(-6px); }
}
.result-panel{
  background: var(--color-panel-bg); color: var(--color-panel-text);
  border-radius: 24px; padding: 2rem 3rem; text-align: center;
  display: flex; flex-direction: column; gap: 2rem;
  box-shadow: 0 10px 40px var(--color-shadow);
  width: 100%;
  position: relative;
}
.result-title{
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-panel-text);
  opacity: 0.7;
  margin: 0;
}
.result-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  align-items: flex-end;
}
.stat-item{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-label{
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.stat-value{
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.stat-Score-value{
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color:#5679da;
}
#rank-stat .stat-value{
  font-size: 3.5rem;
}
.result-divider{
  border: none;
  height: 1px;
  background-color: rgba(0, 82, 128, 0.1);
  margin: 0;
}

#result-charts-wrapper{
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.chart-container{
  flex: 1;
  min-width: 0;
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up-chart 0.6s forwards;
}
.chart-title{
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-panel-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
#wpm-chart-container{
  animation-delay: 0.2s;
}
#radar-chart-container{
  animation-delay: 0.4s;
}
@keyframes fade-in-up-chart{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.result-actions{
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.result-button{
  background: var(--color-bg-start);
  border: none;
  color: var(--color-text-primary);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-game);
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  flex-grow: 1;
  max-width: 250px;
}
.result-button:hover{
  transform: translateY(-3px);
  box-shadow: 0 4px 20px var(--color-shadow);
}
.result-button.secondary{
  background: #e0e0e0;
  color: #555;
}
.result-button.secondary:hover{
  background: #d1d1d1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#rank-stat{
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#rank-stat.is-visible{
  opacity: 1;
  transform: scale(1);
}
#rank-value.rank-splus{
  color: var(--rank-s-plus);
  text-shadow: 0 0 15px var(--rank-s-plus);
}
#rank-value.rank-s{
  color: var(--rank-s);
  text-shadow: 0 0 10px var(--rank-s);
}
#rank-value.rank-sminus{
  color: #f5e050;
}
#rank-value.rank-aplus{
  color: #d4d4d4;
}
#rank-value.rank-a{
  color: var(--rank-a);
}
#rank-value.rank-aminus{
  color: #b0b0b0;
}
#rank-value.rank-bplus{
  color: #cd7f32;
}
#rank-value.rank-b{
  color: #d29a61;
}
#rank-value.rank-bminus{
  color: #e6c3a1;
}
#rank-value.rank-cplus{
  color: #8ab0e3;
}
#rank-value.rank-c{
  color: #a3c1e8;
}
#rank-value.rank-cminus{
  color: #bcd2ed;
}
#rank-value.rank-dplus{
  color: #b3b3b3;
}
#rank-value.rank-d{ color: var(--rank-d); }
#rank-value.rank-dminus{
  color: #888888;
}
#keyboard{
  width: 100%;
  max-width: 1000px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.keyboard-row{
  display: flex;
  justify-content: center;
  gap: 8px;
}
.key{
  height: 50px;
  flex-grow: 1;
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.1s;
  user-select: none;
}
.key.pressed{
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(0.95);
}
.key[data-key="Space"]{
  flex-grow: 8;
}
.help-icon{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ccc;
  color: white;
  border: none;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}
.help-icon:hover{
  background-color: #aaa;
}
.help-tooltip{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: left;
}
.help-tooltip.visible{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.tooltip-close-button{
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.help-tooltip h4{
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}
.help-tooltip ul{
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.help-tooltip li{
  margin-bottom: 1rem;
}
.help-tooltip li p{
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0 0 0;
  padding-left: 1rem;
  border-left: 3px solid #eee;
}
/* --- リザルト画面フッター --- */
.result-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 82, 128, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
}

.result-footer-actions{
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.copy-link-wrapper{
    position: relative;
    display: flex;
}

#copy-link-button, #download-card-button{
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6rem 1rem; /* 少し小さめに調整 */
}

#copy-feedback{
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#copy-feedback.visible{
    opacity: 1;
}

#result-date-container{
    color: var(--color-panel-text);
    font-family: var(--font-game);
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.8;
    white-space: nowrap; /* 日付が改行されないように */
}
/* ===== ここまで変更 ===== */
#result-date-container .date-separator{
  opacity: 0.6;
}
@media (max-width: 768px){
  #result-charts-wrapper{
    flex-direction: column;
    gap: 2.5rem;
  }
  .chart-container{
    max-width: 100%;
  }
  .result-panel{
    padding: 2rem 1.5rem;
  }
  #game-container{
    max-width: 100%;
  }
  .result-actions{
    flex-direction: column;
  }
  .help-tooltip{
    width: 95%;
    padding: 1.5rem;
  }
  .result-footer{
    flex-direction: column-reverse; /* 画面が狭い場合は縦並び（日付が下）に */
    align-items: center;
  }
}
/* アニメーションを無効化するためのクラス */
#quote-display.no-transition{
  transition: none;
}
/* --- リザルト画面のレイアウト崩れ対策 --- */
.result-panel{
    max-height: 95vh; /* 画面の高さの95%を最大高さに設定 */
    overflow-y: auto; /* 高さを超えた場合は縦スクロールを許可 */
}

/* スクロールバーのデザイン（任意） */
.result-panel::-webkit-scrollbar{
    width: 8px;
}
.result-panel::-webkit-scrollbar-track{
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.result-panel::-webkit-scrollbar-thumb{
    background-color: rgba(0, 82, 128, 0.5);
    border-radius: 10px;
}

/* ===== ここから追加 ===== */
#quote-display span.incorrect{
    color: var(--color-error); /* エラー用の色変数を使用 */

    border-radius: 4px;
}

/* --- 証明カード（キャプチャ用）のスタイル --- */
#skill-card-for-capture{
    position: absolute;
    left: -9999px; /* 画面外に飛ばす */
    width: 600px;
    height: 500px;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #fff;
    border-radius: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
}

.card-title{
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.card-stats{
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.card-stat-item{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

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

.card-stat-label{
    font-size: 16px;
    font-weight: 300;
}

.card-stat-value{
    font-size: 24px;
    font-weight: bold;
}

#capture-total-score-item .card-stat-value{
    color: #ffeb3b;
    font-size: 32px;
}

.card-footer{
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}
/* ===== ここまで追加 ===== */
/* --- スライダーのスタイル --- */
.settings-container{
    margin: 3rem auto; /* 「2rem 0」から「2rem auto」に変更 */
    width: 100%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    animation: fade-in-up 1s 0.4s forwards;
}

.setting-label{
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-text-secondary);
}

#session-length-value{
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    display: inline-block;
    min-width: 40px;
}

.slider{
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    outline: none;
    opacity: 0.8;
    transition: opacity .2s;
}

.slider:hover{
    opacity: 1;
}

/* スライダーのつまみ (Chrome, Safari) */
.slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--color-bg-start);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* スライダーのつまみ (Firefox) */
.slider::-moz-range-thumb{
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--color-bg-start);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
#close-game-button2{
  animation: fade-in-up 1s forwards;
}

/* 追加分 */
.important{
  margin-top: 60px;
  padding: 30px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
.important h2{
  margin: 0;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #333;
}
.important .flex{
  display: flex;
  justify-content: space-between;
}
.important .flex p{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  width: 68%;
}
.important .flex .image{
  width: 30%;
}
.important .flex .image img{
  width: 100%;
}
.about{
  margin-top: 60px;
  padding: 30px 40px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #dbe9ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
.about h2{
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
  position: relative;
  padding-bottom: 0.75rem;
}
.about p{
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.about ul{
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.about ul li{
  margin-bottom: 20px;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
}
.about ul li h3{
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-left: 1em;
  position: relative;
}
.about ul li h3::before{
  content: "◆";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}
.about .image{
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.about .image img{
  width: 48%;
  border-radius: 10px;
}
p.result-chui{
  font-size: 12px;
  text-align: center;
}
