@font-face {
    font-family: "Ranbato UI";
    src: url("../フォント/YuseiMagic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Ranbato Title";
    src: url("../フォント/CherryBombOne-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
.support-dialog {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f7ecd8;
    font: 400 20px/1.4 "Ranbato UI", sans-serif;
    overflow: hidden;
}
.support-dialog::backdrop { background: transparent; }
.support-dialog, .support-dialog * { -webkit-touch-callout: default; }
.support-dialog * { box-sizing: border-box; }
.support-filters { position: absolute; pointer-events: none; }
.support-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior: contain;
}
.support-content {
    width: min(100%, 480px);
    min-height: 100%;
    margin: auto;
    padding: max(clamp(44px, 7.6vh, 68px), env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.support-content:focus { outline: none; }
.support-hero { text-align: center; }
.support-party {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 160px;
    margin-bottom: 10px;
}
.support-friend { width: 152px; height: 152px; min-width: 0; object-fit: contain; }
.support-dog { transform: rotate(-7deg); margin-right: -8px; }
.support-cat { transform: rotate(7deg); }
.support-star { position: absolute; width: 26px; height: 26px; object-fit: contain; }
.support-star-left { left: calc(50% - 154px); top: 26px; transform: rotate(-18deg); }
.support-star-right { right: calc(50% - 151px); top: 104px; width: 22px; height: 22px; transform: rotate(15deg); }
.support-hero h1 {
    margin: 0;
    font: 400 clamp(28px, 8.7vw, 40px)/1.2 "Ranbato Title", sans-serif;
    white-space: nowrap;
    text-shadow: 0 2px 0 #304b5b55;
}
.support-actions { display: flex; flex-direction: column; gap: 14px; }
.support-button {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.support-button:focus-visible { outline: 3px solid #fff5dc; outline-offset: 5px; }
.support-button:not(.support-primary)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    /* 9分割で四隅を保ち、中央と直線部分だけを各ボタンのサイズに合わせる。 */
    border: 24px solid transparent;
    border-image: url("../画像/応援フレーム.webp") 100 fill / 24px / 0 stretch;
}
.support-primary { aspect-ratio: 3 / 1; color: #25471a; border-radius: 25px; }
/* 素材自体が3:1。縦横比を保って表示し、枠の角や縁を引き伸ばさない。 */
.support-plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: url(#support-bonus); }
.support-primary-content { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px 18px; }
.support-heart { width: 40px; height: 40px; flex-shrink: 0; color: #4c7831; }
.support-kicker { display: block; font-size: 20px; line-height: 1.25; margin-bottom: 3px; }
.support-primary-label { display: block; font-size: clamp(26px, 7.2vw, 32px); line-height: 1.25; }
.support-dialog:lang(en) .support-primary-label { font-size: clamp(19px, 5.8vw, 28px); white-space: nowrap; }
.support-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.support-socials .support-button {
    flex-direction: column;
    min-height: 146px;
    padding: 14px 10px;
    border-radius: 25px;
}
.support-youtube { color: #7d2723; }
.support-youtube::before { filter: url(#support-bomb); }
.support-x { color: #214e58; }
.support-x::before { filter: url(#support-safe); }
.support-socials svg { width: 40px; height: 32px; margin-bottom: 6px; }
.support-social-name { font-size: 27px; line-height: 1.15; }
.support-social-caption { font-size: 20px; margin-top: 4px; }
.support-more-games {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
    min-height: 132px;
    margin-top: 10px;
    padding: 12px 8px;
    border-radius: 25px;
    color: #354c41;
}
.support-more-character { width: 100%; max-width: 104px; height: 116px; object-fit: contain; justify-self: center; }
.support-more-copy { text-align: center; min-width: 0; }
.support-more-label { display: block; font-size: clamp(22px, 6.15vw, 28px); line-height: 1.4; white-space: pre-line; }
.support-close {
    position: absolute;
    padding: 0;
    color: #000;
    line-height: 1.25;
}
.support-button.support-close::before {
    border: 0;
    border-image: none;
    background: url("../画像/長方形フレーム.webp") center / 100% 100% no-repeat;
}
@media (min-width: 900px) and (min-height: 600px) {
    .support-content { width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 52px; align-items: center; }
    .support-party { height: 224px; margin-bottom: 22px; }
    .support-friend { width: 214px; height: 214px; }
    .support-dog { margin-right: -36px; }
    .support-star-left { left: 6px; top: 16px; width: 34px; height: 34px; }
    .support-star-right { right: 0; top: 124px; width: 26px; height: 26px; }
    .support-hero h1 { font-size: 42px; }
}
@media (max-width: 360px) {
    .support-content { padding-left: 16px; padding-right: 16px; }
    .support-party { height: 142px; }
    .support-friend { width: 136px; height: 136px; }
    .support-star-left { left: -5px; }
    .support-star-right { right: -3px; }
    .support-primary-content { gap: 10px; padding-left: 18px; padding-right: 18px; }
    .support-heart { width: 32px; height: 32px; }
    .support-primary-label { font-size: 24px; }
    .support-kicker { font-size: 17px; }
    .support-more-character { height: 102px; }
    .support-more-label { font-size: 20px; }
}
