/* ============================================
   Seize The Star - Dark Theme Stylesheet
   ============================================ */

/* ============================================
   1. リセット・基本設定
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    font-size: 62.5%
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #aab7db;
    letter-spacing: 1.2px;
    background-color: #000919;
}

*::selection {
    color: #3e3e3e;
    background: #ffff7a;
}

/* ============================================
   2. タイポグラフィ
   ============================================ */
p {
    line-height: 1.6;
    margin: 32px 0
}

h1 {
    font-size: 6rem;
    font-weight: 700
}

h2 {
    font-size: 3rem;
    margin-bottom: 3em;
}

h3 {
    position: relative;
    display: inline-block;
    font-size: 2.4rem;
    padding-bottom: 8px;
    margin-bottom: 20px
}

h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    border-bottom: 4px solid #262d40;
    width: 100%
}

h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    border-bottom: 4px solid rgba(38, 45, 64, 0.4);
    width: calc(79vw - 256px)
}

h4 {
    margin-bottom: 32px
}

h5 {
    margin-left: 30px;
    font-size: smaller;
    font-style: normal;
    color: #262d40;
    margin-top: 20px
}

ul,
dl {
    list-style: none
}

img {
    max-width: 100%
}

/* ============================================
   3. リンク
   ============================================ */
a {
    color: #00b1a8;
    text-decoration: none
}

a:link,
a:visited {
    color: #00b1a8;
    text-decoration: none
}

a:hover {
    color: #f1ff72;
    text-decoration: none
}

.hidelink2 {
    text-decoration: none;
    color: black;
    cursor: text;
}

.hidelink2:hover,
.hidelink2:focus,
.hidelink2:visited,
.hidelink2:active {
    text-decoration: none;
    color: inherit;
    background-color: transparent !important;
    outline: none;
}

/* ============================================
   4. ユーティリティ
   ============================================ */
.deco {
    background: linear-gradient(transparent 70%, rgb(255, 53, 238) 20%);
    width: 350px;
}

.button {
    color: #d2d9e1;
    padding: 8px 16px;
    margin-right: 20px;
    margin-left: 20px;
    margin-bottom: 100px;
    background-color: #262d40;
}

.button:hover {
    background-color: rgba(38, 45, 64, 0.4)
}

/* ============================================
   5. レイアウト
   ============================================ */
.wrapper {
    display: flex
}

/* 左側 */
.left {
    position: relative;
    width: 46.63vh;
    height: 100vh;
    background-color: #000919;
    overflow-y: hidden
}

.left header::before {
    content: '';
    display: block;
    width: 100%;
    height: 100vh;
    background-image: url("../img/titleback.png");
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}

.left header h1 {
    position: absolute;
    top: 0;
    left: 0;
    color: #eeff8a;
    opacity: 0.8;
    text-shadow: 2px 2px 4px rgba(51, 54, 78, 0.6);
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -o-writing-mode: vertical-rl;
    writing-mode: vertical-rl
}

.left nav {
    width: 100%;
    height: 50vh
}

.left nav ul.globalNav {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    bottom: 64px
}

.left nav ul.globalNav li {
    text-align: right
}

.left nav ul.globalNav li a {
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: 2rem;
    color: #262d40;
    text-shadow: 0 0 2px #ffffff, 0 0 2px #ffffff, 0 0 2px #ffffff, 0 0 2px #ffffff, 0 0 2px #ffffff;
    padding: 8px 0;
    margin: 8px 0;
    overflow: hidden
}

.left nav ul.globalNav li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    border-bottom: 4px solid #6efef7;
    width: 100%;
    transform: translateX(-120%);
    transition: 0.3s;
}

.left nav ul.globalNav li a:hover::after {
    transform: none;
    transition: 0.3s
}

.left small {
    position: absolute;
    right: 0;
    bottom: 8px;
    color: #aab7db;
    font-size: 1.4rem;
    text-align: right
}

.left small a {
    transition: 0.3s
}

.left small a:hover {
    color: #d2d9e1;
    background-color: #262d40;
    text-shadow: none;
    transition: 0.3s
}

/* 右側 */
.right {
    width: 70vw;
    height: 100vh;
    padding: 64px;
    padding-top: 0;
    overflow-y: auto
}

.right a {
    transition: 0.3s
}

.right a:hover {
    transition: 0.3s;
    background-color: rgba(38, 45, 64, 0.2);
}

