
:root{
    /* コンセプトカラー */
    --custom-green-vivid:   #3bff00;  /* 鮮やか緑 */
    --custom-green:         #A0E060;  /* 薄緑 */
    --custom-green-dark:    #6BC042;  /* 緑 */
    --custom-purple:        #9301ff;  /* 紫 */

    /* グレースケール */
    --custom-white:         #ffffff;  /* 白 */
    --custom-bg-gray:       #F5F5F5;  /* 背景グレー */
    --custom-gray-light:    #E5E7EB;  /* 薄いグレー */
    --custom-gray-dark:     #AAAAAC;  /* 濃いグレー */
    --custom-gray-mid:      #6B7280;  /* 中グレー (sub text / 補足テキスト) */
    --custom-text-color:    #535353;  /* 黒 (本文用) */
    --custom-dark-soft:     #3b3b3b;  /* やや薄い濃グレー */
    --custom-dark:          #343434;  /* 黒に近いグレー */
    --custom-dark-warm:     #1B1F1A;  /* 黒に近いグリーンブラック */
    --custom-black:         #1A1A1A;  /* 黒系テキスト (見出し向け) */

    /* セマンティック */
    --custom-danger-color:  #D32F2F;  /* danger系赤 */

    /* ページコンテンツの最大幅(全ページ共通) */
    --custom-page-max-width: 800px;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* wordpressデフォルト要素 */
.wp-block-template-part {
    display: none;
}

#wp--skip-link--target {
    margin-top: 0px !important;
}

.wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}

.entry-content.alignfull.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
    margin-top: 0px;
}

