/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* 全体のスタイル */
  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative; /* 追加 */
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 120px); /* 120pxを追加 */
    box-sizing: border-box;
    height: auto;
    padding-bottom: 100px;
  }
  
  /* ヘッダーのスタイル */
  .header {
    text-align: center;
    margin-bottom: 40px;
    
  }
  
  .header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .header p {
    font-size: 18px;
  }
  
  /* 書籍情報のスタイル */
  .book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .book-img {
    margin-bottom: 20px;
  }
  
  .book-img img {
    width: auto;
    height: auto;
    object-fit: cover;
    
    border-radius: 5px;
  }
  
  .book-details {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .book-details h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .book-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  #affiliate-link {
    display: block;
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  /* ボタンのスタイル */
  #generate-button {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #f1592a;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #generate-button:hover {
    background-color: #e1471b;
  }
  
  @media(max-width:600px){
    .header h1{
      font-size: 1.5rem;
    }
    .header p{
      font-size: 0.85rem;
    }
    #title{
      font-size: 1.25rem;
    }
    #generate-button{
      font-size: 1rem;
      padding: 5px 10px;
    }

        
  }

  .history {
    margin-top: 50px;
  }
  
  .history h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .history ul {
    list-style: none;
    padding: 0;
  }
  
  .history li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f2f2f2;
    border-radius: 5px;
  }
  
  .history li span {
    font-size: 18px;
  }
  
  .history li a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
  }

footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0; /* 追加 */
width: 100%; /* 追加 */
}


p {
margin: 0;
text-align: center;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}

nav ul li {
margin: 0 20px;
}

nav ul li a {
color: #fff;
text-decoration: none;
font-size: 0.85rem;
}

nav ul li a:hover {
text-decoration: underline;
}
@media (max-width:600px){
  nav ul li a {

    font-size: 0.8rem;
    }
    nav ul li {
      margin: 0 5px;
      }
    footer p{
      font-size: 0.85rem;
    }
    footer{
      padding: 5px;
    }
      
}