body {
  margin: 0;
  padding: 0;
  background: #f3f6fb;
  color: #222;
  font-family: "MS PGothic", "MS UI Gothic", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: #0033cc;
  text-decoration: underline;
}

a:hover {
  color: #cc0000;
}

#wrapper {
  width: 920px;
  margin: 18px auto;
  background: #ffffff;
  border: 1px solid #9db7d5;
}

#header {
  background: linear-gradient(#dfefff, #bdd8f6);
  border-bottom: 1px solid #9db7d5;
  padding: 18px 22px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 72px;
  height: 72px;
  display: block;
  image-rendering: auto;
  flex: 0 0 auto;
}

.header-text {
  min-width: 0;
}

.box img {
  max-width: 100%;
  height: auto;
  display: block;
}

#header h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
  color: #154a8b;
}

#header p {
  margin: 0;
  color: #345;
}

#menu {
  background: #eaf3ff;
  border-bottom: 1px solid #b7cfe8;
  padding: 10px 14px;
}

#menu a {
  display: inline-block;
  margin: 0 10px 6px 0;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #9db7d5;
  text-decoration: none;
  color: #0033cc;
}

#menu a:hover {
  background: #fff7cc;
  color: #cc0000;
}

#content {
  padding: 22px;
}

h2 {
  margin: 0 0 14px 0;
  padding: 6px 10px;
  font-size: 20px;
  color: #154a8b;
  background: #eef6ff;
  border-left: 6px solid #6aa1d8;
}

h3 {
  margin: 22px 0 10px 0;
  font-size: 16px;
  color: #154a8b;
  border-bottom: 1px dotted #9db7d5;
}

.box {
  margin: 0 0 18px 0;
  padding: 14px;
  background: #fcfdff;
  border: 1px solid #c9dced;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.info-table th,
.info-table td {
  border: 1px solid #c9dced;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 190px;
  background: #eef6ff;
}

.news {
  margin: 0;
  padding-left: 20px;
}

.notice {
  padding: 10px 12px;
  background: #fff9d9;
  border: 1px solid #e1cf71;
}

/* download.html の注意枠内スクリーンショット専用（index.html の main-image には影響させない） */
.notice .main-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.notice-soft {
  padding: 10px 12px;
  background: #eef7ff;
  border: 1px solid #b7cfe8;
}

.donation {
  padding: 12px 14px;
  background: #fff7e8;
  border: 1px solid #e2c48f;
}

.footer {
  padding: 14px 22px 24px 22px;
  border-top: 1px solid #b7cfe8;
  background: #f7fbff;
  color: #555;
  font-size: 12px;
}

.small {
  font-size: 12px;
  color: #555;
}

ul {
  margin-top: 8px;
}

code {
  background: #f1f4f8;
  padding: 1px 4px;
}

.kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid #aab8c8;
  background: #f9fbfd;
  color: #234;
  font-family: Consolas, monospace;
  font-size: 12px;
  text-decoration: none;
}

.twocol {
  width: 100%;
}

.twocol td {
  vertical-align: top;
  width: 50%;
}

pre {
  margin: 10px 0;
  padding: 12px;
  background: #f7faff;
  border: 1px solid #c9dced;
  overflow-x: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.note-table th {
  width: 150px;
}

/* ---------- 追加: script.html 用の安全なレスポンシブ調整 ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.script-page #content {
  overflow-x: hidden;
}

.script-page .info-table th,
.script-page .info-table td {
  word-break: break-word;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.script-page .note-table {
  table-layout: fixed;
}

.script-page .note-table th {
  width: 140px;
}

.script-page .note-table td {
  white-space: normal;
}

.script-page .api-table {
  table-layout: fixed;
  min-width: 760px;
}

.script-page .api-table th {
  width: 210px;
}

.script-page .api-table td:nth-child(2) {
  width: 90px;
  white-space: nowrap;
}

.script-page .api-table td:nth-child(3) {
  white-space: normal;
}

.script-page .info-table code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.script-page pre {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  #wrapper {
    width: auto;
    margin: 10px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-logo {
    width: 56px;
    height: 56px;
  }

  #header h1 {
    font-size: 22px;
  }

  .script-page #content {
    padding: 14px;
  }

  .script-page .note-table th {
    width: 110px;
  }

  .script-page .api-table {
    min-width: 720px;
  }
}