.has-global-padding {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.has-global-padding > .alignfull {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

:where(.wp-site-blocks *:focus) {
    outline: none !important;
}

/* 固定ページタイトル */
.wp-block-post-title {
    display: none;
}

:root :where(.is-layout-constrained) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}



/* ------------------------------------------------------------------------------------------------------------------ */
/* 基本css */

html, body {
    background-color: var(--custom-bg-gray);

    font-family: "Noto Sans JP", sans-serif;
    overflow-y: auto;
    scroll-behavior: auto !important;
    position: relative;

    /* オーバースクロール許容 */
    /* androidで閲覧時、スクロールできない状況が稀に発生してしまう */
    overscroll-behavior: auto;
}

html {
  font-size: clamp(14px, 1.2vw, 16px) !important;
}

html {
    background-image: url('images/pc-metallic-bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

body {
    background-color: transparent;
    background-image: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

ul,
ol {
  padding: 0;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}



body {
  height: 100%;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

ul,
ol {
  list-style: none;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

article > * + * {
  margin-top: 1em;
}

input,
button,
textarea,
select {
  font: inherit;
}

img:not([alt]) {
  filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feGaussianBlur stdDeviation="10" /></filter></svg>#filter');
  filter: blur(10px);
}

input,
button,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input[type=checkbox],
input[type=radio] {
  display: none;
}

input[type=submit],
input[type=button],
label,
button,
select {
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

input, button, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    font: inherit;
    outline: none;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* SweetAlert */

.swal2-warning,
.swal2-info,
.swal2-question {
    border-color: var(--custom-purple) !important;
    color: var(--custom-purple) !important;
    height: 60px;
    width: 60px;
    margin: 40px auto 10px !important;
}

.swal2-error {
border-color: var(--custom-purple) !important;
color: var(--custom-purple) !important;
transform: scale(0.8);
}

.swal2-success {
    transform: scale(0.8);
    border-color: var(--custom-purple) !important;
    color: var(--custom-purple) !important;
}

.swal2-error .swal2-x-mark-line-left,
.swal2-error .swal2-x-mark-line-right {
background-color: var(--custom-purple) !important;
}

.swal2-icon-content {
    font-size: 40px !important;
}

div:where(.swal2-icon).swal2-success {
    border-color: var(--custom-purple) !important;
    color: var(--custom-purple) !important;
}

div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
    background-color: var(--custom-purple) !important;
}

div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
    background-color: var(--custom-purple) !important;
}

div:where(.swal2-icon).swal2-success .swal2-success-ring {
    border: .25em solid var(--custom-purple) !important;
}

div:where(.swal2-container) div:where(.swal2-validation-message)::before {
    background-color: var(--custom-purple) !important;
}

/* htmlコンテナ */
#swal2-html-container {
    width: 100%;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    font-size: 1rem;
    color: var(--custom-text-color);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ボタンコンテナ */
.swal2-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin-bottom: 40px;
}

/* エラーOKボタン */
.custom-error-ok-button {
    font-size: 0.875rem;
    background: var(--custom-purple);
    color: var(--custom-white);
    border-radius: 100px;
    width: 120px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 auto;
    display: block;
    position: relative;
}

.custom-ok-button {
    font-size: 0.875rem;
    background: var(--custom-purple);
    color: var(--custom-white);
    border-radius: 100px;
    width: 120px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 auto;
    display: block;
    position: relative;
}

.custom-login-guidance-button {
    font-size: 0.875rem;
    background: var(--custom-purple);
    color: var(--custom-white);
    border-radius: 100px;
    width: 140px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 auto;
    display: block;
    position: relative;
}

.custom-cancel-button {
    font-size: 0.875rem;
    background-color: var(--custom-gray-dark);
    color: var(--custom-white);
    border-radius: 100px;
    width: 120px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 auto;
    display: block;
    position: relative;
}

.custom-danger-button {
    font-size: 0.875rem;
    background-color: var(--custom-danger-color);
    color: var(--custom-white);
    border-radius: 100px;
    width: 120px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 auto;
    display: block;
    position: relative;
}

.custom-close-button {
    all: unset;
    font-size: 1.125rem;
    color: var(--custom-gray-dark);
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.custom-close-button:focus,
.custom-close-button:active {
  outline: none;
  color: var(--custom-gray-dark);
  background: transparent;
  box-shadow: none;
}

/* 今後表示しないチェックボックス */
.custom-not-show-again-checkbox-wrapper {
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    display: inline-block;
    margin-top: 20px;
}

.custom-not-show-again-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-not-show-again-checkbox-wrapper label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--custom-gray-light);
    border-radius: 4px;
    background-color: var(--custom-white);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-not-show-again-checkbox-wrapper label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 6px;
    height: 12px;
    border: solid var(--custom-white);
    border-width: 0 2px 2px 0;
    transition: transform 0.3s ease;
}

.custom-not-show-again-checkbox-wrapper input[type="checkbox"]:checked + label::before {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
}

.custom-not-show-again-checkbox-wrapper input[type="checkbox"]:checked + label::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* 全画面 */
.custom-swal-popup-wide {
    width: 100% !important;
    max-width: 600px !important;
    height: auto;
    display: grid !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* 画像用 */
.custom-swal-popup-wide img.swal2-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    margin: 0 !important;
    display: block !important;
}

/* 黒背景 */
.custom-swal-container-dark.swal2-backdrop-show {
    background: rgba(0, 0, 0, 1) !important;
}

div:where(.swal2-container) div:where(.swal2-footer) {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.custom-swal-loader {
    width: 28px !important;
    height: 28px !important;
    border: 3px solid rgba(0, 0, 0, 0.12) !important;
    border-top-color: var(--custom-purple) !important;
    border-radius: 50% !important;
    animation: custom-swal-loader-spin 0.8s linear infinite !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

@keyframes custom-swal-loader-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* ------------------------------------------------------------------------------------------------------------------ */
/* サイトツアー(driverjs) */

.driver-popover {
    color: var(--custom-text-color) !important;
}

.driver-popover-close-btn {
    color: var(--custom-gray-dark) !important;
}

.driver-popover-title {
    font-size: 1.125rem !important;
}

.driver-popover-description {
    font-size: 0.875rem !important;
}

.driver-popover-progress-text {
    font-size: 0.75rem !important;
    color: var(--custom-text-color) !important;
}

.driver-popover-next-btn {
    background-color: var(--custom-white);
    color: var(--custom-purple) !important;
    font-size: 0.75rem !important;
    border: 1px solid var(--custom-purple) !important;
    border-radius: 999px !important;
}

.driver-popover-prev-btn {
    background-color: var(--custom-white);
    color: var(--custom-gray-dark) !important;
    font-size: 0.75rem !important;
    border: 1px solid var(--custom-gray-dark) !important;
    border-radius: 999px !important;
}


/* ------------------------------------------------------------------------------------------------------------------ */
/* 固定ヘッター / フッター */

:root{
    --fixed-header-height: 4rem;
    --fixed-footer-height: 4.8rem;
}

@media (display-mode: standalone)  {
  :root{
    --fixed-footer-height: 6rem;
  }
}

.fixed-main {
    padding-top: calc(var(--fixed-header-height));
    padding-bottom: calc(var(--fixed-footer-height));
    box-sizing: border-box;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--custom-page-max-width);
    height: var(--fixed-header-height);
    display: flex;
    align-items: center;
    background: var(--custom-green-vivid);
    z-index: 1000;
    box-sizing: border-box;
    padding-inline: 1.25rem;
}

.fixed-header,
.fixed-header * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.fixed-header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fixed-header-logo {
    height: 1.75rem;
    width: auto;
    display: block;
    filter:
        drop-shadow( 1px  1px 0  var(--custom-purple))
        drop-shadow(-1px  1px 0  var(--custom-purple))
        drop-shadow( 1px -1px 0  var(--custom-purple))
        drop-shadow(-1px -1px 0  var(--custom-purple));
}

.fixed-header-hamburger {
  cursor: pointer;
  display: block;
  height: 2.375rem;
  padding-inline: 0.75rem;
  position: absolute;
  right: 0.9375rem;
  text-align: center;
  top: 55%;
  transform: translateY(-50%);
  width: 2.875rem;
  z-index: 1050;
}

.fixed-header-hamburger__line {
  background: var(--custom-dark-soft);
  display: block;
  height: 1.5px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: 0.3s ease-in-out;
  width: 2.125rem;
}

.fixed-header-hamburger__line:nth-of-type(1) {
  top: 0rem;
}

.fixed-header-hamburger__line:nth-of-type(2) {
  top: 0.5rem;
}

.fixed-header-hamburger__line:nth-of-type(3) {
  top: 1rem;
}

.fixed-header-hamburger__text {
  bottom: 0;
  color: var(--custom-dark-soft);
  font-size: 0.75rem;
  font-weight: 500;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: 0.3s;
}

body.drawer-open .fixed-header-hamburger__line:nth-of-type(1) {
  top: 0.5rem;
  transform: translateX(-50%) rotate(45deg);
}

body.drawer-open .fixed-header-hamburger__line:nth-of-type(2) {
  opacity: 0;
}

body.drawer-open .fixed-header-hamburger__line:nth-of-type(3) {
  top: 0.5rem;
  transform: translateX(-50%) rotate(-45deg);
}

body.drawer-open .fixed-header-hamburger__text {
  opacity: 0;
}

/* 全ページ共通フッター（Figma デザイン）。位置のみ TOP=上部固定 / 他=下部固定で分岐。 */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--custom-page-max-width);
    min-height :var(--fixed-footer-height);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--custom-green-vivid);
    z-index: 500;
    box-sizing: border-box;
    border: none;
    padding-block: 0.5rem;
}


.fixed-footer-divider {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0.5rem;
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    pointer-events: none;
}

.fixed-footer,
.fixed-footer * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.fixed-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding-block: 5px;
}

