@charset "utf-8";

a:visited{
    color: #00eaff;
}

a{
    color: #00bfff;
}

body {
    font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
    background-color: #3b3b3b;
    color: #eee;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

#header {
    text-align: center;
    padding: 20px 0;
    background-color: #000;
}

#header img {
    max-width: 300px;
    height: auto;
}

#content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #464646;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1, h2 {
    color: #ff4500;
    border-bottom: 2px solid #ff4500;
    padding-bottom: 5px;
    margin-top: 30px;
}

ul {
    padding-left: 20px;
}

#footer {
    text-align: center;
    padding: 10px 0;
    background-color: #000;
    margin-top: 20px;
}

.back-to-top {
    display: block;
    width: 150px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    background-color: #ff4500;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.back-to-top:hover {
    background-color: #cc3700;
}

.book {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}


.selector-title {
    position: relative;
    width: 240px;      
    height: 340px;
    overflow: hidden;
}

.selector-title .slide {
    display: none;
    position: absolute;
    inset: 0;
}


.selector-title .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    flex: 1;
}

.slider-controls {
    text-align: center;
    margin-bottom: 10px;
}

.slider-controls button {
    padding: 5px 12px;
    margin: 0 5px;
    cursor: pointer;
}

.title-syoukai p {
    margin: 0;
}

#nyuuryoku {
    margin-top: 30px;
}

#nyuuryoku .form-item {
    margin-bottom: 15px;
}

#nyuuryoku label {
    display: block;
    margin-bottom: 5px;
}

#nyuuryoku input,
#nyuuryoku textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

#nyuuryoku .form-buttons {
    margin-top: 15px;
    text-align: center;
}

#nyuuryoku button {
    padding: 6px 15px;
    margin: 0 5px;
    cursor: pointer;
}

.error {
    color: #ff8080;
    font-size: 0.9em;
}

#ryuuha-syoukai .blocks {
    display: grid;
    grid-template-columns: 240px 500px; /* 左：画像 / 右：概要 */
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 20px;
}

#ryuuha-syoukai .blocks {
    display: grid;
    grid-template-columns: 240px 500px; /* 左：画像 / 右：概要 */
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 20px;
}

#ryuuha-syoukai .marks {
    width: 240px;
    height: 320px;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

#ryuuha-syoukai .marks img {
    width: 240px;
    height: 320px;
    object-fit: contain; 
    display: block;
}

#ryuuha-syoukai .gaiyou {
    width: 500px;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

#ryuuha-syoukai .setumei {
    width: 760px; 
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

#hanba {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 70px;        
    height: 70px;      
    background: #d9ff00;
    color: #fff;
    border-radius: 50%;
    font-size: 45px;    
    cursor: pointer;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
/* 開いた時の × ボタンも綺麗に */
#hanba.open {
    background-color: #ddff00;  
}
 
/* ▼ スライドメニュー */
#menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    padding: 60px 25px;
    box-sizing: border-box;
    transition: right 0.4s ease;
    z-index: 1000;
}
 
/* 開いたとき */
#menu.open {
    right: 0;
}
 
#menu h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
 
#menu ul {
    list-style: none;
    padding: 0;
}
 
#menu li {
    margin: 20px 0;
}
 
#menu a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
}
 
#menu ul li a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
 
#menu ul li a:hover {
    transform: translateY(-5px);
    color: #fbff00;
}

#menu img {
    vertical-align: middle;
    margin-right: 8px;
    width: 64px;
    height: 64px;
}
 
#hanba {
    border: none !important;
    outline: none !important;
}
 
#hanba:focus {
    outline: none !important;
    border: none !important;
}