.right article {
    padding-top: 64px;
}

.right article section {
    margin: 64px;
    padding-bottom: 64px;
    overflow: hidden
}

.right article section h2 {
    margin-bottom: 32px
}

.right article section>h3 {
    margin-top: 32px
}

/* ============================================
   6. コンポーネント
   ============================================ */
/* 鍵かっこ */
.kagi {
    position: relative
}

.kagi::before,
.kagi::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 80px;
    border: 1px solid #262d40
}

.kagi::before {
    top: 140px;
    border-right: none;
    border-bottom: none
}

.kagi::after {
    right: 0;
    bottom: -64px;
    border-left: none;
    border-top: none;
    margin-bottom: 64px
}

/* SNS */
.sns {
    display: flex;
    margin-left: 30px;
    align-items: flex-end
}

.sns li {
    margin-right: 16px
}

.sns li i,
.sns li img {
    font-size: 3.2rem;
    transition: 0.3s
}

.sns li i:hover,
.sns li img:hover {
    transform: scale(1.2);
    transition: 0.3s
}

.sns li.twitter i {
    color: #080808;
    width: 50px;
}

.sns li.facebook i {
    color: #315096
}

.sns li.instagram i {
    color: #e1306c
}

.sns li.mastodon i {
    color: #8523a8;
    font-size: larger;
}

.sns li.pixiv img {
    width: 50px;
    height: auto
}

.sns li.clap img {
    width: 30px;
    margin-left: 15px
}

.sns li a {
    display: inline-block;
    background-color: transparent;
}

.sns li a:hover {
    background-color: transparent;
}

/* スマホ用メニュー */
.toTop {
    position: relative;
    display: none;
    z-index: 1000;
}

/* ============================================
   7. ページ固有スタイル
   ============================================ */
/* NEWS */
.right article section.news ul li {
    padding: 32px 0;
    border-bottom: 1px solid rgba(38, 45, 64, 0.4)
}

.right article section.news ul li:first-child {
    padding-top: 10px
}

.right article section.news ul li:last-child {
    border-bottom-width: 4px
}

.right article section.news ul li time {
    margin-right: 32px
}

/* ABOUT */
.right article.about dl {
    margin-top: 0
}

.right article.about p {
    margin: 10px 20px 10px 20px;
    font-size: 10.5pt;
    line-height: 3rem;
}

.right article.about .sns {
    display: flex;
    margin-left: 30px;
    align-items: flex-end
}

.right article.about .sns li {
    margin-right: 16px
}

.right article.about .sns li i,
.right article.about .sns li img {
    font-size: 3.2rem;
    transition: 0.3s
}

.right article.about .sns li i:hover,
.right article.about .sns li img:hover {
    transform: scale(1.2);
    transition: 0.3s
}

.right article.about .sns li.twitter i {
    color: #080808;
    width: 50px;
}

.right article.about .sns li.facebook i {
    color: #315096
}

.right article.about .sns li.instagram i {
    color: #e1306c
}

.right article.about .sns li.mastodon i {
    color: #8523a8;
    font-size: larger;
}

.right article.about .sns li.pixiv img {
    width: 50px;
    height: auto
}

.right article.about .sns li.clap img {
    width: 40px;
    margin: 15px
}

.right article.about ul,
.right article.about dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    margin: 32px 0
}

.right article.about dl dt,
.right article.about dl dd {
    padding: 8px 0
}

.right article.about dl dt {
    width: 20%;
    font-weight: 700
}

.right article.about ol {
    list-style-position: inside
}

.right article.about dl dd.p {
    line-height: 3em;
    font-size: 10.5pt;
    color: #262d40;
}

/* TEXT / COMIC LIST - 共通スタイル */
.right article section.textList ul,
.right article#comicList ul {
    margin-top: 16px;
    margin-left: 8px
}

.right article section.textList ul li,
.right article#comicList ul li {
    display: flex;
    align-items: center;
    margin-top: 10px
}

.right article section.textList ul li .title {
    display: inline-block;
    position: relative;
    padding: 12px 8px;
    margin: 8px;
    margin-right: 30px;
    margin-top: 20px;
    font-size: 10.5pt
}

.right article#comicList ul li .title {
    display: inline-block;
    position: relative;
    padding: 12px 8px;
    margin: 8px;
    margin-right: 30px;
    margin-top: 20px;
    font-size: 10.5pt
}