.fixed-footer-inner.fixed-footer-nav{
    width: 100%;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-around;
}

.fixed-footer-item{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--custom-black);
    min-width: 72px;
}

.fixed-footer-icon-wrap{
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 共通サイズ・表示設定 */
.fixed-footer-icon-img{
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    margin: 0 auto;
}

/* 個別調整：
   各アイコンの色・サイズ・hover 効果などを変えたい場合は、
   .fixed-footer-icon-img--{search|sns|reel|talk|mypage} を追加して上書きする。
   現状はマイページのみサイズを拡大している。 */

/* マイページ：元画像のアイコン部分が小さめなので表示サイズを拡大 */
.fixed-footer-icon-img--mypage {
    width: 3.25rem;
    height: 3.25rem;
}

.fixed-footer-talk-badge{
    position: absolute;
    top: -0.5rem;
    left: calc(50% + 0.75rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--custom-purple);
    color: var(--custom-white);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    pointer-events: none;
}

.fixed-footer-talk-badge[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* ドロワー */

.fixed-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
}

.fixed-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--custom-page-max-width);
    height: 100dvh;
    background: var(--custom-black);
    z-index: 950;
    display: block;
    opacity: 0;
    visibility: hidden;
}

.fixed-drawer-close {
    cursor: pointer;
    display: block;
    height: 2.375rem;
    width: 2.875rem;
    position: absolute;
    right: 0.9375rem;
    top: calc(var(--fixed-header-height) * 0.55);
    transform: translateY(-50%);
    z-index: 960;
}

