/* ページ全体 */
.page-header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px)    {
    .page-header {
        margin-bottom: 0px;
    }
}

.header-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .header-image {
        height: 200px;
    }
}   

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-image h1 {
    position: absolute;
    top: 10%;
    left: 28%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.4rem;
    font-weight: bold;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #92bb44;
    width: 400px; /* 線の横幅を指定 */
    text-align: left; /* テキストを中央揃え */
    padding: 0 50px 0;
}

@media (max-width: 768px) {
    .header-image h1 {
        font-size: 24px;
        width: 150px;
        left: 30%;
        top: 20%;
        padding-left: 10px;
    }
}

/* メインコンテンツ */
.book-content {
    padding: 20px 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
}

h2 {
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid 92bb44;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #92bb44;
}

.book-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.book-description {
    flex: 1;
}

.book-description h3 {
    color: #92bb44;
    font-size: 20px;
    margin-bottom: 10px;
}

.book-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.book-description a {
    color: black;
}

.book-description a:hover {
    text-decoration: underline;
}

.book-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.book-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .book-details {
        flex-direction: column;
        align-items: center;
    }

    .book-description {
        text-align: left;
    }

    .book-image {
        margin-top: 20px;
    }
}
