@charset "utf-8";

@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;
}

#dots .active {
    background: yellow;
    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: blueviolet;
    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;
}

#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;
}

#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;
}

    :root {
      --bg: #0f172a;
      --card: #111827;
      --accent: #38bdf8;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --ok: #22c55e;
      --warn: #f59e0b;
    }
    body {
      margin: 0;
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
      background: linear-gradient(180deg, #0b1220 0%, var(--bg) 100%);
      color: var(--text);
      line-height: 1.7;
    }
    header {
      padding: 48px 20px 24px;
      text-align: center;
      background:
        radial-gradient(1200px 300px at 50% -50%, rgba(56,189,248,.35), transparent 60%),
        radial-gradient(800px 200px at 90% -40%, rgba(34,197,94,.25), transparent 60%);
      border-bottom: 1px solid #1f2937;
    }
    header h1 {
      font-size: clamp(1.6rem, 2.8vw, 2.4rem);
      margin: 0 0 8px;
      letter-spacing: .02em;
    }
    header p {
      margin: 0;
      color: var(--muted);
      font-size: .98rem;
    }
    main {
      max-width: 1000px;
      margin: 24px auto 80px;
      padding: 0 20px;
    }
    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    @media (min-width: 900px) {
      .grid { grid-template-columns: 1fr 1fr; }
    }
    section.card, .card {
      background: linear-gradient(180deg, #0f172a 0%, var(--card) 100%);
      border: 1px solid #1f2937;
      border-radius: 14px;
      padding: 20px;
      box-shadow: 0 8px 24px rgba(0,0,0,.35);
    }
    .card h2, .card h3 {
      margin-top: 0;
      color: var(--accent);
    }
    .list {
      margin: 0;
      padding-left: 1.1em;
    }
    .list li {
      margin-bottom: .6em;
    }
    .pill {
      display: inline-block;
      padding: .2em .6em;
      border: 1px solid #334155;
      border-radius: 999px;
      color: var(--muted);
      font-size: .85rem;
      margin-right: .4em;
    }
    .kicker {
      color: var(--muted);
      font-weight: 600;
      font-size: .9rem;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .cite {
      font-size: .9rem;
      color: var(--muted);
    }
    .proscons {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    @media (min-width: 700px) {
      .proscons { grid-template-columns: 1fr 1fr; }
    }
    .pros li::marker { color: var(--ok); }
    .cons li::marker { color: var(--warn); }
    footer {
      color: var(--muted);
      border-top: 1px solid #1f2937;
      padding: 24px 20px 60px;
    }
    a { color: #93c5fd; text-decoration: none; }
    a:hover { text-decoration: underline; }
    .small { font-size: .92rem; }
    .badge {
      font-size: .78rem;
      background: #0b1220;
      border: 1px solid #1f2937;
      border-radius: 6px;
      padding: .2em .5em;
      margin-left: .4em;
      color: var(--muted);
    }
    .hero {
      display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 0;
    }
    .hero .pill { border-color: #2a3b55; }
    .meta { margin-top: 8px; }

    