.fixed-drawer__inner {
    height: 100%;
    padding: calc(var(--fixed-header-height) + 1.25rem) 2.5rem 2.3125rem;
    overflow-y: auto;
    width: 100%;
    max-width: var(--custom-page-max-width);
    margin: 0 auto;
}

.fixed-drawer__headline {
    display: flex;
    gap: 1.25rem;
}

.fixed-drawer__headline__en {
    color: var(--custom-white);
    font-size: 2.1875rem;
    font-weight: 500;
    line-height: 1;
}

.fixed-drawer__headline__ja {
    color: var(--custom-green-vivid);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.6666666667;
    margin-top: 0.8125rem;
}

.fixed-drawer__list {
    margin-top: 2.3125rem;
}

.fixed-drawer__item {
    border-bottom: 1px solid var(--custom-gray-dark);
}

.fixed-drawer__link {
    display: block;
    padding-block: 1rem 1.125rem;
    position: relative;
}

.fixed-drawer__link-title {
    color: var(--custom-white);
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3333333333;
}

.fixed-drawer__link::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-top: 1.5px solid var(--custom-green-vivid);
    border-right: 1.5px solid var(--custom-green-vivid);
    transform: translateY(-50%) rotate(45deg);
    box-sizing: border-box;
}

.fixed-drawer__btnwrap {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.fixed-drawer__btn_logout {
    position: relative;
    text-align: center;
    background-color: transparent;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto;
    border-radius: 3.125rem;
    font-size: 1rem;
    padding: 0.75rem;
    color: var(--custom-green-vivid);
    width: 280px;
    height: 45px;
    box-sizing: border-box;
    border: solid 1px var(--custom-green-vivid);
}

.fixed-drawer__btn_logout::after {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    border-bottom: 1px solid var(--custom-green-vivid);
    border-left: 1px solid var(--custom-green-vivid);
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

.fixed-drawer__btn_register {
    position: relative;
    text-align: center;
    background-color: var(--custom-green-vivid);
    border: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto;
    border-radius: 3.125rem;
    font-size: 1rem;
    padding: 0.75rem;
    color: var(--custom-black);
    width: 280px;
    height: 45px;
    box-sizing: border-box;
}

.fixed-drawer__btn_register::after {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    border-bottom: 1px solid var(--custom-black);
    border-left: 1px solid var(--custom-black);
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

.fixed-drawer__btn_login {
    position: relative;
    text-align: center;
    background-color: transparent;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto;
    border-radius: 3.125rem;
    font-size: 1rem;
    padding: 0.75rem;
    color: var(--custom-green-vivid);
    width: 280px;
    height: 45px;
    box-sizing: border-box;
    border: solid 1px var(--custom-green-vivid);
}

.fixed-drawer__btn_login::after {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    border-bottom: 1px solid var(--custom-green-vivid);
    border-left: 1px solid var(--custom-green-vivid);
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}


.fixed-drawer__btn_cancel-membership {
    color: var(--custom-gray-dark);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: underline;
}


/* ------------------------------------------------------------------------------------------------------------------ */
/* ローディングモーダル */

html.no-scroll,
body.no-scroll {
    overflow: hidden;
    height: 100%;
    width: 100%;
    touch-action: none;
}
 
.custom-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    touch-action: none;
}


.custom-loading-modal,
.custom-loading-modal * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-loading-modal-content {
    width: 100%;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 5px;
    justify-content: center;
    background: var(--custom-black);
}

.custom-loading-wrapper{
    width:200px;
    height:60px;
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
}

.custom-loading-circle{
    width:20px;
    height:20px;
    position: absolute;
    border-radius: 50%;
    background-color: var(--custom-green-vivid);
    left:15%;
    transform-origin: 50%;
    animation: circle .5s alternate infinite ease;
}

@keyframes circle{
    0%{
        top:60px;
        height:5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }
    40%{
        height:20px;
        border-radius: 50%;
        transform: scaleX(1);
    }
    100%{
        top:0%;
    }
}
.custom-loading-circle:nth-child(2){
    left:45%;
    animation-delay: .2s;
}
.custom-loading-circle:nth-child(3){
    left:auto;
    right:15%;
    animation-delay: .3s;
}
.custom-loading-shadow{
    width:20px;
    height:4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top:62px;
    transform-origin: 50%;
    z-index: -1;
    left:15%;
    filter: blur(1px);
    animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
    0%{
        transform: scaleX(1.5);
    }
    40%{
        transform: scaleX(1);
        opacity: .7;
    }
    100%{
        transform: scaleX(.2);
        opacity: .4;
    }
}
.custom-loading-shadow:nth-child(4){
    left: 45%;
    animation-delay: .2s
}
.custom-loading-shadow:nth-child(5){
    left:auto;
    right:15%;
    animation-delay: .3s;
}
.custom-loading-wrapper span{
    position: absolute;
    top:75px;
    font-size: 20px;
    letter-spacing: 12px;
    color: var(--custom-green-vivid);
    left:15%;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* ボトムシート */

html.custom-common-bottom-sheet-lock,
body.custom-common-bottom-sheet-lock {
    overflow: hidden;
}

.custom-common-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(83, 83, 83, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.custom-common-bottom-sheet-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-common-bottom-sheet {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 1001;
}

.custom-common-bottom-sheet.is-open {
    pointer-events: auto;
}

.custom-common-bottom-sheet-inner {
    position: relative;
    width: min(var(--custom-page-max-width), 100%);
    max-height: 92vh;
    background: var(--custom-white);
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -12px 36px rgba(83, 83, 83, 0.16);
    transform: translateY(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    overflow: hidden;
}

.custom-common-bottom-sheet.is-open .custom-common-bottom-sheet-inner {
    transform: translateY(0);
    pointer-events: auto;
}

.custom-common-bottom-sheet-handle {
    width: 48px;
    height: 5px;
    border-radius: 9999px;
    background: var(--custom-gray-light);
    margin: 0.75rem auto 0;
    flex-shrink: 0;
}

.custom-common-bottom-sheet-close {
    position: absolute;
    top: 0.875rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: var(--custom-bg-gray);
    cursor: pointer;
    z-index: 2;
}

.custom-common-bottom-sheet-close::before,
.custom-common-bottom-sheet-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--custom-text-color);
    border-radius: 9999px;
}

.custom-common-bottom-sheet-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-common-bottom-sheet-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.custom-common-bottom-sheet-header {
    position: relative;
    padding: 1rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--custom-gray-light);
    flex-shrink: 0;
}

.custom-common-bottom-sheet-title {
    font-size: 1rem;
    color: var(--custom-text-color);
    margin: 0;
}

.custom-common-bottom-sheet-body {
    position: relative;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    min-height: 240px;
}

.custom-common-bottom-sheet-body.is-loading {
    visibility: hidden;
    pointer-events: none;
}

.custom-common-bottom-sheet-footer {
    display: none;
    flex-shrink: 0;
    border-top: 1px solid var(--custom-gray-light);
    background: var(--custom-white);
    padding: 0.875rem 1rem 1rem;
}

@media (display-mode: standalone) {
    .custom-common-bottom-sheet-footer {
        padding-bottom: 2.2rem;
    }
}

.custom-common-bottom-sheet-footer:not(:empty) {
    display: block;
}

.custom-common-bottom-sheet-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--custom-black);
    z-index: 10;
}

