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

/* ローディング画面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6b5c7 0%, #c5d88a 50%, #99D255 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-icons {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.book-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 60px;
}

.book-left,
.book-right {
    position: absolute;
    width: 38px;
    height: 60px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.book-left {
    left: 0;
    transform-origin: right center;
    animation: bookFlipLeft 2s ease-in-out infinite;
}

.book-right {
    right: 0;
    transform-origin: left center;
    animation: bookFlipRight 2s ease-in-out infinite;
}

.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 60px;
    background: #ddd;
    transform: translateX(-50%);
}

.book-left::before,
.book-left::after,
.book-right::before,
.book-right::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.book-left::before,
.book-right::before {
    top: 15px;
}

.book-left::after,
.book-right::after {
    top: 25px;
}

@keyframes bookFlipLeft {
    0%, 100% {
        transform: perspective(400px) rotateY(0deg);
    }
    50% {
        transform: perspective(400px) rotateY(-25deg);
    }
}

@keyframes bookFlipRight {
    0%, 100% {
        transform: perspective(400px) rotateY(0deg);
    }
    50% {
        transform: perspective(400px) rotateY(25deg);
    }
}

.gear-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    animation: gearRotate 3s linear infinite;
}

.gear-icon.gear-1 {
    top: 0;
    right: 0;
}

.gear-icon.gear-2 {
    bottom: 0;
    left: 0;
    animation-direction: reverse;
    width: 40px;
    height: 40px;
}

.gear {
    width: 100%;
    height: 100%;
    position: relative;
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gear-tooth {
    position: absolute;
    width: 20%;
    height: 30%;
    background: white;
    top: 50%;
    left: 50%;
    transform-origin: 50% 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gear-tooth:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-130%);
}

.gear-tooth:nth-child(2) {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-130%);
}

.gear-tooth:nth-child(3) {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-130%);
}

.gear-tooth:nth-child(4) {
    transform: translate(-50%, -50%) rotate(135deg) translateY(-130%);
}

.gear-tooth:nth-child(5) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-130%);
}

.gear-tooth:nth-child(6) {
    transform: translate(-50%, -50%) rotate(225deg) translateY(-130%);
}

.gear-tooth:nth-child(7) {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-130%);
}

.gear-tooth:nth-child(8) {
    transform: translate(-50%, -50%) rotate(315deg) translateY(-130%);
}

@keyframes gearRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2em;
    color: white;
    font-weight: 300;
    letter-spacing: 0.2em;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 桜の花びら */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sakura {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, #ffc0cb, #ffb6c1);
    border-radius: 50% 0 50% 50%;
    opacity: 0.7;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 本体 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", sans-serif;
    background: linear-gradient(135deg, #e6b5c7 0%, #c5d88a 50%, #99D255 100%);
    background-attachment: fixed;
    color: #464545;
    line-height: 1.8;
    font-size: 14px;
}

a {
    color: #7a9f5e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#top {
    text-align: center;
    padding-top: 50px;
    width: 100%;
    margin: 0;
}

/* ヒーロービジュアル */
.hero-visual {
    position: relative;
    width: 100%;
    height: 1333px;
    margin: 0;
    margin-left: auto;
    overflow: hidden;
    margin-bottom: -200px;
    z-index: -1;
}

.hero-visual-inner {
        max-width: 1400px;
        position: absolute;
        top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      padding-right: 50px;

}

.hero-bg {
    position: absolute;
    top: 0;
    /* left: 50%; */
    right: 0;
    /* transform: translateX(-50%); */
    width: 950px;
    max-width: 100%;
    /* height: 1333px; */
    object-fit: cover;
    opacity: 0;
}
.hero-kv {

    max-width: 950px;
    width: 70%;

    opacity: 0;
}

.hero-bg {
    animation: fadeIn 1s ease-out 1.3s forwards;
}

.hero-kv {
    animation: fadeIn 1s ease-out 1.8s forwards;
}

.hero-logo {
    opacity: 0;
    /* top: 42%; */
    /* left: 10px;
    transform: translateY(-50%); */
    max-width: 400px;
    width: 30%;
    height: auto;
    object-fit: contain;
    animation: fadeIn 1s ease-out 2.8s forwards;
}

.hero-date {
    position: absolute;
    /* bottom: 260px; */
    /* left: 35px; */
    /* transform: translateY(-50%); */
    top: 5%;
    right: 5%;
    text-align: right;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.5;
       color: #fff;
     text-shadow: 0px 0px 7px rgba(103, 103, 103, 0.9);
    opacity: 0;
    animation: fadeIn 1s ease-out 3.8s forwards;
    white-space: nowrap;
    z-index: 10;
}
        .hero-date span {
        font-size: 18px;

    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ヒーロー情報 */
.hero-info {
    background: rgba(255, 255, 255, 1);
    padding: 40px 30px;
    text-align: center;
}

.hero-organizer {
    font-size: 16px;
    color: #464545;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-notice {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-notice span {
    color: rgb(173, 23, 23);
}

.hero-sns-title {
    font-size: 15px;
    color: #464545;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-sns-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-sns-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.hero-sns-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.hero-sns-x {
    background: #000000;
}

.hero-sns-bluesky {
    background: #1185FE;
}

/* シェアボタン */
.share-button-wrapper {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #e6b5c7 0%, #99D255 100%);
    color: white;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.share-icon {
    width: 20px;
    height: 20px;
}

.share-icon img {
    width: 100%;
}



a {
    color: #7a9f5e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

nav ul {
    list-style: none;
    background: rgba(255, 255, 255, 0.92);
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: #464545;
    font-size: 14px;
    transition: background 0.5s, color 0.5s;
}

nav li:last-child a {
    border-right: none;
}

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

nav li:nth-child(odd) a:hover {
    background: #e6b5c7;
}

nav li:nth-child(even) a:hover {
    background: #99D255;
}

    .sp-container {
        padding: 50px 0 30px;
    /* background: linear-gradient(135deg, #e6b5c7 0%, #c5d88a 50%, #99D255 100%); */
    }

section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

h2 {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e6b5c7;
    font-weight: bold;
}

h2 .h2-sub {
    font-size: 18px;
    font-weight: normal;
    color: #666;
    margin-left: 10px;
}

h2 span {
    font-size: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    font-weight: bold;
}


.member-ttl {
    font-weight: bold;
    font-size: 20px;
    padding-left: 40px;
}

.member-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 20px;
grid-row-gap: 50px;
}

.member-grid.u-01 {
   margin-bottom: 50px;
}

.organizer-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.member-card {
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #464545;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.member-links a {
    display: inline-block;
}

.member-links img {
    width: 24px;
    height: 24px;
}

.notice {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 40px auto;
    max-width: 900px;
    border-left: 4px solid #e6b5c7;
    font-size: 13px;
}

/* SNSボタン */
.sns-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.sns-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sns-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.sns-x {
    background: #000000;
}

.sns-bluesky {
    background: #1185FE;
}

.sns-icon {
   width: 12px;
}

.sns-icon img {
   width: 100%;
}

.sns-text {
    font-size: 14px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 12px;
    color: #666;
}

/* 表紙＆概要セクション */
.cover-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.cover-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(230, 181, 199, 0.3);
}

.cover-image {
    flex: 0 0 220px;
}

.cover-image img {
    width: 100%;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cover-credit {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    line-height: 1.7;
    text-align: center;
}

.cover-info {
    flex: 1;
    min-width: 0;
}

.cover-info h2 {
    margin-bottom: 20px;
}

/* サンプルギャラリー */
#sample {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-top: 20px;
}

.sample-thumb {
    width: 100%;
    display: block;
    cursor: zoom-in;
    border-radius: 3px;
    transition: opacity 0.2s, transform 0.15s;
}

.sample-thumb:hover {
    opacity: 0.82;
    transform: scale(1.03);
}

/* サンプルモーダル */
.sample-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.sample-modal.active {
    display: flex;
}

.sample-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.sample-modal-img {
    position: relative;
    max-width: 80vw;
    max-height: 90vh;
    object-fit: contain;
    z-index: 1;
    border-radius: 4px;
}

.sample-modal-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.sample-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sample-modal-prev,
.sample-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.sample-modal-prev { left: 16px; }
.sample-modal-next { right: 16px; }

.sample-modal-prev:hover,
.sample-modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* NEWSアコーディオン */
.news-accordion-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #fff8fb;
    border: none;
    border-top: 1px solid #f0c0d0;
    color: #d84d7c;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.news-accordion-btn:hover {
    background: #fff0f5;
}

.news-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.75s ease;
}

