:root {
  --corner-deco-svg: url("/images/3rd/corner_decoration.svg");
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  scroll-padding-top: 98px;
  scrollbar-gutter: stable;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

body {
    background-color: #101010;
}

body.opened-modal {
  overflow: hidden;
}

@supports (-moz-appearance: none) {
    html {
        scrollbar-color: #886840 #101010;
        scrollbar-width: thin;
    }
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #101010;
}

::-webkit-scrollbar-track {
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg, 
        #803810 0%, 
        #886840 25%, 
        #e0c070 50%, 
        #886840 75%, 
        #803810 100%
    );
    border-radius: 6px;
    border: 3px solid #101010;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg, 
        #904820 0%, 
        #e0c070 25%, 
        #ffe8a1 50%, 
        #e0c070 75%, 
        #904820 100%
    );
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-button:vertical:decrement:start:single-button {
    display: block;
    height: 16px;
    background-color: #101010; 
    background-image: url("/images/3rd/arrow_up.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

::-webkit-scrollbar-button:vertical:decrement:start:single-button:hover {
    background-image: url("/images/3rd/arrow_up_hover.svg");
}

::-webkit-scrollbar-button:vertical:increment:end:single-button {
    display: block;
    height: 16px;
    background-color: #101010; 
    background-image: url("/images/3rd/arrow_down.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

::-webkit-scrollbar-button:vertical:increment:end:single-button:hover {
    background-image: url("/images/3rd/arrow_down_hover.svg");
}

h1 {
    font-size: 2.0em;
    text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 4px 12px rgba(0, 0, 0, 0.6);
    margin: 0 auto;
}

h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin-top: 30px;
    margin-bottom: 0;
}

h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 auto;
}

p {
    font-size: 1.1em;
    margin: 0;
}

.small-text {
    font-size: 1.0em;
}

.verysmall-text {
    font-size: 0.8em;
}

.add-bold {
    font-weight: bold;
}

.p-inline-img {
    height: 1.1em;
    vertical-align: middle;
}

.no-border-table {
    border: 0 none;
    font-size: 1.1em;
    text-align: left;
}

.add-margin-center {
    margin: 0 auto;
}

.add-margin-top-low {
    margin-top: 10px;
}

.add-margin-top-superhigh {
    margin-top: 120px;
}

.add-padding-top-low {
    padding-top: 10px;
}

.add-padding-top-high {
    padding-top: 30px;
}

.add-padding-top-veryhigh {
    padding-top: 60px;
}

.add-padding-right-low {
    padding-right: 10px;
}

.add-talign-left {
    text-align: left;
}

.line {
    position: relative;
    width: 75%;
    height: 2px;
    margin: 0 auto;
    margin-bottom: 20px;
    background: linear-gradient(to right, transparent, white, transparent);
    z-index: 1;
}

.line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
  filter: blur(3px);
}

.line-kotonoha {
    width: 67%;
    height: 2px;
    margin: 0 auto;
    margin-bottom: 5px;
    background: linear-gradient(to right, transparent, #ff96c9, #92d6e6, transparent);
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 80px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

.button-container-item {
    margin: 0 auto;
    padding: 0;
}

.button-chara-base {
    --shadow-outer: 0 4px 8px rgba(0, 0, 0, 0.15);
    --overlay-inner:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.25) 0px,
            transparent 2px,
            transparent calc(100% - 2px),
            rgba(255, 255, 255, 0.5) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 40%,
            transparent 60%,
            rgba(0, 0, 0, 0.25) 100%
        );
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-style: normal;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.2em;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    transform: scale(1);
    box-shadow: var(--shadow-outer);
    filter: brightness(1);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.1s ease-out;
}

.button-chara-base:hover:not(.is-pressed):not(.is-clicked):not(.no-hover) {
    --shadow-outer: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.025);
    filter: brightness(1.1);
}

.button-chara-base.is-pressed {
    --shadow-outer: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    --overlay-inner: 
        linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.2) 0px,
            transparent 2px,
            transparent calc(100% - 2px),
            rgba(0, 0, 0, 0.4) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            transparent 100%
        ) !important;
    transform: scale(0.95) !important;
    filter: brightness(1.2) !important;
    transition: transform 0.05s, box-shadow 0.05s, filter 0.05s;
}

.button-chara-base.is-clicked {
    animation: button-chara-pop 0.3s linear forwards;
}

.button-chara-base.post-click {
    transition: none;
}

@keyframes button-chara-pop {
    0%   { 
        transform: scale(0.95); 
        box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 3px 6px rgba(0,0,0,0.2); 
        filter: brightness(1.2); 
    }
    15%  { 
        transform: scale(1.1);  
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        filter: brightness(1.5); 
    }
    100% { 
        transform: scale(1);    
        box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 -3px 0 rgba(0,0,0,0.15); 
        filter: brightness(1); 
    }
}