.custom-common-bottom-sheet-loading.is-active {
    display: block;
}

.custom-common-bottom-sheet-loading-wrapper {
    width: 200px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.custom-common-bottom-sheet-loading-circle {
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 50%;
    background-color: var(--custom-green-vivid);
    left: 15%;
    transform-origin: 50%;
    animation: custom-common-bottom-sheet-circle .5s alternate infinite ease;
}

@keyframes custom-common-bottom-sheet-circle {
    0% {
        top: 60px;
        height: 5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }
    40% {
        height: 20px;
        border-radius: 50%;
        transform: scaleX(1);
    }
    100% {
        top: 0%;
    }
}

.custom-common-bottom-sheet-loading-circle:nth-child(2) {
    left: 45%;
    animation-delay: .2s;
}

.custom-common-bottom-sheet-loading-circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}

.custom-common-bottom-sheet-loading-shadow {
    width: 20px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top: 62px;
    transform-origin: 50%;
    z-index: -1;
    left: 15%;
    filter: blur(1px);
    animation: custom-common-bottom-sheet-shadow .5s alternate infinite ease;
}

@keyframes custom-common-bottom-sheet-shadow {
    0% {
        transform: scaleX(1.5);
    }
    40% {
        transform: scaleX(1);
        opacity: .7;
    }
    100% {
        transform: scaleX(.2);
        opacity: .4;
    }
}