/* レスポンシブ */
@media (max-width: 768px) {
    #top {
        padding-top: 44px;
    }

    .hero-visual {
        height: auto;
        aspect-ratio: 2000 / 3166;
        margin-bottom: -18%;
    }

    .hero-visual-inner {
        padding-right: 0;
        gap: 5px;
    }

    .hero-bg {
        width: 100%;
        height: 100%;
    }

    .hero-kv {
        width: 100%;
        max-width: none;
    }

    .hero-logo {
      position: absolute;
      top: 40%;
      right: 0;
      width: 40%;
        max-width: none;
    }

    .hero-date {
        top: 3%;
        right: 3%;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 18px;
        line-height: 1.3;
        white-space: normal;
        text-align: right;
    }

    .hero-date span {
        font-size: 13px;
    }

    .hero-info {
        padding: 30px 20px;
    }

    .hero-sns-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-sns-button {
        width: 100%;
        max-width: 290px;
        justify-content: center;
    }

    nav a {
        padding: 11px 10px;
        font-size: 12px;
    }

    .sp-container {
        /* padding: 30px 0; */
    background: linear-gradient(135deg, #e6b5c7 0%, #c5d88a 50%, #99D255 100%);
    }

    #top h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h2 span {
        font-size: 16px;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px;
    }

    .member-ttl {
    /* font-weight: bold; */
    font-size: 18px;
    padding-left: 20px;
}

    .member-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-column-gap: 15px;
