/* --- レイアウト・共通 --- */
.main-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 12px;
}

main {
  padding: 60px 0;
  flex: 1;
}

/* --- タイトル --- */
main>h1,
.main-container>h1 {
  font-size: 1.5em;
  margin-bottom: 1em;
  text-align: center;
}

/* --- フォーム --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1.2em;
}

.form-row {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.form-row label {
  min-width: 110px;
  font-weight: bold;
  text-align: right;
  font-family: 'Source Han Code JP', 'Noto Sans Mono', 'Migu 1M', monospace;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.form-row select {
  width: 100%;
  min-width: 340px;
  max-width: 100%;
  font-size: 1em;
  padding: 8px 12px;
  box-sizing: border-box;
}

.form-row input[type="text"] {
  width: 200px;
  max-width: 320px;
  font-size: 1em;
  padding: 8px 12px;
  box-sizing: border-box;
}

.form-group button {
  width: auto;
  min-width: 60px;
  margin-left: 0;
  margin-top: 0.7em;
  align-self: flex-end;
}

.form-note {
  width: 100%;
  text-align: center;
  line-height: 1.4;
  margin: 0.5em 0 1em 0;
  display: block;
}

.form-note p {
  margin: 0.4em 0;
}

/* --- 出力・記事風ボックス --- */
.article-item {
  border: 2px solid #00ff88;
  border-radius: 8px;
  padding: 24px;
  background-color: #1e1e1e;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2em;
  color: #eeeeee;
}

.article-item.console-style {
  border: none;
  border-left: 4px solid #00ff88;
  box-shadow: 0 2px 6px rgba(0, 255, 0, 0.05);
  padding: 24px;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #eeeeee;
  transition: box-shadow 0.3s ease;
}

.article-item.console-style:hover {
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.10);
}

/* ニュース見出し等も使い回し可能 */
.article-title {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.article-excerpt {
  margin-bottom: 15px;
}

/* --- 結果・エラー --- */
#result,
.console-typing {
  background-color: transparent;
  color: inherit;
  padding: 0;
  white-space: pre-wrap;
  margin-top: 20px;
  border: none;
  font-family: 'Source Han Code JP', 'Noto Sans Mono', 'Migu 1M', monospace;
  font-size: 1.05em;
}

#error-message,
.console-error {
  color: #ff6666;
  font-size: 1.1em;
  font-family: 'Source Han Code JP', 'Noto Sans Mono', 'Migu 1M', monospace;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: 0.1em;
}

#error-message .icon,
.console-error .icon {
  color: #ff3c20;
  font-size: 1.3em;
  vertical-align: middle;
  margin-right: 0.4em;
}

/* --- Tipsリスト --- */
.tips-list {
  margin: 1.5em auto 2em auto;
  padding-left: 24px;
  font-size: 1em;
  color: #ccc;
  list-style: disc;
  max-width: 780px;
  text-align: left;
  display: block;
}

/* --- モーダル --- */
#steamidModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#steamidModal .modal-content {
  background-color: #000;
  color: #fff;
  padding: 30px;
  border-radius: 16px; /* ←少し丸みを強調しても◎ */
  max-width: 400px;
  width: 90%;
  text-align: center;
  font-family: 'Source Han Code JP', 'Noto Sans Mono', 'Migu 1M', monospace;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.65), 0 1.5px 3px 0 rgba(0,0,0,0.18);
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
  .main-container {
    max-width: 99vw;
    padding: 0 2vw;
  }

  .form-group {
    gap: 10px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .form-row label {
    text-align: left;
    min-width: unset;
  }

  .form-row select,
  .form-row input[type="text"],
  .form-group button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* --- 共通・小物 --- */
label {
  font-weight: bold;
  display: flex;
  align-items: center;
}

#tweetBtn {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px; /* 丸みを最大に */
  padding: 0.4em 1em;
  font-size: 1em;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4em; /* アイコンと文字の間隔を少し広く */
  cursor: pointer;
  line-height: 1;
  box-shadow: none !important;
  transition: background 0.15s;
  margin-left: auto;
}

#tweetBtn:hover {
  background: #222 !important;
}

#tweetBtn svg {
  width: 0.95em;
  height: 0.95em;
  min-width: 0.95em;
  min-height: 0.95em;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}
.tweet-label {
  top: 0.16em;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1em;
  padding: 0;
}

.explain-mobile {
  display: none;
  color: #fff;
  font-size: 0.85em;
  margin-top: 0.7em;
  line-height: 1.6;
}

/* 画面幅が768px以下（スマホ）で表示 */
@media (max-width: 768px) {
  .explain-mobile {
    display: block;
  }
}