@charset "utf-8";

body {
    /* background-image: url("../images/"); */
    background: linear-gradient(to bottom, #f0f8ff, #e6f2ff);
    background-size: contain;
    line-height: 27px;
    text-align: center;
}

#slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#slider {
    display: flex;
    width: 400%;
    transition: margin-left 0.8s ease;
}

.slide {
    width: 100%;
    height: 400px;
    /* 表示領域の高さを固定 */
    display: flex;
    /* 中央寄せのためにflexを使う */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide img {
    max-width: 100%;
    /* 横幅は枠を超えない */
    max-height: 100%;
    /* 縦幅も枠を超えない */
    height: auto;
    width: auto;
    display: block;
}

#prev,
#next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    /* 半透明の背景 */
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}

#prev {
    left: 100px;
}

#next {
    right: 100px;
}

#dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

#dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s;
}

#dots .active {
    background: greenyellow;
    opacity: 70%;
}

#char-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#char-slider {
    display: flex;
    width: 400%;
    transition: margin-left 0.8s;
}

.char {
    width: 100%;
    height: 550px;
    /* 表示領域の高さを固定 */
    display: flex;
    /* 中央寄せのためにflexを使う */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.char img {
    max-width: 80%;
    /* 横幅は枠を超えない */
    max-height: 80%;
    /* 縦幅も枠を超えない */
    height: auto;
    width: auto;
    display: block;
}

#char-prev,
#char-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    /* 半透明の背景 */
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}

#char-prev {
    left: 100px;
}

#char-next {
    right: 100px;
}

#char-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

#char-dots img.char-dot {
    width: 130px;
    /* 横幅だけ指定 */
    height: auto;
    /* 縦は自動で比率維持 */
    margin: 0 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

#char-dots img:hover {
    transform: scale(1.1);
    opacity: 1;
}

#char-dots img.active {
    opacity: 1;
    transform: scale(1.1);
    /* 選択中は少し大きく */
}

#char-descriptions .desc {
    display: none;
}

#char-descriptions .desc.active {
    display: block;
}

.desc {
    text-align: center;
}

/* #cont {
    color:black;
} */

/* ヘッダーを固定 */
#header {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 150px;
    /* サイドバーの幅 */
    background: green;
    opacity: 80%;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#header li {
    margin: 20px 0;
    text-align: center;
}

#header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 10px;
    transition: background 0.3s;
}

#header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

section {
    padding: 40px 200px 20px 20px;
    /* 右にサイドバー分の余白 */
    min-height: 100vh;
}

#links{
        padding: 40px 200px 20px 20px;
        min-height: 0vh;
}
#link{
    border-bottom: solid 1px;
    min-height: 50vh;
}

#post {
    max-width: 600px;
    /* フォームの幅を制限 */
    margin: 0 auto;
    /* 左右中央寄せ */
    padding: 20px;
    background: #fff;
    /* 背景色（任意） */
    border-radius: 8px;
    /* 角丸（任意） */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 影（任意） */
}

#post form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    /* 白背景でカード風 */
    border-radius: 12px;
    /* 角丸 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    /* ふんわり影 */
    font-family: "Segoe UI", sans-serif;
}

#post h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1f6feb;
}

.form {
    margin-bottom: 20px;
}

.form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.form input,
.form textarea {
    width: 95%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#check-btn {
    background: #3cb371;
    color: #333;
}

#check-btn:hover {
    background: #2d8956;
}

#submit-btn {
    background: #483d8b;
    color: #fff;
}

#submit-btn:hover {
    background: #4b0082;
}

h1 {
    border-top: solid 1px;
    padding: 20px 0px;
}

#h1form {
    border-top: none;
}