
.google-anno-skip.google-anno-sc {
    display: none ;
}

/* ========================
  墓地モーダル関連
=========================== */
.cemetery_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
}

.cemetery_card_list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    min-height: 50vh;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.cemetery_card_list .card-container {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
}

.cemetery_card_list .card-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

.cemetery_card_list .card-menu {
    position: absolute;
    top: 5px;
    left: 5px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
}

.cemetery_card_list .menu-item {
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
}

.cemetery_card_list .menu-item:hover {
    background-color: #f0f0f0;
}

/* ========================
山札モーダル関連
=========================== */
.deck_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.deckModalBox {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.deck_button_box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.deck_card_list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    overflow-y: auto;
    max-height: 70vh;
    width: 100%;
}

.deck_card_list .card-container {
    position: relative;
}

.deck_card_list .card-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

.deck_card_list .card-menu {
    position: absolute;
    top: 5px;
    left: 5px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
}

.deck_card_list .menu-item {
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
}

.deck_card_list .menu-item:hover {
    background-color: #f0f0f0;
}
@media (max-width: 899px) {
    .deckModalBox {
        padding: 2px;
    }
    .deck_card_list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
    
}
/* ========================
全体スタイル
=========================== */
body {
    touch-action: manipulation;
    -webkit-user-drag: none;
    /* iOS Safari & Chrome */
    -webkit-touch-callout: none;
    /* 長押しメニュー禁止（iOS） */
    user-select: none;
    /* テキスト選択禁止 */
    -webkit-user-select: none;
    /* iOS Safari / Chrome */
    -ms-user-select: none;
    /* IE / Edge */
    user-select: none;
    /* 標準対応 */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100%;
}

header {
    position: relative;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 0;
    font-size: 10px;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}



article {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}



.howto p {
    margin: 5px;
    text-align: left;
}
/* ========================
フィールド共通スタイル
=========================== */
.f1,
.f2,
.f3,
.f4,
.hand_tmp {
    height: 200px;
}

@media (max-width: 899px) {

    .f1,
    .f2,
    .f3,
    .f4,
    .hand_tmp {
        height: 130px;
    }
}

.f1 {
    display: flex;
    justify-content: space-between;
    
}
.battle1 {
    flex-grow: 1;
    position: relative;
    width: auto;
    background-color: #006400;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.battle2 {
    flex-grow: 1;
    position: relative;
    width: auto;
    
    background-color: #006400;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.battle3 {
    flex-grow: 1;
    position: relative;
    width: auto;
    
    background-color: #006400;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.f2 {
    width: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield {
    position: relative;
    flex-grow: 1;
    background-color: #006400;
    text-align: center;
    width: auto;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 2px solid white;
}
.shield2 {
    position: relative;
    flex-grow: 1;
    background-color: #006400;
    text-align: center;
    width: auto;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 2px solid white;
}
.shield3 {
    position: relative;
    flex-grow: 1;
    background-color: #006400;
    text-align: center;
    width: auto;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 2px solid white;
}
.deck {
    display: flex;
    position: relative;
    width: 130px;
    height: 190px;
    background-color: #003a00;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: auto;
    border: 2px solid white;
}



.deck img::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, #ffffff, #d4d4d4);
    border-radius: 8px;
    z-index: -1;
}
.cemetery{
    display: flex;
    position: relative;
    width: 130px;
    height: 190px;
    background-color: #003d00;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: auto;
    border: 2px solid white;
}
@media (max-width: 899px) {
    .f2 {
        gap: 3px;
    }

    .shield {
        height: 125px;
        padding: 0;
        width: 60%;
    }

    .deck,
    .cemetery {
        display: flex;
        justify-content: center;
        /* 水平方向中央 */
        align-items: center;
        /* 垂直方向中央 */
        height: 125px;
        width: 100px;
        padding: 0;
        
    }
    .deck .card-container {
        width: 60px;
        height: 90px;
    }
    .deck img {
        width: 60px;
        height: 90px;
    }

    .cemetery img {
        width: 60px;
        height: 90px;
    }
}

.f3 {
    position: relative;
    width: 100%;
    background-color: #006400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hand_box {
    display: flex;
    justify-content: space-between;
    
}

.f4 {
    position: relative;
    width: 70%;
    background-color: #006400;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px  solid white;
}

.hand_tmp {
    position: relative;
    width: 30%;
    background-color: #006400;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.center_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: rgb(255, 255, 255);
    pointer-events: none;
    z-index: 0;
}

/* ========================
カードコンテナ
=========================== */
.card-container {
    width: 120px;
    height: 168px;
    position: relative;
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
}

.back {
    display: block;
}

.front {
    display: none;
}

@media (max-width: 899px) {
    .card-container {
        width: 80px;
        height: 112px;
    }
}

/* ========================
URL入力エリア
=========================== */
.url-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 20px;
}

input[type="text"] {
    padding: 8px;
    font-size: 16px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.url-input-container button {
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

@media (max-width: 899px) {
    .url-input-container {
        height: 50px;
        margin: 10px;
        width: 90%;
    }

    #urlInput {
        width: 60%;
    }

    input[type="text"] {
        font-size: 12px;
        padding: 5px;
    }

    .url-input-container button {
        font-size: 12px;
        padding: 5px;
    }
}

/* ========================
詳細モーダル
=========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* ========================
取得画像表示領域
=========================== */
#response {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    max-width: 100%;
}

#response img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

/* ========================
カードメニュー
=========================== */
.card-menu {
    width: 100px;
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 2px;
    display: none;
    z-index: 9999;
}

.menu-item {
    padding: 5px;
    cursor: pointer;
}

.menu-item:hover {
    background: #f0f0f0;
}

.dragging {
    opacity: 0.5;
    touch-action: none;
}

.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top:0px;
    left: 0px;
}