.right article section.textList ul li .title::before,
.right article section.textList ul li .title::after {
    content: '';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #9fa5a5
}

.right article#comicList ul li .title::before,
.right article#comicList ul li .title::after {
    content: '';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #262d40
}

.right article section.textList ul li .title::before,
.right article#comicList ul li .title::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none
}

.right article section.textList ul li .title::after,
.right article#comicList ul li .title::after {
    right: 0;
    bottom: 0;
    border-left: none;
    border-top: none;
}

.right article section.textList ul li a,
.right article#comicList ul li a {
    padding: 4px 8px
}

.right article section.textList ul li a:hover,
.right article#comicList ul li a:hover {
    background-color: rgba(38, 45, 64, 0.2);
    border: 0
}

.right article section.textList ul .story {
    font-size: small;
    color: #aab7db;
    text-align: right;
    margin-top: 20px;
    line-height: 2em;
}

.right article#comicList ul .story {
    font-size: small;
    color: #262d40;
    text-align: right;
    margin-top: 20px;
}

.right article section.textList ul .textdate {
    font-size: 8pt;
    color: #aab7db;
    float: right;
    text-align: right
}

.right article#comicList ul .textdate {
    font-size: 8pt;
    color: #9fa5a5;
    float: right;
    text-align: right
}

/* TEXT 個別ページ */
.right article#textIndivi {
    padding: 64px 64px 0 64px;
    line-height: 2em;
}

.right article#textIndivi section {
    padding: 50px 10px 10px 10px;
    margin: 0 0 64px;
    font-size: medium;
}

.right article#textIndivi section p {
    line-height: 2em;
    text-align: justify
}

.right article#textIndivi .button {
    float: right;
}

/* 縦書き・横スクロールエリア */
.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    border: 1px none;
    outline: none;
    box-sizing: border-box;
    margin: 2rem 0;
}

.novel-content {
    writing-mode: vertical-rl;
    font-family: 'Noto Serif JP', serif;
    font-feature-settings: "palt";
    display: block;
    white-space: normal;
    padding: 1rem;
    min-height: 60vh;
    min-width: 200vw;
    line-height: 2.5;
    font-size: 10.5pt;
    letter-spacing: 0.1em;
}

.novel-content p {
    margin-left: 1.5rem;
    font-size: 10.5pt;
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.novel-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    writing-mode: vertical-rl;
}

.tcyoko {
    text-combine-upright: all;
    -webkit-text-combine: horizontal;
    font-size: 0.8em;
}

.novel-footer {
    display: flex;
    gap: 1rem;
    font-size: 1.4rem;
}

.back-button,
.like-button {
    background: #f0f0f0;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

/* GALLERY */
.right article section.galleryList ul {
    display: flex;
    flex-wrap: wrap
}

.right article section.galleryList ul li {
    width: calc((100% - 20px)/5);
    height: 80px;
    margin: 0 5px 5px 0;
    overflow: hidden
}

.right article section.galleryList ul li:nth-child(5n) {
    margin-right: 0
}

.right article section.galleryList ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: 0.3s
}

.right article section.galleryList ul li img:hover {
    transform: scale(1.1);
    transition: 0.3s
}

/* GALLERY リスト表示（タイトル付き） */
.right article section.galleryList ul li .title {
    display: inline-block;
    position: relative;
    padding: 12px 8px;
    margin: 8px;
    margin-right: 30px;
    margin-top: 20px;
    font-size: small
}

.right article section.galleryList ul li .title::before,
.right article section.galleryList ul li .title::after {
    content: '';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #262d40
}

.right article section.galleryList ul li .title::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none
}

.right article section.galleryList ul li .title::after {
    right: 0;
    bottom: 0;
    border-left: none;
    border-top: none;
}

.right article section.galleryList ul li a {
    padding: 4px 8px
}

.right article section.galleryList ul li a:hover {
    background-color: rgba(38, 45, 64, 0.2);
    border: 0
}

.right article section.galleryList ul .story {
    font-size: small;
    color: #262d40;
    text-align: right;
    margin-top: 20px;
}

.right article section.galleryList ul .textdate {
    font-size: 8pt;
    color: #9fa5a5;
    float: right;
    text-align: right
}

#gallery button.newiine_btn {
    float: right;
    margin-right: 50px;
    margin-bottom: 50px;
}

/* GALLERY 個別ページ */
.right article#galleryIndivi {
    padding: 64px 64px 0 64px
}