grid-row-gap: 30px;
        padding: 15px;
    }

    .organizer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .member-avatar {
        width: 70px;
        height: 70px;
    }

    .member-name {
        font-size: 12px;
    }

    .sns-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .sns-button {
        width: 100%;
        justify-content: center;
    }

    .cover-inner {
        /* flex-direction: column; */
        padding: 20px;
        gap: 20px;
        align-items: center;
    }

    .cover-image {
        flex: none;
        width: 100%;
    }

    .cover-info {
        width: 100%;
    }

    .sample-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }

    .sample-modal-img {
        max-width: 95vw;
    }

    .sample-modal-prev { left: 6px; }
    .sample-modal-next { right: 6px; }

    .sample-modal-prev,
    .sample-modal-next {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* お知らせセクション */
.news-section {
    background: #fff;
    padding: 20px 30px !important;
    box-shadow: 0 5px 20px rgba(230, 181, 199, 0.3);
    margin-bottom: 50px !important;
    max-width: 860px !important;
    position: relative;
}

.news-section h2 {
    color: #d84d7c;
    border-bottom: none;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: -13px;
}

.news-badge {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa07a 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 157, 0);
    }
}

.news-item {
    background: white;
    /* border-left: 5px solid #e6b5c7; */
    padding: 20px;
    /* margin-top: 20px; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    /* transition: transform 0.2s, box-shadow 0.2s; */
    border-bottom: 1px solid #d84d7c;

}

.news-item:last-child {
        border-bottom: none;

}

/* .news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 181, 199, 0.3);
} */

.news-date {
    font-size: 13px;
    color: #999;
    font-weight: bold;
    margin-bottom: 12px;
}

.news-content {
    font-size: 14px;
    line-height: 1.8;
}

