@charset "utf-8";

body{
    margin: 0;
    background-color: rgb(18, 18, 18);
    font-family: serif;
}

.side-bar {
    position: fixed; /* 画面に固定 */
    top: 0;          /* 画面の上端 */
    left: 0;         /* 画面の左端 */
    width: 250px;    /* サイドバーの幅を設定 */
    height: 100%;    /* 画面の高さ全体 */
    background-color: rgb(43, 43, 43); /* 背景色をメニューと同じに */
    z-index: 1000;   /* 他の要素より手前に表示 */
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* メニューが多い場合にスクロールできるように */
}

ul{
    display: block;
    position: static;
    top: auto;
    width: auto;
    z-index: auto;
    
    border-left: none;
    border-right: none;
    border-top: 1px solid #444;

    padding-left: 0;
}

li{
    
    border-bottom: 1px solid #444;
    background-color: rgb(43, 43, 43);
    list-style: none;
    
}

button{
    width: 100%;
    padding: 20px;
    margin: auto;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    position: relative;
    text-align: left;
}

button:hover{
    color: red;
    transition: 0.5s ;
}

button::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: rgb(215, 2, 2);
    transition: 0.3s;
}

button:hover::after{
    width: 100%;
}
*/
#e{
    margin-top: 120px;
}

/*映画一覧*/
h2{
    color: white;
    margin-left: 50px;
    scroll-margin-top: 130px;
    margin-left: calc(250px + 50px);
}

p{
    color: white;
    padding: 30px 0 30px 0;
    position: relative;
    text-align: center;
    margin-bottom: 50px;
    margin-left: 250px
}

a{
    text-decoration: none;
}

p a{
    color: white;
}

p a:hover{
    color: rgb(25, 139, 44);
    transition: 0.6s;
    text-decoration: none;
}

p::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    margin: auto;
    height: 2px;
    background-color: rgb(192, 156, 156);
}

p::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 80%;
    margin: auto;
    height: 2px;
    background-color: rgb(192, 156, 156);
}

p:hover::after{
    color: rgb(25, 139, 44);
    background-color:  rgb(149, 24, 24);
    transition: 0.5s;
    
}

p:hover::before{
    color: rgb(25, 139, 44);
    background-color:  rgb(203, 30, 30);
    transition: 0.5s;
}

a{
    text-decoration: none;
}

#movie{
    text-align: center;
    margin-left: 250px;
}

#movie a{
    text-decoration: none;
    color: white;
    position: relative;
    font-size: 30px;
    margin: auto;
    
}

#movie a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: rgb(215, 2, 2);
    transition: 0.3s;
    
}

#movie a:hover{
    
    text-shadow: 10px 10px 4px rgb(255, 203, 203);
    color: rgb(225, 11, 11);
    transition: 0.5s;
}

#movie a:hover::after{
    width: 100%;
    
}

#tyg{
    color: white;
    margin-left: 250px;
    padding: 20px;
}

/*movie_list*/

table{
    color: white;
    border: solid blue 1px;
    margin-left: 40%;
    
}

th{
    border: blue 1px solid;
    
}

td{
    border-bottom: blue 1px solid;
    padding: 10px;
}

#mname:hover{
    font-size: 25px;
    transition: 0.5s;
    text-shadow: 5px 7px 4px rgb(225, 159, 159);
}

tr:hover{
    box-shadow: 0 0 15px red;
}

/*form*/
#contact-form {
    /* サイドバーの幅（250px）を考慮して、左側に余白を設ける */
    margin-left: 250px; 
    /* ページの左右に余白を設定し、メインエリアを狭める */
    padding: 20px;
    
    /* フォーム全体の最大幅を設定して、画面が広すぎても不格好にならないようにする */
    max-width: 600px; 
    /* フォームコンテナ自体を中央寄せにする (margin-left: 250pxが設定されているため、これは効きません) */
    /* 代わりに、max-widthとmargin-right: auto; を組み合わせて中央に寄せます */
    margin-right: auto;
    
    background-color: rgb(43, 43, 43); /* 背景色を設定 */
    color: white; /* テキスト色を白に */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
}

/* フォームの各要素に対するスタイル */
#contact-form label,
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea,
#contact-form button {
    display: block; /* 各要素をブロックレベルにして縦に並べる */
    width: 100%; /* 親要素 (#contact-form) の幅いっぱいに広げる */
    box-sizing: border-box; /* paddingとborderをwidthに含める */
    margin-bottom: 10px;
}

/* フォームの入力欄のスタイル */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    padding: 10px;
    border: 1px solid #666;
    background-color: rgb(29, 29, 29);
    color: white;
    border-radius: 4px;
}

/* フォームのボタンのスタイル（既存のbuttonスタイルとは分離） */
#contact-form button {
    width: auto; /* ボタンはコンテンツの幅に合わせる */
    display: inline-block; /* ボタンを横に並べる */
    padding: 10px 20px;
    margin-right: 15px; /* ボタン間のスペース */
    cursor: pointer;
    background-color: rgb(215, 2, 2);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

#contact-form button:hover {
    background-color: rgb(170, 0, 0);
    transition: 0.3s;
}

/* フォーム内のh2（タイトル）のスタイル */
#contact-form h2 {
    /* 既存のh2スタイルを上書きして、フォームコンテナ内で左寄せに戻す */
    margin-left: 0; 
    text-align: center;
    margin-bottom: 20px;
}

/* エラーメッセージと成功メッセージのスタイル */
#error-message,
#success-message {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}


/*chara_list*/