/* 共通利用用 style.css */

/* 基本スタイル */
/* body {
  background-color: blanchedalmond;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-height: 100vh;
  font-family: 'Courier New', Courier, monospace;
  color: #333;
  padding: 20px; 
}*/

/* h1 {
  font-size: 3rem;
  color: indianred;
  font-family: "Berkshire Swash", cursive;
  text-align: center;
  margin-bottom: 20px;
} */

h1 {
  font-size: 1.4rem;
  color: #1164bd;
  font-family: "Berkshire Swash", cursive;
  text-align: center;
  margin-bottom: 20px;
}

/* ボタンスタイル */
#openBtn, #closeBtn {
  border: none;
  background-color: hsl(0, 0%, 20%);
  color: #fff;
  border-radius: 3px;
  width: 300px;
  height: 40px;
  font-size: 1rem;
  font-family: sans-serif;
  cursor: pointer;
}

#closeBtn {
  width: 80px;
  height: 30px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

#openBtn:hover, #openBtn:focus,
#closeBtn:hover, #closeBtn:focus {
  background-color: hsl(0, 56%, 30%);
}

/* ダイアログスタイル */
dialog {
  width: 80%;
  max-width: 800px;
  height: auto;
  padding: 20px;
  border-radius: 10px;
  font-family: sans-serif;
  color: #555;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 背景暗転 */
dialog::backdrop {
  background: rgba(0,0,0,0.4);
}

/* リストスタイル */
/* ul {
  list-style-type: none;
  padding: 0;
}
li {
  margin-bottom: 40px;
}

h4, p {
  margin: 0;
}
p {
  margin-top: 12px;
} */

/* コードボックススタイル */
.code-box-container {
  display: flex;
  gap: 20px; /* ボックス間の隙間 */
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap; /* 画面が狭いときは折り返す */
}

.code-box {
  background-color: #1e1e1e;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  width: 495px;
  height: auto;
  overflow: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 1100px) {
  .code-box {
    width: 100%; /* 狭い画面では1列表示 */
  }
}