.custom-common-bottom-sheet-loading-shadow:nth-child(4) {
    left: 45%;
    animation-delay: .2s;
}

.custom-common-bottom-sheet-loading-shadow:nth-child(5) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}

.custom-common-bottom-sheet-loading-wrapper span {
    position: absolute;
    top: 75px;
    font-size: 20px;
    letter-spacing: 12px;
    color: var(--custom-green-vivid);
    left: 15%;
}


/* ------------------------------------------------------------------------------------------------------------------ */
/* モーダル */

html.custom-common-modal-lock,
body.custom-common-modal-lock {
    overflow: hidden;
}

.custom-common-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(83, 83, 83, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.custom-common-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-common-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
    z-index: 1001;
}

.custom-common-modal.is-open {
    pointer-events: auto;
}

.custom-common-modal-inner {
    position: relative;
    width: min(var(--custom-page-max-width), 100%);
    max-height: calc(100dvh - 2rem);
    background: var(--custom-white);
    border-radius: 1.5rem;
    box-shadow: 0 12px 36px rgba(83, 83, 83, 0.16);
    transform: translateY(0.75rem) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    overflow: hidden;
}

.custom-common-modal.is-open .custom-common-modal-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.custom-common-modal-close {
    position: absolute;
    top: 0.875rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: var(--custom-bg-gray);
    cursor: pointer;
    z-index: 2;
}

.custom-common-modal-close::before,
.custom-common-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--custom-text-color);
    border-radius: 9999px;
}

.custom-common-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-common-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.custom-common-modal-header {
    position: relative;
    padding: 1rem 3.75rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--custom-gray-light);
    flex-shrink: 0;
}

.custom-common-modal-title {
    font-size: 1rem;
    color: var(--custom-text-color);
    margin: 0;
}

.custom-common-modal-body {
    position: relative;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

.custom-common-modal-body.is-loading {
    visibility: hidden;
    pointer-events: none;
}

.custom-common-modal-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--custom-black);
    z-index: 10;
}

.custom-common-modal-loading.is-active {
    display: block;
}

.custom-common-modal-loading-wrapper {
    width: 200px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.custom-common-modal-loading-circle {
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 50%;
    background-color: var(--custom-green-vivid);
    left: 15%;
    transform-origin: 50%;
    animation: custom-common-modal-loading-circle .5s alternate infinite ease;
}

@keyframes custom-common-modal-loading-circle {
    0% {
        top: 60px;
        height: 5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }
    40% {
        height: 20px;
        border-radius: 50%;
        transform: scaleX(1);
    }
    100% {
        top: 0%;
    }
}

.custom-common-modal-loading-circle:nth-child(2) {
    left: 45%;
    animation-delay: .2s;
}

.custom-common-modal-loading-circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}