.button-chara-color-red { --btn-color: #7a0b19; }
.button-chara-color-blue { --btn-color: #0f1b33; }
.button-chara-color-black { --btn-color: #3a3525; }

.button-chara-front, .button-chara-back {
    --frame-color: #b89947; 
}
.button-chara-front:hover:not(.is-pressed):not(.is-clicked):not(.no-hover),
.button-chara-back:hover:not(.is-pressed):not(.is-clicked):not(.no-hover) {
    --frame-color: #d6b454;
}

.button-chara-front {
    height: 65px;
    width: fit-content;
    max-width: 360px;
    margin: 0;
    padding: 0 50px;
    box-sizing: border-box;
    border: 3px solid #ffffff;
    border-radius: 14px;
    background-color: var(--btn-color, transparent);
    background-blend-mode: normal;
    background-image: var(--overlay-inner);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 
        var(--shadow-outer),
        inset 0 0 0 transparent,
        inset 0 0 0 5px var(--frame-color),
        inset 0 0 0 transparent;
}

.button-chara-front::before, .button-chara-front::after {
    content: "";
    position: absolute;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    z-index: 2;
}
.button-chara-front::before { left: -45px; top: 36%; background-image: var(--chara-left, none); }
.button-chara-front::after { right: -45px; top: 41%; background-image: var(--chara-right, none); }

.button-chara-front.is-pressed {
    box-shadow:
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 3px 6px rgba(0,0,0,0.2),
        inset 0 0 0 5px #ffdf66,
        inset 0 0 20px rgba(255, 223, 102, 0.8) !important;
    transition: box-shadow 0.1s ease-out, transform 0.05s, filter 0.05s;
}

.button-chara-front.is-clicked {
    animation: button-chara-front-pop 0.3s linear forwards !important;
}

@keyframes button-chara-front-pop {
    0%   {
        transform: scale(0.95);
        box-shadow:
            0 1px 2px rgba(0,0,0,0.1),
            inset 0 3px 6px rgba(0,0,0,0.2),
            inset 0 0 0 5px #ffdf66,
            inset 0 0 5px rgba(255, 223, 102, 0.5);
        filter: brightness(1.2);
    }
    15%  {
        transform: scale(1.1);
        box-shadow:
            0 10px 20px rgba(0,0,0,0.15),
            inset 0 0 0 transparent,
            inset 0 0 0 5px #ffea99,
            inset 0 0 20px rgba(255, 223, 102, 1);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 4px 8px rgba(0,0,0,0.15),
            inset 0 -3px 0 rgba(0,0,0,0.15),
            inset 0 0 0 5px #b89947,
            inset 0 0 0 transparent;
        filter: brightness(1);
    }
}

.button-chara-back {
    height: 50px;
    width: fit-content;
    min-width: 90px;
    max-width: 360px; 
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 6px;
    background-color: #ffffff;
}

.button-chara-back::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: -1;
    border-radius: calc(12px - 3px);
    background-color: var(--btn-color, transparent);
    background-blend-mode: normal;
    background-image: var(--overlay-inner);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 5px var(--frame-color), inset 0 0 0 transparent;
    transition: box-shadow 0.1s ease-out;
}

.button-chara-back::before {
    content: "";
    position: absolute;
    z-index: -2;
    pointer-events: none;
    top: -100px;
    bottom: -50px;
    left: -60px;
    right: -60px;
    background-image: var(--chara-left, none), var(--chara-right, none);
    background-size: 100px 100px, 100px 100px;
    background-repeat: no-repeat, no-repeat;
    background-position: 
        left 0 bottom calc(50px + var(--y-left, 10px)),
        right 0 bottom calc(50px + var(--y-right, 10px));
}

.button-chara-back.is-pressed::after {
    box-shadow: inset 0 0 0 5px #ffdf66, inset 0 0 20px rgba(255, 223, 102, 0.8) !important;
}

.button-chara-back.is-clicked::after {
    animation: button-chara-back-glow 0.3s linear forwards !important;
}

@keyframes button-chara-back-glow {
    0% {
        filter: brightness(0.916);
        box-shadow: inset 0 0 0 5px #ffdf66, inset 0 0 5px rgba(255, 223, 102, 0.5);
    }
    15% {
        filter: brightness(0.8333);
        box-shadow: inset 0 0 0 5px #ffea99, inset 0 0 20px rgba(255, 223, 102, 1);
    }
    100% {
        filter: brightness(1);
        box-shadow: inset 0 0 0 5px #b89947, inset 0 0 0 rgba(255, 223, 102, 0);
    }
}

.button-chara-front.is-pressed::before,
.button-chara-front.is-pressed::after,
.button-chara-back.is-pressed::before,
.button-chara-back.is-pressed::after {
    filter: brightness(0.916) !important;
    transition: filter 0.05s;
}

.button-chara-front.is-clicked::before,
.button-chara-front.is-clicked::after,
.button-chara-back.is-clicked::before,
.button-chara-back.is-clicked::after {
    animation: button-chara-dim 0.3s linear forwards;
}

@keyframes button-chara-dim {
    0%   { filter: brightness(0.916); }
    15%  { filter: brightness(0.8333); }
    100% { filter: brightness(1); }
}

.button-chara-toggle {
    width: 200px;
    height: 100px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    perspective: 500px;
    flex-shrink: 0;
    align-self: center;
}

.button-chara-toggle::before,
.button-chara-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button-chara-toggle::before {
    background-image: var(--img-off, none);
    transform: rotateY(0deg);
}

.button-chara-toggle::after {
    background-image: var(--img-on, none);
    transform: rotateY(-180deg);
}

.button-chara-toggle.is-active::before {
    transform: rotateY(180deg);
}

.button-chara-toggle.is-active::after {
    transform: rotateY(0deg);
}

.is-disabled,
.is-disabled .button-chara-base,
.button-chara-base.is-disabled {
    pointer-events: none !important;
    cursor: not-allowed !important;
    transform: scale(1) !important;
    box-shadow: 0 0 0 transparent !important;
}

.is-disabled .button-chara-front {
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 5px #b89947 !important;
}

.button-chara-front.is-disabled,
.is-disabled .button-chara-front,
.button-chara-back.is-disabled,
.is-disabled .button-chara-back {
    background-color: #ffffff !important; /* ←ここ変更 */
    background-blend-mode: normal !important;
    color: #888888 !important;

    filter: grayscale(60%) brightness(0.9);
}

.button-chara-back.is-disabled::after {
    background-color: #bfbfbf !important; /* ←内側もグレー */
    background-blend-mode: normal !important;
}

.button-chara-toggle.is-disabled,
.is-disabled .button-chara-toggle {
    filter: grayscale(100%) !important;
}

.main-image {
    position: relative;
    width: 100%;
    height: 100dvh;
    height: 100vh;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.key-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 33.3%;
}

.title-logo {
    position: absolute;
    width: 55vh;
    width: 55dvh;
    max-width: 90vw;
    height: auto;
    top: 77.5%;
    left: 50%;
    translate: -50% -50%;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 3s forwards;
}

.scrolldown {
    position: absolute;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: 10px;
    border-bottom: 2px solid #92d6e6;
    border-right: 2px solid #92d6e6;
    translate: -50% -50%;
    rotate: 45deg;
    opacity: 0;
    animation: fadeIn 3s forwards, arrowmove 1s ease-in-out infinite;
}

.scrolldown:before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    margin: 15px;
    border-bottom: 2px solid #ff96c9;
    border-right: 2px solid #ff96c9;
}

@keyframes fadeIn {
    33% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes arrowmove {
    0% {
        bottom: 1%;
    }

    50% {
        bottom: 1.5%;
    }

    100% {
        bottom: 1%;
    }
}

.menu {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-style: solid;
  border-width: 4px 0;
  border-image: linear-gradient(
    to right, 
    #803810 0%, 
    #886840 25%, 
    #e0c070 50%, 
    #886840 75%, 
    #803810 100%
  ) 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 98px;
  width: 100%;
}

.menu-logo{
    grid-column: 1;
    justify-self: start;
    width: auto;
    height: 80px;
    padding-left: 20px;
    white-space: nowrap;
}

.menu-button {
  grid-column: 2;
  justify-self: center;
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-button li {
  border-right: 1px solid #987850;
}
.menu-button li:first-child {
  border-left: 1px solid #987850;
}

.menu-button a {
    display: block;
    padding: 0.25rem 20px;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    transition: color 0.3s, background-color 0.3s;
}

.menu-button a:hover {
    color: #e0c070;
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: none;
}

.menu-button.open {
    translate: 0;
}

.menu-button-hamburger {
  grid-column: 3;
  justify-self: end;
  margin-right: 20px;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}
.menu-button-hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #987850;
}

.menu-button-hamburger span:nth-child(1) {
    top: 0;
}

.menu-button-hamburger span:nth-child(2) {
    top: 50%; transform: translateY(-50%);
}
.menu-button-hamburger span:nth-child(3) {
    bottom: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10; 
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.menu-button-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.menu-button-close span,
.modal-close span {
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  background-color: #987850;
  top: 50%;
}

.menu-button-close span:nth-child(1),
.modal-close span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.menu-button-close span:nth-child(2),
.modal-close span:nth-child(2) {
  transform: translateY(-50%) rotate(-45deg);
}

.menu-button-overlay {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 80%;
}
.menu-button-overlay li {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(152, 120, 80, 0.5);
}
.menu-button-overlay a {
  display: block;
  padding: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

@media (max-width: 1100px) {
  .menu-logo {
    padding-left: 10px;
  }
  .menu-button a {
    padding: 0 10px;
  }
}

.sp-only { display: none; }

@media (max-width: 900px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  .menu {
    grid-template-columns: 1fr 1fr;
  }

  .menu-logo {
    grid-column: 1;
  }

  .menu-button-hamburger {
    grid-column: 2;
  }
}

.content-base {
    display: flex;
    justify-content: center;
    margin-top: -98px;
    position: relative;
    clip-path: inset(0);
    z-index: 0;
}

.content-base::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("/images/3rd/stage_curtain_front.webp");
  background-size: cover;
  background-position: center;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.side-decoration::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -6px;
    right: -6px;
    pointer-events: none;
    background-image: 
        linear-gradient(
            to right,
            #3a1f04 0%,
            #a88040 15%,
            #ffe8a1 35%,
            #a88040 65%,
            #1a0b00 100%
        ),
        linear-gradient(
            to left,
            #3a1f04 0%,
            #a88040 15%,
            #ffe8a1 35%,
            #a88040 65%,
            #1a0b00 100%
        );
    background-size: 6px 100%, 6px 100%;
    background-position: left top, right top;
    background-repeat: no-repeat;
    z-index: 0;
}

.side-decoration {
    width: 100%;
    max-width: 157.5px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-left: 6px solid #a88040;
    border-right: 6px solid #a88040;
    background-color: #a88040;
    background-size: 48.5px 166px;
    background-repeat: repeat;
    position: relative;
    z-index: 2;
}

.left-border {
    background-image: url("/images/3rd/side_decoration_akane.webp");
    background-position: right top;
    box-shadow: -20px 0 20px -20px #000000;
}

.right-border {
    background-image: url("/images/3rd/side_decoration_aoi.webp");
    background-position: left top;
    box-shadow: 20px 0 20px -20px #000000;
}

.left-border::after,
.right-border::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -6px; right: -6px;
    pointer-events: none;
    background-attachment: fixed;
    mix-blend-mode: overlay; 
    z-index: 1;
}

.left-border::after {
    background-image: linear-gradient(
        135deg,
        rgba(20, 5, 0, 0.8) 0%,
        rgba(20, 5, 0, 0.8) 20%,
        rgba(255, 255, 255, 0.4) 27.5%,
        rgba(255, 255, 255, 0.7) 35%,
        rgba(255, 255, 255, 0.4) 42.5%,
        rgba(20, 5, 0, 0.8) 55%,
        rgba(20, 5, 0, 0.8) 100%
    );
}

.right-border::after {
        background-image: linear-gradient(
        225deg,
        rgba(20, 5, 0, 0.8) 0%,
        rgba(20, 5, 0, 0.8) 20%,
        rgba(255, 255, 255, 0.4) 27.5%,  
        rgba(255, 255, 255, 0.7) 35%,  
        rgba(255, 255, 255, 0.4) 42.5%,  
        rgba(20, 5, 0, 0.8) 55%,       
        rgba(20, 5, 0, 0.8) 100%
    );
}

.content {
  width: 90%;
  max-width: 600px;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 128px 30px 30px;
  text-align: center;
  color: white;
  position: relative;
  isolation: isolate;
  background-color: #182850;
  background-image: linear-gradient(to right, #802020 0%, #802020 5%, #182850 25%, #182850 75%, #802020 95%, #802020 100%);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 3;
}

.content::before,
.content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}

.content::before {
  background-image: url("/images/3rd/wallpaper_texture.jpg");
  background-position: center 0;
  background-repeat: repeat;
  background-size: 640px 480px;
  mix-blend-mode: multiply;
}

.content::after {
  background-image: url("/images/3rd/wallpaper_pattern.svg");
  background-position: calc(50% + 40px) 40px;
  background-repeat: repeat;
  background-size: 240px 240px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8); 
}

.content-line {
    position: relative;
    width: 100%;
    height: 8px;
    background-image: linear-gradient(to top, #302020 20%, #908080 60%, #d0c0c0);
}

.section-block {
    padding-top: 80px;
}

.text-box {
    position: relative;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    color: #301008;
    box-shadow:
        0 0 2px 3px rgba(255, 232, 161, 0.6),
        0 4px 20px 1px rgba(0, 0, 0, 0.8);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-box::before {
content: "";
    position: absolute;
    inset: -2px;
    border-radius: 17px;
    padding: 2px; 
    background: linear-gradient(
        135deg, 
        #e0c070 0%, 
        #886840 25%, 
        #803810 50%,
        #886840 75%, 
        #e0c070 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.text-box::after {content: "";
    position: absolute;
    inset: 15px; 
    pointer-events: none;
    border-radius: 0; 
    outline: 1px solid rgba(136, 104, 64, 0.4); 
    outline-offset: 6px;
    border: 1px solid #d4af7e;
    background-image:
        var(--corner-deco-svg),
        var(--corner-deco-svg),
        var(--corner-deco-svg),
        var(--corner-deco-svg);
    background-repeat: no-repeat;
    background-size: 32px 32px;
    background-origin: border-box;
    background-position:
        top -16px left -16px,     
        top -16px right -16px,    
        bottom -16px left -16px,  
        bottom -16px right -16px;
}

.google-map-wrap {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.google-map {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.google-map iframe {
    width: 100%;
    height: 100%;
}

.footer {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: white;
    text-align: center;
}

/* --------------------------------------------------- */

.loader_cover {
  position: fixed;
  inset: 0;              
  z-index: 9999;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curtain {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 100vh;          
  transform: translateX(-50%);
  will-change: transform;
  filter: brightness(0.7);
}

@media (max-aspect-ratio: 1/1){ .curtain { width: 160vw; } }
@media (min-aspect-ratio: 1/1){ .curtain { width: 100vw; } }

.curtain2 { z-index: 4; }
.curtain3 { z-index: 3; }
.curtain4 { z-index: 2; }

.curtain_logo {
  position: absolute;    
  z-index: 10;           
  width: 55vh;
  width: 55dvh;
  max-width: 75vw;
  height: auto;
}

.is-loaded .curtain_logo {
  animation: fadeOut 1.0s ease-out forwards;
}

.is-loaded .curtain {
  animation: curtainUp 0.9s ease-in forwards;
}
.is-loaded .curtain2 { animation-delay: 0.2s; }
.is-loaded .curtain3 { animation-delay: 0.4s; }
.is-loaded .curtain4 { animation-delay: 0.6s; }

.is-loaded.loader_cover {
  animation: bgBlackToWhiteToClear 2.0s ease-in-out forwards;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes curtainUp {
  to { transform: translate(-50%, -100%); }
}

@keyframes bgBlackToWhiteToClear {
  50% { 
    background-color: #000; 
    opacity: 1; 
  }
  
  75% { 
    background-color: #fff; 
    opacity: 1; 
  }
  
  100% { 
    background-color: #fff; 
    opacity: 0; 
    visibility: hidden; 
  }
}

.is-locked {
    overflow: hidden !important;
    touch-action: none !important; 
}

.is-fadeout {
    opacity: 0;
    pointer-events: none; 
}

/* 縦長（portrait） */
@media (max-aspect-ratio: 1/1){
    .curtain_left{
    position: fixed;
    object-fit: cover;
    left: -5%;
    height: 100vh;
    pointer-events: none;   /* ←下をクリックできる */
    user-select: none;      /* ついでに選択も防ぐ */
    z-index: 1;

    }
    .curtain_right{
    position: fixed;
    object-fit: cover;
    right: -5%;
    height: 100vh;
    pointer-events: none;   /* ←下をクリックできる */
    user-select: none;      /* ついでに選択も防ぐ */
    z-index: 1;
    }
}

/* 横長（landscape） */
@media (min-aspect-ratio: 1/1){
    .curtain_left{
    position: fixed;
    object-fit: cover;
    left: 0;
    height: 100vh;
    pointer-events: none;   /* ←下をクリックできる */
    user-select: none;      /* ついでに選択も防ぐ */
    z-index: 1;
    }
    .curtain_right{
    position: fixed;
    object-fit: cover;
    right: 0;
    height: 100vh;
    pointer-events: none;   /* ←下をクリックできる */
    user-select: none;      /* ついでに選択も防ぐ */
    z-index: 1;
    }
}

/* モーダル */
/* 背景 */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 40px 20px; */
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 200;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal.is-active{
  opacity: 1;
  visibility: visible;
  z-index: 200;
}

/* 白枠の外側 */
.modal-container{
  position: relative;
  width: 90%;
  height: 86vh;
  display: flex;
}

.modal-content{
  flex: 1;
  /* background: #fff; */
  background-color: rgba(120, 0, 0, 0.8);
  /* background-color: #900000; */
  border-radius: 15px;
  padding: 10px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
}

.modal2-content{
  flex: 1;
  /* background: #fff; */
  background-color: rgba(20, 20, 120, 0.8);
  /* background-color: #900000; */
  border-radius: 15px;
  padding: 10px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
}

.modal-content,
.modal2-content {
  display: flex;
  flex-direction: column;
}

.modal-scroll{
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 閉じるボタン */
.modal-close{
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* モーダル */
/* 背景 */
.modal2{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 40px 20px; */
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 200;
  box-sizing: border-box;
}

.modal2.is-active{
  opacity: 1;
  visibility: visible;
  z-index: 200;
}

/* 白枠の外側 */
.modal2-container{
  position: relative;
  width: 90%;
  height: 86vh;
  display: flex;
}

.modal2-scroll{
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 閉じるボタン */
.modal2-close{
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.wrapper {
  display: grid;
  gap: 24px; /* column-gap/row-gap をまとめて */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 450px){
  .wrapper{
    grid-template-columns: 1fr;
  }
  .wrapper > *{
    max-width: 95%;
    justify-self: center;
  }
}

.video-container-iframe-wrapper {
  /* aspect-ratio: 16 / 9; */
  overflow: hidden;
  height: 100%;
  background-color: black;
  border-radius: 10px;
}

figure {
  margin-block-start: 8px;
  margin-block-end: 8px;
  margin-inline-start: 8px;
  margin-inline-end: 8px;
  /* margin-inli: 10px; */
  /* margin-block-end: 20px; */
}

.video-container-iframe-wrapper iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.box {
    background-color: rgba(255, 255, 255, 0.8);
    /* border-radius: 15px; */
    padding: 6px 0px 6px 0px;
    text-align: center;
    color: black;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
    /* width: calc(var(--grid-size) - var(--grid-gap)); */
    margin: 8px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 95%;
    height: 360px;
}

/* タブボタン：ホバーで少し拡大 */
.selection-tab{
  transition: transform 120ms ease, filter 120ms ease;
  transform-origin: center;
  will-change: transform;
}

.selection-tab:hover{
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* 動画一覧のフレーム */
/* 細め + 立体感強めの黒額縁 */
.frame{
  padding: 8px;           /* ←細く */
  border-radius: 4px;     /* 角ばり */
  position: relative;

  /* 黒でも“面”が分かるように少しだけグラデ */
  background: linear-gradient(135deg, #222 0%, #0a0a0a 55%, #000 100%);

  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.6),
    0 14px 28px rgba(0,0,0,.60),         /* 外側の落ち影 */
    0 1px 0 rgba(255,255,255,.14) inset, /* 上/左の面取りハイライト */
    1px 0 0 rgba(255,255,255,.10) inset,
    0 -1px 0 rgba(0,0,0,.65) inset,      /* 下/右の締まり */
    -1px 0 0 rgba(0,0,0,.65) inset;
}

/* 1段目：ベベル（面取り）を“枠の縁”として見せる */
.frame::before{
  content:"";
  position:absolute;
  inset: 2px;               /* 縁の内側 */
  border-radius: 3px;
  pointer-events:none;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset, /* うっすら光る線 */
    0 0 0 2px rgba(0,0,0,.55) inset;       /* 影の線で厚み */
}

/* 2段目：内側の溝（額縁っぽさの決め手） */
.frame::after{
  content:"";
  position:absolute;
  inset: 8px;               /* padding と同じ = ちょうど内側境界 */
  border-radius: 2px;
  pointer-events:none;

  box-shadow:
    0 10px 14px rgba(0,0,0,.75) inset,     /* 沈み */
    0 0 0 1px rgba(255,255,255,.08) inset; /* 溝の輪郭線 */
}

/* 既存 .frame はそのまま使う前提で「装飾」だけ追加 */

.frame{
  position: relative; /* 念のため */
  overflow: hidden;   /* 装飾のはみ出し防止 */
}

/* アールデコ：外周のダブルライン + コーナーの意匠 */
.frame::before{
  content:"";
  position:absolute;
  inset: 2px;                /* 外周の装飾位置（太さはここで調整） */
  border-radius: 3px;
  pointer-events:none;

  /* 外周の二重線（ゴールド寄りの薄い線） */
  box-shadow:
    0 0 0 1px rgba(240, 220, 170, .25) inset,
    0 0 0 3px rgba(0,0,0,.55) inset,
    0 0 0 4px rgba(240, 220, 170, .12) inset;

  /* コーナー装飾：角に向かって伸びる線 */
  background:
    linear-gradient(90deg, rgba(240,220,170,.22), rgba(240,220,170,0)) left 10px top 10px / 28px 1px no-repeat,
    linear-gradient(180deg, rgba(240,220,170,.22), rgba(240,220,170,0)) left 10px top 10px / 1px 28px no-repeat,

    linear-gradient(270deg, rgba(240,220,170,.22), rgba(240,220,170,0)) right 10px top 10px / 28px 1px no-repeat,
    linear-gradient(180deg, rgba(240,220,170,.22), rgba(240,220,170,0)) right 10px top 10px / 1px 28px no-repeat,

    linear-gradient(90deg, rgba(240,220,170,.22), rgba(240,220,170,0)) left 10px bottom 10px / 28px 1px no-repeat,
    linear-gradient(0deg,  rgba(240,220,170,.22), rgba(240,220,170,0)) left 10px bottom 10px / 1px 28px no-repeat,

    linear-gradient(270deg, rgba(240,220,170,.22), rgba(240,220,170,0)) right 10px bottom 10px / 28px 1px no-repeat,
    linear-gradient(0deg,  rgba(240,220,170,.22), rgba(240,220,170,0)) right 10px bottom 10px / 1px 28px no-repeat;
}

/* アールデコ：上/下に “段々” のストライプ装飾（細い溝みたいな感じ） */
.frame::after{
  content:"";
  position:absolute;

  /* 中身(.box)に被らないように、枠の内側エリアに敷く */
  inset: 8px;                /* ← padding(8px)と同値だと“ちょうど枠内側” */
  border-radius: 2px;
  pointer-events:none;
  opacity: .9;
}


/* =========================
 * モーダル背景（overlay）
 * ========================= */
.modal{
  /* 既存の display:flex / opacity 等はそのまま使いつつ、背景だけ強化 */
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(0,0,0,.25), rgba(0,0,0,.78) 70%),
    rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* =========================
 * モーダル本体：外周を金縁に（アールデコ寄り）
 * ========================= */
.modal-container{
  border-radius: 6px;              /* content が 15px なので少しだけ外側を大きく */
  padding: 2px;                    /* 金縁の“太さ” */
  background: linear-gradient(
    to right,
    #803810 0%,
    #886840 25%,
    #e0c070 50%,
    #886840 75%,
    #803810 100%
  );
  box-shadow:
    0 22px 55px rgba(0,0,0,.75);
}

/* 内側の黒い面（展示ケースっぽく） */
.modal-content{
  border-radius: 4px;              /* 外側より少し小さく */
  background:
    repeating-linear-gradient(
      90deg,
      rgba(224,192,112,.06) 0px,
      rgba(224,192,112,.06) 1px,
      rgba(0,0,0,0) 1px,
      rgba(0,0,0,0) 16px
    ),
    rgba(120, 0, 0, 0.82);          /* 既存の赤を活かしつつ上品に */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 10px 22px rgba(0,0,0,.55) inset;
}

.modal2-content{
  border-radius: 4px;              /* 外側より少し小さく */
  background:
    repeating-linear-gradient(
      90deg,
      rgba(224,192,112,.06) 0px,
      rgba(224,192,112,.06) 1px,
      rgba(0,0,0,0) 1px,
      rgba(0,0,0,0) 16px
    ),
    rgba(20, 20, 120, 0.82);          /* 既存の赤を活かしつつ上品に */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 10px 22px rgba(0,0,0,.55) inset;
}

.modal-close{
  top: 6px;                /* ← もっと右上なら 0〜4px */
  right: 6px;

  width: 38px;
  height: 38px;
  border-radius: 8px;      /* 角ばった方がアールデコ寄り */

  background: linear-gradient(135deg, #1a1a1a, #050505);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;

  /* 細い金ライン + 立体感 */
  box-shadow:
    0 10px 20px rgba(0,0,0,.45),
    0 0 0 1px rgba(224,192,112,.55) inset,
    0 0 0 3px rgba(0,0,0,.60) inset;

  cursor: pointer;
  user-select: none;
}

.modal-close::after{
  content: none !important;
}

.modal-close:hover{ filter: brightness(1.08); }
.modal-close:active{ transform: translateY(1px); }

.modal-sorter {
  margin-bottom: 10px;
  gap: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.modal-sorter select {
  height: 30px;
  border-radius: 8px;
  color: #e0c070;
  font-size: 1.1em;
  padding: 0 10px;
  background-color: #101010;
}

.modal-scroll{
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 2%,
    black 98%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 2%,
    black 98%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.curtain_left,
.curtain_right {
    position: fixed;
    top: 0;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    z-index: 1; /* contentより後ろ */
}

.grid-item-author{
    font-size: 0.8em;
    text-align: center;
}

/* ランセレ用カルーセル */
.recommend {
  margin-top: 40px;
}

.recommend-title {
  font-weight: bold;
  text-shadow: 
          0 2px 4px rgba(0, 0, 0, 0.8),
          0 4px 12px rgba(0, 0, 0, 0.6);
  margin: 0 auto 12px;
}

.recommend-carousel {
  /* layout */
  --rc-card: clamp(260px, 78vw, 300px);
  --rc-peek: clamp(20px, 6vw, 44px);
  --rc-btn-size: clamp(36px, 10vw, 44px);
  --rc-fade: 16px;
  --rc-gap: 16px;
  --rc-shift: 10px;

  /* motion */
  --rc-ease: cubic-bezier(.22, .61, .36, 1);
  --rc-duration: 900ms;

  /* button theme */
  --rc-gold: rgba(255, 232, 161, 0.92);
  --rc-gold-border: rgba(224, 192, 112, 0.45);
  --rc-gold-border-hover: rgba(255, 232, 161, 0.60);
  --rc-black-1: #0b0a0e;
  --rc-black-2: #14121a;
  --rc-black-3: #07060a;

  position: relative;
  display: grid;
  grid-template-columns: var(--rc-btn-size) minmax(0, auto) var(--rc-btn-size);
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rc-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
  justify-self: center;

  width: min(
    calc(var(--rc-card) + var(--rc-peek) * 2),
    calc(100vw - var(--rc-btn-size) * 2 - 24px)
  );

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--rc-fade),
    #000 calc(100% - var(--rc-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--rc-fade),
    #000 calc(100% - var(--rc-fade)),
    transparent 100%
  );
}

.rc-track {
  display: flex;
  gap: var(--rc-gap);
  will-change: transform;
  transition: transform var(--rc-duration) var(--rc-ease);
}

.rc-slide {
  flex: 0 0 auto;
  width: min(
    var(--rc-card),
    calc(100vw - var(--rc-btn-size) * 2 - 24px - var(--rc-peek) * 2)
  );
  margin-top: 20px;
  margin-bottom: 40px;
}

.rc-btn {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: var(--rc-btn-size);
  height: var(--rc-btn-size);
  padding: 0;
  border: 1px solid var(--rc-gold-border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 232, 161, 0.10), rgba(255, 232, 161, 0) 45%),
    linear-gradient(180deg, var(--rc-black-1) 0%, var(--rc-black-2) 55%, var(--rc-black-3) 100%);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(224, 192, 112, 0.10),
    inset 0 10px 18px rgba(255, 255, 255, 0.05),
    inset 0 -12px 18px rgba(0, 0, 0, 0.65);
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  user-select: none;
}

.rc-btn:hover {
  filter: brightness(1.05);
  border-color: var(--rc-gold-border-hover);
}

.rc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}

.rc-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--rc-gold);
  border-bottom: 2px solid var(--rc-gold);
  box-shadow: 0 0 10px rgba(255, 232, 161, 0.18);
}

.rc-prev,
.rc-next {
  position: relative;
}

.rc-prev {
  left: var(--rc-shift);
}

.rc-next {
  left: calc(var(--rc-shift) * -1);
}

.rc-prev::before {
  transform: translate(calc(-50% + 3px), -50%) rotate(135deg);
}

.rc-next::before {
  transform: translate(calc(-50% - 3px), -50%) rotate(-45deg);
}

.rc-prev:active,
.rc-next:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .recommend-carousel {
    --rc-peek: 16px;
    --rc-fade: 12px;
    --rc-gap: 12px;
    --rc-shift: 0px;
  }
}

.rc-track.is-no-transition {
  transition: none !important;
}

.rc-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.rc-indicator {
  width: 36px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.8);
}

.rc-indicator:hover {
  background: rgba(255,255,255,0.34);
}

.rc-indicator.is-active {
  background: rgba(255, 232, 161, 0.95);
  transform: scaleY(1.15);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.8);
}

.rc-indicator.dark {
  background: rgba(0,0,0,0.44);
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.rc-indicator.dark:hover {
  background: rgba(0,0,0,0.36);
}

.rc-indicator.dark.is-active {
  background: rgba(255, 232, 161, 0.95);
  box-shadow: 0 0 1px 2px rgba(0, 0, 0, 0.2);
}



.frame.frame-story {
  background: linear-gradient(135deg, #1a4080 0%, #102040 55%, #0a1020 100%);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.6),
    0 14px 28px rgba(0,0,0,.60),
    0 1px 0 rgba(180, 210, 255, .16) inset,
    1px 0 0 rgba(180, 210, 255, .12) inset,
    0 -1px 0 rgba(0,0,0,.65) inset,
    -1px 0 0 rgba(0,0,0,.65) inset;
}

.frame.frame-story::before{
  box-shadow:
    0 0 0 1px rgba(170, 205, 255, .28) inset,
    0 0 0 3px rgba(0,0,0,.55) inset,
    0 0 0 4px rgba(120, 165, 235, .14) inset;

  background:
    linear-gradient(90deg, rgba(170,205,255,.24), rgba(170,205,255,0)) left 10px top 10px / 28px 1px no-repeat,
    linear-gradient(180deg, rgba(170,205,255,.24), rgba(170,205,255,0)) left 10px top 10px / 1px 28px no-repeat,

    linear-gradient(270deg, rgba(170,205,255,.24), rgba(170,205,255,0)) right 10px top 10px / 28px 1px no-repeat,
    linear-gradient(180deg, rgba(170,205,255,.24), rgba(170,205,255,0)) right 10px top 10px / 1px 28px no-repeat,

    linear-gradient(90deg, rgba(170,205,255,.24), rgba(170,205,255,0)) left 10px bottom 10px / 28px 1px no-repeat,
    linear-gradient(0deg, rgba(170,205,255,.24), rgba(170,205,255,0)) left 10px bottom 10px / 1px 28px no-repeat,

    linear-gradient(270deg, rgba(170,205,255,.24), rgba(170,205,255,0)) right 10px bottom 10px / 28px 1px no-repeat,
    linear-gradient(0deg, rgba(170,205,255,.24), rgba(170,205,255,0)) right 10px bottom 10px / 1px 28px no-repeat;
}

.frame.frame-song {
  background: linear-gradient(135deg, #801a20 0%, #40101a 55%, #200a10 100%);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.6),
    0 14px 28px rgba(0,0,0,.60),
    0 1px 0 rgba(255, 210, 210, .12) inset,
    1px 0 0 rgba(255, 210, 210, .08) inset,
    0 -1px 0 rgba(0,0,0,.65) inset,
    -1px 0 0 rgba(0,0,0,.65) inset;
}

.frame.frame-song::before{
  box-shadow:
    0 0 0 1px rgba(210, 150, 150, .24) inset,
    0 0 0 3px rgba(0,0,0,.55) inset,
    0 0 0 4px rgba(140, 70, 70, .16) inset;

  background:
    linear-gradient(90deg, rgba(210,150,150,.22), rgba(210,150,150,0)) left 10px top 10px / 28px 1px no-repeat,
    linear-gradient(180deg, rgba(210,150,150,.22), rgba(210,150,150,0)) left 10px top 10px / 1px 28px no-repeat,

    linear-gradient(270deg, rgba(210,150,150,.22), rgba(210,150,150,0)) right 10px top 10px / 28px 1px no-repeat,
    linear-gradient(180deg, rgba(210,150,150,.22), rgba(210,150,150,0)) right 10px top 10px / 1px 28px no-repeat,

    linear-gradient(90deg, rgba(210,150,150,.22), rgba(210,150,150,0)) left 10px bottom 10px / 28px 1px no-repeat,
    linear-gradient(0deg, rgba(210,150,150,.22), rgba(210,150,150,0)) left 10px bottom 10px / 1px 28px no-repeat,

    linear-gradient(270deg, rgba(210,150,150,.22), rgba(210,150,150,0)) right 10px bottom 10px / 28px 1px no-repeat,
    linear-gradient(0deg, rgba(210,150,150,.22), rgba(210,150,150,0)) right 10px bottom 10px / 1px 28px no-repeat;
}


.button-vote.is-disabled,
.button-recommend.is-disabled {
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 1;
  filter: none !important;
}

.button-chara-toggle.is-disabled {
  width: 160px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%) !important;
  border: 1px solid rgba(255,255,255,.18);
  color: #e8e8e8 !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 14px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.button-chara-toggle.is-disabled::before,
.button-chara-toggle.is-disabled::after {
  content: none !important;
}


/* =========================
 * ギャラリーモーダル
 * ========================= */
.modal-content-gallery {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 120px),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      rgba(0,0,0,0) 1px,
      rgba(0,0,0,0) 14px
    ),
    linear-gradient(
      180deg,
      #101010 0%,
      #050505 100%
    );
  color: #f3f3f3;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 18px 32px rgba(0,0,0,0.55) inset;
}

.gallery-scroll {
  padding-top: 6px;
}

.gallery-item {
  color: #f3f3f3;
  background-color: rgba(20, 20, 20, 0.92);
}

.gallery-media {
  margin: 14px 0 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-text {
  margin-top: 10px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

.gallery-item {
  color: #f3f3f3;
  background-color: rgba(20, 20, 20, 0.92);
  height: auto;
  min-height: 360px;
  justify-content: flex-start;
}

.gallery-item .grid-item-title {
  color: #ffffff;
}

.gallery-item .grid-item-author,
.gallery-item .grid-item-author a {
  color: rgba(255,255,255,0.82);
}

.gallery-media {
  margin: 10px 8px 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.gallery-media-image {
  aspect-ratio: 16 / 9;
  height:  520px;
}

.gallery-media-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-media-tweet {
  padding: 8px;
  overflow: visible;
  background: transparent;
}

.gallery-media-tweet .twitter-tweet {
  margin: 0 auto !important;
}

.gallery-text {
  margin: 10px 12px 4px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

.modal,
#gallery-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.modal.is-active,
#gallery-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1200;
}

.gallery-media-tweet {
  margin: 10px 8px 8px;
  padding: 8px;
  background: transparent;
  overflow: visible;
}

.gallery-media-tweet .twitter-tweet {
  margin: 0 auto !important;
}

.gallery-media-tweet {
  --tweet-base-width: 540;
  --tweet-scale: 1;
  --tweet-height: 520px;

  width: 100%;
  height: var(--tweet-height);
  overflow: hidden;
  position: relative;
  margin: 10px 0px 0px;
  padding: 0;
  background: transparent;
}

.gallery-media-tweet .tweet-scale-wrap {
  position: absolute;
  top: 0;
  left: calc(50%); /* 少し左へ寄せる */
  width: calc(var(--tweet-base-width) * 1px);
  transform: translateX(-50%) scale(var(--tweet-scale));
  transform-origin: top center;
}

.gallery-media-tweet .twitter-tweet {
  width: calc(var(--tweet-base-width) * 1px) !important;
  max-width: none !important;
  margin: 0 !important;
}

.gallery-media-tweet iframe {
  display: block;
  margin: 0 auto !important;
}

/* =========================
 * ギャラリー画像ライトボックス
 * ========================= */

.gallery-media-image img.gallery-zoomable {
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-lightbox.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-image {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 18px 48px rgba(0,0,0,0.7);
  border-radius: 6px;
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  cursor: pointer;
}

.gallery-lightbox-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
}

.gallery-lightbox-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-lightbox-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#gallery-modal .wrapper {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

/* 
*/
.gallery-button-zoomable {
  cursor: zoom-in;
}

.gallery-lightbox-button {
  position: fixed;
  inset: 0;
  z-index: 1300;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-lightbox-button.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 中央のボタン */
.gallery-lightbox-button .button-animation {
  width: 500px;
  height: 500px;
}

/* 閉じるボタン（既存と統一） */
.gallery-lightbox-button-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  cursor: pointer;
}

.gallery-lightbox-button-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
}

.gallery-lightbox-button-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-lightbox-button-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}


.button-gallery-simple-overlay {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 0 20px;
}

.button-gallery-simple-overlay span {
  display: inline-block;
}

.button-gallery-overlay-icon {
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  object-fit: contain;
  transform: translateY(-50%);
}

.button-gallery-overlay-icon-left {
  left: 4px;
}

.button-gallery-overlay-icon-right {
  right: 4px;
}

.button-gallery-overlay-icon {
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  object-fit: contain;
  transform: translateY(-50%) scale(1);
  filter: brightness(1);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.button-gallery-overlay-icon-left {
  left: 1px;
}

.button-gallery-overlay-icon-right {
  right: 1px;
}

.button-gallery-simple-overlay:hover .button-gallery-overlay-icon,
.button-gallery-simple-overlay:focus-visible .button-gallery-overlay-icon,
.button-gallery-overlay-icon:hover {
  transform: translateY(-50%) scale(1.08);
  filter: brightness(1.12);
}

.button-gallery-simple-overlay-sp {
  display: inline-block;
  position: relative;
}



.menu-button-overlay .button-gallery-simple-overlay-sp {
  position: relative;
  display: inline-block;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: px;
  padding-right: 36px;
  line-height: 1;
}

.button-animation {
  width: 620px;  
  height: 650px;

  padding: 0;
  border: none;
  background: transparent;
}


.gallery-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
/*  */


.gallery-media-image {
  display: flex;
  flex-direction: column; /* ←縦並び */
  gap: 8px;               /* ←間隔（任意） */
}

.gallery-media-image img {
  width: 100%;
  height: auto; /* ←重要：潰れ防止 */
}

.bs-scale-wrap {
  position: absolute;
  top: 0;
  width: 95%;
}