/* tegaki/style.css - v5 2026-01-11 */

/* Base styles */
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  text-align: center;
  font-size: 16px;
}

h1 {
  font-size: 1.5em;
}

a {
  text-decoration: none;
}

#result a {
  font-size: 1.5em;
  text-decoration: underline;
}

#hot a {
  font-size: 1.1em;
  line-height: 2;
}

/* Button styles */
button {
  height: 50px;
  margin: 5px;
  padding: 0 20px;
  cursor: pointer;
  font-size: 1em;
}

button#search {
  font-weight: bold;
}

.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: linear-gradient(to bottom, #fcfcfc, #bbbbbb);
  border-radius: 5px;
  box-shadow: 0px 0px 2px #ccc;
}

.button:hover {
  background: #eee;
}

.button:active,
.button:focus {
  background: linear-gradient(to top, #fcfcfc, #bbbbbb);
}

.button:disabled {
  color: #848484 !important;
  text-shadow: 1px 1px 0px #eaeaea;
  background: #dcdcdc;
}

/* Mode toggle styles */
.mode {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.mode span {
  font-size: 100%;
  padding: 2px 8px;
  border-radius: 3px;
}

.on {
  color: #333;
  font-weight: bold;
  border: 2px solid #333;
}

.off {
  background: #808080;
  cursor: pointer;
}

.off a {
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

/* Canvas container */
.canvas-container {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 600px;
}

/* Canvas styles */
canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  background-color: #EEFFFF;
  border-color: #dcdcdc;
  touch-action: none;
}

/* Button row */
.button-row {
  margin-top: 10px;
  text-align: center;
}

/* Utility classes */
.gray {
  background-color: #f5f5f5;
}

.fixed {
  min-height: 375px;
}

/* Accordion styles */
.accordion {
  margin: 20px auto;
}

.accordion-section {
  margin-bottom: 2px;
}

.accordion-button {
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 100%;
  font-weight: bold;
  margin: 1px auto;
  padding: 10px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-content ul {
  list-style: none;
  padding: 0;
}

.accordion-content li {
  margin: 5px 0;
}

.accordion-content a {
  text-decoration: none;
  color: #007bff;
}

.accordion-content a:hover {
  text-decoration: underline;
}

.section-desc {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 0.5em 0;
  padding: 0;
  line-height: 1.5;
}

.sidebar-title {
  font-size: 1em;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.arrow {
  display: inline-block;
  transition: transform 0.4s;
}

/* SEO content styles */
.seo-content {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 15px;
  text-align: left;
  line-height: 1.8;
}

.seo-content h2 {
  font-size: 1.3em;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  margin: 30px 0 15px;
}

.seo-content h3 {
  font-size: 1.1em;
  margin: 20px 0 10px;
  color: #444;
}

.seo-content p {
  margin: 10px 0;
  color: #333;
}

.seo-content section {
  margin-bottom: 30px;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.ranking-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #ccc;
}

.ranking-list a {
  color: #0066cc;
  font-weight: bold;
}

.ranking-list a:hover {
  text-decoration: underline;
}

/* Mobile: full-width canvas */
@media (max-width: 600px) {
  .canvas-container {
    max-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
  }

  canvas {
    aspect-ratio: 4 / 3;
  }

  button {
    height: 60px;
    width: 45%;
    font-size: 1.1em;
  }
}
