/* Base */
body {
    margin: 0;
    padding: 0;
    font-family: "Rounded Mplus 1c", "Helvetica Neue", "Arial",
                 "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
    background: linear-gradient(180deg, #f8f7fb, #f1f0f6);
    color: #444;
    line-height: 1.7;
}


a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}



/* 1 Column Layout */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Header */
.site-title, .site-title a {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #5f67d8;
    letter-spacing: 0.8px;
}

.site-title-link, .site-title-link:visited, .site-title-link:hover {
    text-decoration: none;
    color: inherit;
}

.site-title-link h1 {
    display: inline-block;
    cursor: pointer;
}

.tagline {
    font-size: 15px;
    margin-top: 6px;
    color: #888;
}


/* Card UI */
.card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    margin: 24px 0;
    box-shadow:
      0 4px 12px rgba(0,0,0,0.04),
      0 10px 30px rgba(143,155,255,0.08);
    border: none;
}


/* Buttons */
.primary-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #8f9bff, #ffb7e0);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(143,155,255,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(143,155,255,0.45);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(143,155,255,0.35);
}


/* Footer */
.footer-text {
    font-size: 13px;
    text-align: center;
    color: #888;
    margin-top: 32px;
}

.footer-text a {
    color: inherit;
    text-decoration: underline;
}

/* Placeholder text for template pages */
.placeholder-text {
    font-size: 14px;
    color: #777;
    text-align: center;
    padding: 12px 0;
}

/* Utility */
button:focus {
    outline: 2px solid rgba(108,122,224,0.4);
    outline-offset: 2px;
}



/*Listener Result */
#result {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
#result-container h2 {
  margin-bottom: 16px;
  text-align: left;
}
.result-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.result-card img {
  float: left;
  margin-right: 14px;
  border-radius: 12px;
}

.result-card h3 {
  margin-top: 0;
  font-size: 1.1em;
  color: #5f67d8;
}

.result-card hr {
  clear: both;
  border: none;
  border-top: 1px solid #eee;
  margin-top: 12px;
}
@media (max-width: 600px) {
  #result {
    grid-template-columns: 1fr;
  }
}


/* Top tag */
.intro-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.cute-word {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  margin: 0 2px;
}
.cute-word.listener {
  background: linear-gradient(135deg, #ffd6e8, #ffeef6);
  color: #d63384;
}
.cute-word.vtuber {
  background: linear-gradient(135deg, #d6f0ff, #eef9ff);
  color: #0077b6;
}
.cute-number {
  font-size: 1.4em;
  font-weight: bold;
  color: #ff5fa2;
  padding: 0 6px;
}
.count-line {
  margin-top: 8px;
  font-size: 1.1rem;
}


/* ===== Form Base ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

input[type="text"],
input[type="url"],
textarea {
  width: calc(100% - 28px);;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #8f9bff;
  box-shadow: 0 0 0 3px rgba(143,155,255,0.25);
  outline: none;
}

textarea {
  resize: vertical;
}

/* 説明テキスト */
form > br {
  display: none;
}

/* 区切り線 */
hr {
  border: none;
  border-top: 1px dashed #ddd;
  margin: 16px 0;
}

/* ===== Question Area ===== */
#question-area {
  background: linear-gradient(135deg, #f7f8ff, #ffffff);
  border-radius: 16px;
  padding: 20px;
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,0.05);
}

#question-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

/* 回答ボタン */
.answer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.answer-buttons button {
  padding: 12px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #eef0ff;
  color: #4b55c4;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.answer-buttons button:hover {
  background: #e1e4ff;
  transform: translateY(-1px);
}

.answer-buttons button:active {
  transform: translateY(0);
}

/* 3つ目（どちらともいえない）を横幅いっぱいに */
.answer-buttons button:nth-child(3) {
  grid-column: 1 / -1;
  background: #f3f3f3;
  color: #666;
}

.answer-buttons button:nth-child(3):hover {
  background: #e8e8e8;
}

/* 進捗表示 */
#progress {
  font-size: 13px;
  color: #777;
  text-align: right;
}

/* ===== Save Button (途中登録) ===== */
#saveBtn {
  margin-top: 20px;
}

/* 必須リンク */
label a {
  font-size: 12px;
  margin-left: 6px;
  color: #6c7ae0;
}

label a:hover {
  text-decoration: underline;
}