.custom-common-modal-loading-shadow {
    width: 20px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top: 62px;
    transform-origin: 50%;
    z-index: -1;
    left: 15%;
    filter: blur(1px);
    animation: custom-common-modal-loading-shadow .5s alternate infinite ease;
}

@keyframes custom-common-modal-loading-shadow {
    0% {
        transform: scaleX(1.5);
    }
    40% {
        transform: scaleX(1);
        opacity: .7;
    }
    100% {
        transform: scaleX(.2);
        opacity: .4;
    }
}

.custom-common-modal-loading-shadow:nth-child(4) {
    left: 45%;
    animation-delay: .2s;
}

.custom-common-modal-loading-shadow:nth-child(5) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}

.custom-common-modal-loading-wrapper span {
    position: absolute;
    top: 75px;
    font-size: 20px;
    letter-spacing: 12px;
    color: var(--custom-green-vivid);
    left: 15%;
}

.custom-common-modal-footer {
    display: none;
    flex-shrink: 0;
    border-top: 1px solid var(--custom-gray-light);
    background: var(--custom-white);
    padding: 0.875rem 1rem 1rem;
}

.custom-common-modal-footer:not(:empty) {
    display: block;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 固定ページ */

.custom-page {
    width: 100%;
    max-width: var(--custom-page-max-width);
    min-height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--custom-white);
    font-weight: 500;
    padding-inline: 1.25rem;
}

.custom-page,
.custom-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-page-content {
    height: 100%;
    width: 100%;
    margin: 0 auto;
}

.custom-page-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--custom-text-color);
    text-align: center;
    margin-top: 2.5rem;
    letter-spacing: 0.04em;
}

.custom-page-title::after {
    content: "";
    display: block;
    width: 4rem;
    height: 2px;
    margin: 0.625rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--custom-green-vivid), var(--custom-purple));
}

.custom-page-error-message {
    width: 100%;
    margin-top: 2.5rem;
    color: var(--custom-gray-dark);
    font-size: 1rem;
    text-align: center;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* PC余白装飾 */

/* デフォルト（モバイル幅）では装飾要素を非表示。背景だけ全画面共通で出す。 */
.custom-pc-decoration {
    display: none;
}


@media (min-width: 1024px) {

    .custom-pc-decoration {
        display: contents;
    }

    .custom-pc-decoration-logo {
        position: fixed;
        top: 1rem;
        left: 2rem;
        width: 12rem;
        height: 2rem;
        object-fit: contain;
        object-position: center;
        opacity: 0.7;
        pointer-events: none;
        z-index: 2;
    }

    .custom-pc-decoration-left {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: calc((100vw - var(--custom-page-max-width)) / 2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8rem;
        pointer-events: none;
        z-index: 5;
    }

    .custom-pc-decoration-orb {
        width: 9rem;
        max-width: 80%;
        height: auto;
        animation: custom-pc-float 4.5s ease-in-out infinite;
    }

    .custom-pc-decoration-cast {
        position: fixed;
        left: 0;
        right: 0;
        top: 50%;
        width: 100vw;
        height: auto;
        transform: translateY(-50%);
        opacity: 0.5;
        pointer-events: none;
        z-index: -1;
    }

    .custom-pc-decoration-star {
        width: 9rem;
        max-width: 80%;
        height: auto;
        animation: custom-pc-float 5.5s ease-in-out infinite reverse;
    }

    @keyframes custom-pc-float {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-1.5rem); }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-pc-decoration-orb,
        .custom-pc-decoration-star {
            animation: none;
        }
    }

    .custom-pc-decoration-nav {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: calc((100vw - var(--custom-page-max-width)) / 2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        pointer-events: auto;
        z-index: 5;
    }

    .custom-pc-decoration-nav a {
        font-family: 'Montserrat', 'Inter', sans-serif;
        font-size: 2.25rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        color: var(--custom-white);
        text-decoration: none;
        text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
        transition: color 150ms ease, transform 150ms ease;
    }

    .custom-pc-decoration-nav a:hover,
    .custom-pc-decoration-nav a:focus-visible {
        color: var(--custom-purple);
        transform: scale(1.05);
        outline: none;
    }
}
