:root {
    --light-bg: #ece6e3;
    --text-main: #333;
    --text-caution: #333;
    --accent-triangle: #5a98e0;
    --scroll-box-border: #333;

    /* グラデーション設定 */
    --grad-day-top: #fce4ec;
    --grad-day-bottom: #b2c2f2;
    --grad-night-top: #f8bbd0;
    --grad-night-bottom: #3d86b8;

    /* メニュー色 */
    --diamond-beige: #e6dcd6;
    --diamond-orange: #2d7bba;
    --diamond-black: #000;

    --diamond-size: 90px;
}

.i-0 {
    --i: 0;
}

.i-1 {
    --i: 1;
}

.i-2 {
    --i: 2;
}

.i-3 {
    --i: 3;
}

.i-4 {
    --i: 4;
}

.i-5 {
    --i: 5;
}

.i-6 {
    --i: 6;
}

.i-7 {
    --i: 7;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
    /* ヘッダー被り防止 */
}

html,
body {
    overflow-x: hidden;
    /* 横スクロール防止 */
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #5a98e0;
    font-weight: 700;
}

a:hover {
    color: #ffee58;
}

u {
    text-decoration: underline double #f06292;
}

.banner-border {
    border: 1px solid #000;
}

.laspo-container {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    /* 子要素（左パネル）の高さを強制的に揃える */
}

/* 左カラム */
.side-panel {
    flex: 0 0 250px;
    width: 250px;
    min-height: 100vh;
    /* 画面の高さ以上（コンテンツに合わせて伸びる） */
    position: relative;
    /* 固定を解除 */
    top: 0;
    transition: background 1s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 4:00 - 16:59 (薄い) */
body.daytime .side-panel {
    background: linear-gradient(to bottom, var(--grad-day-top), var(--grad-day-bottom));
    background-attachment: fixed;
    /* グラデーションを画面固定（印象維持・余白防止） */
}

/* 17:00 - 3:59 (濃い) */
body.nighttime .side-panel {
    background: linear-gradient(to bottom, var(--grad-night-top), var(--grad-night-bottom));
    background-attachment: fixed;
    /* グラデーションを画面固定（印象維持・余白防止） */
}

/* サイドパネルの左端枠 (グレー斜線) */
.side-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    background: repeating-linear-gradient(-45deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.05) 2px,
            transparent 2px,
            transparent 5px);
    z-index: 1;
    pointer-events: none;
}

/* 画面右端枠 (グレー斜線) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: repeating-linear-gradient(-45deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.05) 2px,
            transparent 2px,
            transparent 5px);
    z-index: 200;
    pointer-events: none;
}



@media (max-width: 768px) {

    body.daytime .side-panel,
    body.nighttime .side-panel {
        background-attachment: scroll;
        background-size: 100% 100%;
        width: 100vw !important;
    }
}

/* ダイヤモンドナビゲーション (PC) */
.diamond-nav {
    position: fixed;
    /* フローティングメニュー化 */
    top: 50px;
    left: 78px;
    /* 画面左端からの位置を固定 */
    width: 250px;
    z-index: 100;
    pointer-events: none;
}

.diamond-item {
    position: absolute;
    width: var(--diamond-size);
    height: var(--diamond-size);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: z-index 0.1s;
    pointer-events: auto;
}


.diamond-item.i-0 {
    top: 189px;
    left: -189px;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
}


/* メインメニュー */
.diamond-item:nth-child(2) {
    top: 0;
    left: 0;
    z-index: 10;
}

/* Contents */
.diamond-item:nth-child(3) {
    top: 63px;
    left: 63px;
    z-index: 11;
}

/* MEMO */
.diamond-item:nth-child(4) {
    top: 126px;
    left: 0;
    z-index: 12;
}

/* Gallery */
.diamond-item:nth-child(5) {
    top: 189px;
    left: 63px;
    z-index: 13;
}

/* Text */
.diamond-item:nth-child(6) {
    top: 252px;
    left: 0;
    z-index: 14;
}

/* Offline */
.diamond-item:nth-child(7) {
    top: 315px;
    left: 63px;
    z-index: 15;
}

/* ダミーダイヤ (非表示) */
.diamond-item.dummy {
    display: none;
}

.diamond-item.i-7 {
    top: 378px;
    left: 0;
    z-index: 9;
    opacity: 1;
    pointer-events: none;
    display: none;
    /* 明示的に非表示 */
}


.diamond-item.mobile-only-mail {
    display: none;
}