.news-content figure {
   display: flex;
   gap:10px;
}
.news-content img{
   width: 48%;
}
.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #d84d7c;
    margin-bottom: 10px;
}

.news-location {
    background: #f0f8ff;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
    color: #4a90e2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-section {
        padding: 20px !important;
    }

    .news-section h2 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-item {
        padding: 15px;
    }

    .news-title {
        font-size: 16px;
    }
}

/* TOPへ戻るボタン */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e6b5c7 0%, #99D255 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.scroll-icon {
    position: relative;
    width: 35px;
    height: 35px;
    margin-bottom: 3px;
}

.scroll-book {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
}

.scroll-book-left,
.scroll-book-right {
    position: absolute;
    width: 11px;
    height: 18px;
    background: white;
    border-radius: 2px;
}

.scroll-book-left {
    left: 0;
}

.scroll-book-right {
    right: 0;
}

.scroll-book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 18px;
    background: #ddd;
    transform: translateX(-50%);
}

.scroll-gear {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    animation: scrollGearRotate 3s linear infinite;
}

.scroll-gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 50%;
}

.scroll-gear-tooth {
    position: absolute;
    width: 20%;
    height: 30%;
    background: white;
    top: 50%;
    left: 50%;
    transform-origin: 50% 50%;
}

.scroll-gear-tooth:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(2) {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(3) {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(4) {
    transform: translate(-50%, -50%) rotate(135deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(5) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(6) {
    transform: translate(-50%, -50%) rotate(225deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(7) {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(8) {
    transform: translate(-50%, -50%) rotate(315deg) translateY(-130%);
}

@keyframes scrollGearRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.scroll-text {
    font-size: 11px;
    font-weight: bold;
    color: white;
    letter-spacing: 0.5px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-icon {
        width: 30px;
        height: 30px;
    }

    .scroll-book {
        width: 20px;
        height: 15px;
    }

    .scroll-book-left,
    .scroll-book-right {
        width: 9px;
        height: 15px;
    }

    .scroll-gear {
        width: 15px;
        height: 15px;
    }

    .scroll-text {
        font-size: 10px;
    }
}

/* TOPへ戻るボタン */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6b5c7 0%, #99D255 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-icon {
    position: relative;
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
}

.scroll-book {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 15px;
}

.scroll-book-left,
.scroll-book-right {
    position: absolute;
    width: 9px;
    height: 15px;
    background: white;
    border-radius: 2px;
}

.scroll-book-left {
    left: 0;
}

.scroll-book-right {
    right: 0;
}

.scroll-book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 15px;
    background: #ddd;
    transform: translateX(-50%);
}

.scroll-gear {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    animation: scrollGearRotate 3s linear infinite;
}

.scroll-gear-tooth {
    position: absolute;
    width: 20%;
    height: 30%;
    background: white;
    top: 50%;
    left: 50%;
    transform-origin: 50% 50%;
}

.scroll-gear-tooth:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(2) {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(3) {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(4) {
    transform: translate(-50%, -50%) rotate(135deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(5) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(6) {
    transform: translate(-50%, -50%) rotate(225deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(7) {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-130%);
}

.scroll-gear-tooth:nth-child(8) {
    transform: translate(-50%, -50%) rotate(315deg) translateY(-130%);
}

@keyframes scrollGearRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.scroll-text {
    font-size: 9px;
    font-weight: bold;
    color: white;
    letter-spacing: 0.5px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-icon {
        width: 25px;
        height: 25px;
    }

    .scroll-book {
        width: 16px;
        height: 12px;
    }

    .scroll-book-left,
    .scroll-book-right {
        width: 7px;
        height: 12px;
    }

    .scroll-gear {
        width: 10px;
        height: 10px;
    }

    .scroll-text {
        font-size: 8px;
    }
}
/* ===== 画像モーダル ===== */
#image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

#image-modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-inner img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    animation: modalImgIn 0.25s ease;
}

@keyframes modalImgIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.modal-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}
