body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; /* Updated background color */
    line-height: 1.6;
}

header {
    background-color: #b17457; /* Updated background color */
    color: white;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

main {
    background-color: #f5f5f5;
}

section {
    margin: 20px;
    padding: 20px;
    background-color: #faf7f0; /* Updated background color */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #b17457; /* Updated background color */
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

h1, h2 {
    font-family: 'Georgia', serif;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 2em;
    color: #4a4947; /* Updated text color */
}

h3 {
    font-family: 'Arial';
    font-size: 1.5em;
    color: #4a4947;
}

code2 {
    background-color: #DCDCDC;
    padding: 2px 4px;
    border-radius: 4px;
}

iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 80%;
    margin: 0 auto;
    margin-bottom: 20px;
    background: #faf7f0; /* Updated background color */
    border: 1px solid #d8d2c2; /* Updated border color */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

ul {
    padding-left: 20px;
    line-height: 1.8;
}

div.scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

.example {
    background-color: #4a4947; /* Updated background color */
    color: white;
    padding: 10px;
    margin: 10px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}
table, th, td {
    border: 1px solid black;
}
th, td {
    padding: 10px;
    text-align: center;
}
.rotate {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

pre {
  margin: 1em 0;
  padding: 1em;
  border-radius: 5px;
  background: #25292f;
  color: #fff;
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
}

.full-screen-image {
    width: 100vw;        /* 画面の幅に合わせる */
    height: 100vh;       /* 画面の高さに合わせる */
    object-fit: cover;   /* 画像が領域にフィットするように調整 */
    position: absolute;  /* スクロールに影響を受けないように配置 */
    top: 0;              /* 上端に配置 */
    left: 0;             /* 左端に配置 */
}

.responsive-image {
  max-width: 100%;
  height: auto;
  width: auto;
}
