/* handwriting/style.css - v1 2026-01-12 */
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  text-align: center;
}
h1, p { font-size: 100%; }
#result a { font-size: 200%; }
button { height: 80px; margin: 1%; width: 25%; cursor: pointer; font-size: 110%; }
button#search { font-weight: bold; width: 50%; }
p#hot { font-size: 100%; }
.gray { background-color: #f5f5f5; }

.button,
.button:visited {
  position: relative;
  color: #000 !important;
  text-shadow: 1px 1px 0px #eaeaea;
  margin: 1%;
  padding: 7px 10px;
  border: 1px solid #6e6e6e;
  text-decoration: none;
  background: #ccc;
  background: linear-gradient(to bottom, #fcfcfc, #bbbbbb);
  border-radius: 5px;
  box-shadow: 0px 0px 2px #ccc;
}
.button:hover { background: #eee; }
.button:active, .button:focus {
  background: #eee;
  background: linear-gradient(to top, #fcfcfc, #bbbbbb);
}
.button:disabled {
  color: #848484 !important;
  text-shadow: 1px 1px 0px #eaeaea;
  background: #dcdcdc;
}

.on { color: #333; font-weight: bold; border: 2px solid #333; }
.off { background: #dcdcdc; cursor: pointer; }
.off a { font-weight: bold; color: #fff; text-decoration: none; }

.mode { text-align: right; }
.mode span {
  font-size: 120%;
  padding: 0 5px;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
}

canvas {
  background-color: #FFFFEE;
  border-color: #dcdcdc;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 400 / 250;
}

.fixed { height: 375px; }

/* HowTo Section */
.howto {
  text-align: left;
  max-width: 600px;
  margin: 20px auto;
  padding: 0 15px;
}
.howto h2 {
  font-size: 110%;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  margin-bottom: 15px;
}
.howto ol {
  margin: 0;
  padding: 0 0 0 25px;
  counter-reset: step;
  list-style: none;
}
.howto li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 10px;
  line-height: 1.6;
}
.howto li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -25px;
  width: 22px;
  height: 22px;
  background: #0066cc;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  font-weight: bold;
}
.howto li strong {
  color: #333;
}
.howto .examples {
  display: inline-block;
  margin-top: 5px;
  font-size: 90%;
  color: #666;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 3px;
}

/* FAQ Section */
.faq {
  text-align: left;
  max-width: 600px;
  margin: 20px auto;
  padding: 0 15px;
}
.faq h2 {
  font-size: 110%;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  margin-bottom: 15px;
}
.faq details {
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  padding: 10px 15px;
}
.faq summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: #0066cc; }
.faq details p {
  margin: 10px 0 0 0;
  padding-left: 20px;
  line-height: 1.6;
}
.faq details p::before {
  content: "A. ";
  color: #cc6600;
  font-weight: bold;
  margin-left: -20px;
}

/* Footer */
footer {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 15px;
  text-align: center;
}
footer > p { margin-top: 20px; }
footer > p a { font-size: 80%; color: #666; }

/* Accordion */
.accordion { text-align: left; }
.accordion-section {
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.accordion-button {
  background: #f5f5f5;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-button:hover { background: #eee; }
.accordion-button .arrow {
  font-size: 12px;
  transition: transform 0.3s;
}
.accordion-button[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}
.accordion-content {
  display: none;
  padding: 10px 15px;
  border-top: 1px solid #ddd;
}
.accordion-content ul { margin: 0; padding: 0 0 0 20px; }
.accordion-content li { margin: 5px 0; line-height: 1.8; }
.accordion-content a { color: #0066cc; text-decoration: none; }
.accordion-content a:hover { text-decoration: underline; }