.right article#galleryIndivi section {
    padding: 0;
    margin: 0 0 30px;
    color: #262d40;
}

.right article#galleryIndivi p {
    color: #262d40;
    font-size: smaller
}

.right article#galleryIndivi section img {
    margin-bottom: 30px
}

.right article#galleryIndivi section .wrapper {
    justify-content: space-between
}

/* LINK */
.right article section.link p {
    text-align: center;
    margin-bottom: 8px
}

#sites {
    flex: right;
    font-size: 10pt;
    position: absolute;
    left: 40%;
}

.right article.link dl {
    width: 100%;
    margin: 0;
    padding: 0;
}

.right article.link dt {
    display: block;
    width: 50%;
    clear: left;
    float: left;
}

.right article.link dd {
    display: block;
    width: 80%;
    float: left;
}

.banner {
    display: flex;
    flex-wrap: wrap;
}

.banner li {
    width: calc(100%/3);
    padding: 0 5px;
    box-sizing: border-box;
}

.banner li img {
    max-width: 100%;
    height: auto;
    border: solid 1px #ccc;
}

/* メールフォーム */
#formWrap {
    width: 700px;
    margin: 0 auto;
    color: #555;
    line-height: 120%;
    font-size: 90%;
}

table.formTable {
    width: 98%;
    margin: 0 auto;
    border-collapse: collapse;
}

table.formTable td,
table.formTable th {
    border: 1px solid #ccc;
    padding: 10px;
}

table.formTable th {
    width: 30%;
    font-weight: normal;
    background: #efefef;
    text-align: left;
}

#tegalog_umekomi {
    line-height: 2em;
    font-size: 11pt;
    width: 85%;
    padding: 2;
    align-items: center;
}

/* ============================================
   8. メディアクエリ
   ブレークポイント: 959px (タブレット/スマホ), 572px (小さいスマホ)
   ============================================ */
@media screen and (max-width: 959px) {
    h2 {
        line-height: 2em;
        margin-bottom: 1em
    }

    h3::after {
        width: 100vw
    }

    .wrapper {
        display: block
    }

    .left {
        width: 100%;
        height: auto;
        min-height: 100vh
    }

    .left header::before {
        position: absolute;
        bottom: 10vh;
        left: 0;
        height: 120vh
    }

    .right {
        width: 100%;
        padding: 8px
    }

    .right article section {
        margin: 8px
    }

    .right article section.news ul li time {
        display: block;
        margin-bottom: 8px;
    }

    .right article section.textList ul li,
    .right article#comicList ul li {
        display: block;
    }

    .right article section.textList ul li span,
    .right article#comicList ul li span {
        display: inline-block;
        margin: 8px;
    }

    .right article section.galleryList ul li {
        display: block;
    }

    .right article section.galleryList ul li span {
        display: inline-block;
        margin: 8px;
    }

    .right article#textIndivi {
        padding: 0;
        margin-bottom: 64px
    }

    .right article#galleryIndivi {
        padding: 0;
        margin-bottom: 64px
    }

    .toTop {
        display: flex;
        position: fixed;
        right: 0;
        bottom: 0;
        width: 100%;
        background-color: #262d40;
        font-size: 2rem;
        color: #fff;
        padding: 8px;
        justify-content: flex-end;
        align-items: center
    }

    .toTop a {
        position: absolute;
        display: block;
        width: 100%;
        height: 100%
    }

    .toTop i {
        font-size: 4rem;
        margin-left: 8px
    }

    #sites {
        position: relative;
        display: block;
        text-align: left;
        color: #262d40;
        font-size: 11pt;
        margin-top: 20px;
        margin-left: 30px;
        margin-right: 30px;
        left: 0;
    }
}

@media screen and (max-width: 572px) {
    #formWrap {
        width: 95%;
        margin: 0 auto;
    }

    #tegalog_umekomi {
        line-height: 2em;
        font-size: 11pt;
        width: 90%;
        margin-left: 5%
    }

    table.formTable th,
    table.formTable td {
        width: auto;
        display: block;
        align-items: center;
    }

    table.formTable th {
        margin-top: 5px;
        border-bottom: 0;
        align-items: center;
    }

    form input[type="text"],
    form textarea {
        width: 80%;
        padding: 5px;
        font-size: 110%;
        display: block;
    }

    form input[type="submit"],
    form input[type="reset"],
    form input[type="button"] {
        display: block;
        width: 100%;
        height: 40px;
    }
}