.diamond-item span {
    transform: rotate(-45deg);
    display: block;
    text-align: center;
    width: 100%;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    pointer-events: none;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.diamond-item.bg-beige {
    background-color: var(--diamond-beige);
}

.diamond-item.bg-beige span {
    color: #333;
}

/* Contents */
.diamond-item.contents-label span {
    color: #999;
}

.diamond-item.contents-label {
    cursor: default;
}

.diamond-item.bg-orange {
    background-color: var(--diamond-orange);
}

.diamond-item.bg-black {
    background-color: var(--diamond-black);
}

a.diamond-item:hover span {
    color: #ffee58;
    text-decoration: none;
}


/* メールアイコン用SVG */
.mail-icon-svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

/* 右カラム */
.main-content {
    flex: 1;
    padding: 60px 80px 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.header .logo {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.header .description {
    font-size: 14px;
    font-weight: 700;
}

.caution {
    margin-top: -10px;
}

.section-title-caution {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 5px;
    color: #f06292;
}

.caution-list {
    list-style: none;
    font-size: 12px;
    font-weight: 500;
    background-color: #f8f8f8;
    /* Light gray block */
    padding: 10px 15px;
    /* Padding for the block */
    border-radius: 4px;
    /* Optional slight rounding */
    width: fit-content;
}

.caution-list li {
    font-size: 12px;
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
}

.wavy-underline {
    text-decoration: underline wavy #000;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.section-heading {
    background-color: var(--light-bg);
    padding: 0 10px;
    padding-left: 30px;
    font-size: 24px;
    font-weight: 900;
    position: relative;
    color: #555;
    margin-bottom: 25px;
    margin-left: -40px;
    width: calc(100% + 40px);
    line-height: 30px;
    height: 30px;
    display: flex;
    align-items: center;
}

.section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid var(--accent-triangle);
    pointer-events: none;
}

.section-body {
    padding-left: 0;
    margin-left: -10px;
}

h2-a {
    display: block;
    background-size: 4px 4px;
    background-color: #f8f8f8;
    padding: 5px 15px;
    padding-left: 3px;
    font-size: 14px;
    font-weight: 900;
    margin-top: 0px;
    margin-bottom: 20px;
    margin-left: -40px;
    width: calc(100% + 40px);
    color: #333;
}

h3 {
    position: relative;
    border-bottom: 1px solid #ccc;
    padding: 0 15px;
    padding-left: 30px;
    font-size: 14px;
    font-weight: 900;
    margin-top: 40px;
    margin-bottom: 15px;
    margin-left: -40px;
    width: calc(100% + 25px);
    color: #000;
    clear: both;
    line-height: 24px;
    height: 24px;
    display: flex;
    align-items: center;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #000;
    pointer-events: none;
}

.update-info {
    font-size: 14px;
    margin-bottom: 15px;
}

/* メインコンテンツ内の基本フォントサイズ設定 */
.main-content {
    font-size: 14px;
    line-height: 1.6;
}

.main-content img {
    max-width: 50%;
    height: auto;
}

.link-list {
    list-style: none;
    margin-bottom: 4px;
}

.link-list li {
    margin-bottom: 6px;
}

.link-list-inline {
    list-style: none;
    margin-bottom: 15px;
}

.link-list-inline li {
    display: inline;
}

.link-list-inline li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: #333;
    font-weight: normal;
}

.accent-link {
    color: #5a98e0;
}

.accent-text {
    color: #5a98e0;
    font-weight: 700;
}

/* 発行物詳細 (Books/Offline) */
.books {
    display: flex;
    gap: 20px;
}

.books article {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    gap: 20px;
    width: calc(50% - 10px);
}

.books article:last-child {
    margin-bottom: 5;
}

.books .cover {
    max-width: 300px;
}

.books .cover img {
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    /* コンテナ幅に合わせる */
}

.detail h4 {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 3px solid #000;
    padding-bottom: 5px;
    margin-bottom: 8px;
    color: #000;
}

.detail .chara {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.detail .spec,
.detail .theme {
    margin-bottom: 5px;
    line-height: 1.4;
    font-size: 13px;
}

.spec .r18 {
    color: #d14d72;
    font-weight: 900;
}

.event-date {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: -10px;
}

.buttons a {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.buttons a:hover {
    opacity: 0.8;
}

.buttons a:first-child {
    background-color: #666;
    color: #fff;
}

.buttons a.booth {
    background-color: #5a98e0;
    color: #fff;
}

.buttons a.tora {
    background-color: #f7e545;
    color: #333;
}

/* スクロールボックス */
.scroll-box {
    width: 80%;
    max-width: 600px;
    height: 100px;
    border: 1px solid #333;
    padding: 20px;
    font-size: 13px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.scroll-title {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 15px;
    color: #000;
}

.scroll-content {
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.scroll-content::-webkit-scrollbar {
    width: 6px;
}

.scroll-content::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: #000;
}

.footer {
    margin-top: auto;
    text-align: right;
    padding-top: 40px;
}

.mailform-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.mailform-link:hover {
    color: #aaa;
}

/* メールフォームダイヤモンド */
.mailform-diamond {
    position: fixed;
    right: 80px;
    left: auto;
    top: 438px;
    width: 64px;
    height: 64px;
    background-color: #000;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    z-index: 201;
    transition: z-index 0.1s;
}

.mailform-diamond .diamond-shape {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mail-icon-svg-main {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    color: #fff;
}

.mailform-diamond .mail-text {
    font-size: 9px;
    font-weight: 700;
}

/* メールフォーム共通デザイン (スマホ版から継承) */
.mail-lead {
    margin-bottom: 10px;
    /* 20px -> 10px */
    line-height: 1.8;
}

.mailform textarea {
    margin: 0 0 8px;
    /* 15px -> 8px */
    font-size: 12px;
    border: 1px solid #000000;
    padding: 10px;
    width: 80%;
    vertical-align: bottom;
    background-color: #f8f8f8;
    line-height: 1.6;
}

.mailform .note {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    /* 25px -> 12px */
    line-height: 1.6;
}

.mailform input[type="submit"] {
    margin: 0 0 15px;
    /* 30px -> 15px */
    font-size: 12px;
    border: 1px solid #000000;
    padding: 6px 25px;
    border-radius: 30px;
    vertical-align: left;
    background-color: #f8f8f8;
    line-height: 1.6;
    background-position: 1px 1px, 1px 1px;
    background-size: 3px 3px;
    background-repeat: repeat;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mailform input[type="submit"]:hover {
    background-color: #999;
    color: #fff;
}

.wavebox {
    margin-top: 5px;
    /* 10px -> 5px */
    line-height: 1.8;
}


.mailform input[type=text] {
    margin: 0 0 5px;
    font-size: 12px;
    border: 1px solid #000000;
    padding: 6px 8px;
    width: 80%;
    vertical-align: bottom;
    background-color: #f8f8f8;
    line-height: 1.6;
    background-position: 1px 1px, 1px 1px;
    background-size: 3px 3px;
    background-repeat: repeat;
}

.mailform input:active,
.mailform input:focus,
.mailform input:hover,
.mailform textarea:active,
.mailform textarea:focus,
.mailform textarea:hover {
    outline: none;
    background: #ffffff;
    background-image: none;
}

/* レスポンシブ対応 - Mobile Adjustment V2 */
@media (max-width: 768px) {
    .laspo-container {
        flex-direction: column;
        overflow-x: hidden;
        padding-top: 0;
    }

    .side-panel {
        flex: 0 0 auto;
        width: 100% !important;
        /* 100vw -> 100% */
        max-width: none;
        height: 70px;
        min-height: 70px;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 0;
        z-index: 10;
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        background: inherit;
    }

    /* モバイルでは斜線枠を非表示 */
    .side-panel::before,
    body::after {
        display: none !important;
    }

    .diamond-nav {
        position: fixed;
        top: 0 !important;
        left: 0;
        width: 100%;
        height: 70px !important;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;
        z-index: 9999;
        pointer-events: none;
    }

    .diamond-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 48px;
        height: 48px;
        background-color: #000 !important;
        margin: 0 6px !important;
        z-index: 10;
        transition: none;
        pointer-events: auto;
        transform: rotate(45deg);
    }

    .diamond-item.dummy,
    .diamond-item.contents-label {
        display: none !important;
    }

    .diamond-item.mobile-only-mail {
        display: none;
    }

    .diamond-item.menu-mail {
        display: flex;
    }

    .diamond-item span {
        font-size: 10px;
        /* 7px -> 10px */
        color: #fff !important;
        text-shadow: none;
        transition: color 0.2s;
    }

    .diamond-item:hover span {
        color: #ffee58 !important;
    }

    .diamond-item.i-7 .mail-icon-svg {
        width: 18px;
        height: 18px;
    }

    .main-content {
        padding: 10px 20px 100px;
        margin-top: 0;
    }

    .header .logo {
        font-size: 44px;
        text-align: left;
        margin-top: 10px;
    }

    .header .description {
        text-align: left;
        font-size: 13px;
    }

    .mailform-diamond {
        width: 45px;
        height: 45px;
        right: 15px;
        top: auto;
        /* モバイルでは下部配置を維持 */
        bottom: 15px;
    }

    .mailform-diamond .mail-icon-svg-main {
        width: 18px;
        height: 18px;
    }

    .mailform-diamond .mail-text {
        font-size: 7px;
    }



    hr {
        height: 1px;
        background-color: #cccccc;
        width: 80%;
        border: none;
        margin: 40px auto;
    }

    h2.h2-a {
        padding: 10px 20px;
        background: #000000;
        color: #ffffff;
    }

    h2.h2-b {
        padding: 10px 20px;
        background: transparent;
        text-align: center;
    }

    h2.h2-b:before {
        content: '';
        height: 2px;
        width: 10%;
        display: inline-block;
        background: #000000;
        vertical-align: middle;
        margin-right: 30px;
    }

    h2.h2-b:after {
        content: '';
        height: 2px;
        width: 10%;
        display: inline-block;
        background: #000000;
        vertical-align: middle;
        margin-left: 30px;
    }

    .section-heading {
        margin-left: -20px;
        width: calc(100% + 20px);
    }

    h2.h2-a,
    h2-a {
        padding: 12px 15px;
        padding-left: 20px;
        background-color: #f8f8f8;
        color: #333;
        font-size: 18px;
        margin-left: -20px;
        width: calc(100% + 20px);
    }

    h3 {
        padding: 0 15px;
        padding-left: 24px;
        background: transparent;
        color: #000000;
        border-left: none;
        border-bottom: 1px solid #ccc;
        font-size: 16px;
        margin-left: -20px;
        width: calc(100% + 20px);
    }

    h3.h3-a {
        padding: 10px 20px;
        background: transparent;
        color: #000000;
        border-left: none;
        border-bottom: 3px dotted #000000;
    }

    h3.h3-b {
        border-left: none;
    }

    h3.h3-b:before {
        content: '//';
        font-size: 105%;
        margin-right: 1em;
    }

    h3.h3-b:after {
        content: '//';
        font-size: 105%;
        margin-left: 1em;
    }

    ul.li-a {
        list-style: square inside;
        margin: 1em 0.5em;
    }

    ul.li-a li {
        margin-bottom: 0.5em;
    }

    ul.li-b {
        list-style: disc inside;
        margin: 1em 0.5em;
    }

    ul.li-b li {
        margin-bottom: 0.5em;
    }

    ol.li-a {
        list-style: decimal inside;
        margin: 1em 0.5em;
    }

    ol.li-a li {
        margin-bottom: 0.5em;
    }

    ol.li-b {
        list-style: lower-alpha inside;
        margin: 1em 0.5em;
    }

    ol.li-b li {
        margin-bottom: 0.5em;
    }

    #text .atogaki p {
        color: #a1a1a1;
        font-size: 13px;
    }

    #text main h2 {
        margin: 20px auto 40px;
    }

    #text main p {
        line-height: 2em;
        font-size: 13px;
    }

    .comics {
        display: block;
        max-width: 100%;
        margin: 80px auto;
        border: 1px #333333 solid;
    }

    .comics.tame {
        margin-bottom: 800px;
    }

    .page {
        display: -webkit-box;
        display: flex;
        -webkit-box-pack: justify;
        justify-content: space-between;
        width: 90%;
        margin: 30px auto;
    }

    .page a {
        display: block;
        color: #333;
        padding: 3px 10px;
        background-color: #ffffff;
        margin: 0 0 5px;
        font-size: 12px;
        border: 1px solid #000000;
        padding: 6px 8px;
        /* 少し余白も広げると読みやすい */
        width: 80%;
        background-color: #f8f8f8;
        /* 薄いグレー */
        line-height: 1.6;
        /* ← 行間調整 */
        background-position: 1px 1px, 1px 1px;
        background-size: 3px 3px;
        background-repeat: repeat;
    }

    .book {
        display: -webkit-box;
        display: flex;
        width: 80%;
        max-width: 800px;
        margin: 120px auto;
    }

    .book:nth-child(2n+1) {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: reverse;
        flex-direction: row-reverse;
    }

    .book .book__image {
        margin: 0 20px;
        -webkit-box-flex: 0;
        flex: 0 0 40%;
    }

    .book .book__discription h4 {
        margin-top: 0;
    }

    .books {
        gap: 10px;
    }

    .books article {
        width: calc(50% - 5px);
    }

}

/* Offline section paragraph spacing */
.offline p {
    margin-bottom: 1em;
}

/* 自作モーダル (fuwaimg代替) */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

#image-modal.show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

#image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* スマホ用ボタン調整 */
@media (max-width: 768px) {
    .buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 4px;
        /* 間隔を狭める */
    }

    .buttons a {
        font-size: 10px;
        padding: 4px 8px;
        flex: 0 0 auto;
        width: auto;
        line-height: 1.4;
    }
}

/* モーダル閉じるボタン */
#image-modal .close-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #fff;
    z-index: 10001;
}