/* =====================================================
   ⚽ サッカー
   sports-soccer.css

   ・サッカー編集画面
   ・サッカー結果画面
   ・sports-baseball.css の共通設計を邪魔しない
===================================================== */


/* =====================================================
   ⚽ 編集画面全体
===================================================== */

.soccer-edit-screen {

    width: min(100%, 700px);

    margin: 0 auto;

    padding: 20px 16px 32px;

    box-sizing: border-box;

}


/* =====================================================
   ⚽ 編集画面タイトル
===================================================== */

.soccer-edit-screen h2 {

    margin: 0 0 22px;

    text-align: center;

    font-size: 21px;

    font-weight: 800;

}


/* =====================================================
   ⚽ チーム設定
===================================================== */

.soccer-team-setting {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 20px;

}


.soccer-team-setting-row {

    display: grid;

    grid-template-columns:
        82px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 10px;

    min-height: 44px;

}


.soccer-team-setting-row
+ .soccer-team-setting-row {

    grid-template-columns:
        82px
        minmax(0, 1fr);

}


.soccer-team-setting-row label {

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

}


.soccer-team-setting-row input,
.soccer-team-setting-row select {

    width: 100%;

    min-height: 42px;

    padding: 8px 11px;

    box-sizing: border-box;

    border: 1px solid rgba(128,128,128,0.3);

    border-radius: 10px;

    background: transparent;

    font: inherit;

    font-size: 14px;

}


.soccer-team-setting-row input[readonly] {

    opacity: 0.8;

}


.soccer-team-setting-row select {

    width: auto;

    min-width: 100px;

}


/* =====================================================
   ⚽ 試合ボード
   ※結果画面では枠をなくす
===================================================== */

.soccer-match-board {

    width: 100%;

    margin-bottom: 24px;

    padding: 18px 12px 16px;

    box-sizing: border-box;

    border: none;

    border-radius: 0;

    background: transparent;

}


/* =====================================================
   ⚽ ホーム・アウェイ＋チーム名
===================================================== */

.soccer-match-header {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        40px
        minmax(0, 1fr);

    align-items: end;

    width: 100%;

}


.soccer-match-column {

    min-width: 0;

    text-align: center;

}


.soccer-match-side {

    display: block;

    margin-bottom: 4px;

    font-size: 13px;

    font-weight: 600;

    opacity: 0.7;

    text-align: center;

}


.soccer-match-team-name {

    min-height: 32px;

    padding: 0 4px;

    box-sizing: border-box;

    font-size: 26px;

    line-height: 1.25;

    font-weight: 900;

    text-align: center;

    overflow-wrap: anywhere;

    word-break: break-word;

}


/* =====================================================
   ⚽ 中央の －
===================================================== */

.soccer-match-separator {

    text-align: center;

    font-size: 28px;

    line-height: 1;

    font-weight: 800;

    opacity: 0.7;

}


/* =====================================================
   ⚽ 自動計算スコア
   チーム名の真下に配置
===================================================== */

.soccer-live-score-row {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        40px
        minmax(0, 1fr);

    align-items: center;

    width: 100%;

    margin-top: 10px;

}


.soccer-live-score {

    text-align: center;

    font-size: 48px;

    line-height: 1;

    font-weight: 900;

}


.soccer-score-dash {

    text-align: center;

    font-size: 28px;

    line-height: 1;

    font-weight: 800;

    opacity: 0.65;

}


/* =====================================================
   ⚽ 通常得点入力
===================================================== */

.soccer-score-section {

    width: 100%;

    margin-bottom: 18px;

}


.soccer-score-row {

    display: grid;

    grid-template-columns:
        60px
        minmax(0, 1fr)
        28px
        minmax(0, 1fr);

    align-items: center;

    gap: 8px;

    min-height: 50px;

    margin-bottom: 8px;

}


.soccer-score-row:last-child {

    margin-bottom: 0;

}


.soccer-score-row label {

    font-size: 14px;

    font-weight: 700;

}


.soccer-score-row input {

    width: 100%;

    min-height: 44px;

    padding: 7px 8px;

    box-sizing: border-box;

    border: 1px solid rgba(128,128,128,0.32);

    border-radius: 10px;

    background: transparent;

    font: inherit;

    font-size: 18px;

    font-weight: 700;

    text-align: center;

}


.soccer-score-row span {

    text-align: center;

    font-size: 18px;

    font-weight: 700;

    opacity: 0.65;

}


/* =====================================================
   ⚽ 延長
===================================================== */

.soccer-extra-section,
.soccer-penalty-section {

    width: 100%;

    margin-top: 18px;

    margin-bottom: 18px;

    padding-top: 15px;

    border-top: 1px solid rgba(128,128,128,0.18);

}


.soccer-checkbox-row {

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 38px;

    margin-bottom: 10px;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

}


.soccer-checkbox-row input {

    width: 20px;

    height: 20px;

    margin: 0;

    cursor: pointer;

}


.soccer-extra-time-area,
.soccer-penalty-area {

    width: 100%;

}


/* =====================================================
   ⚽ PK
===================================================== */

.soccer-penalty-section {

    margin-bottom: 22px;

}


/* =====================================================
   ⚽ 場所・メモ
===================================================== */

.soccer-info-section {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 16px;

}


.soccer-info-section label {

    font-size: 14px;

    font-weight: 800;

}


.soccer-info-section input,
.soccer-info-section textarea {

    width: 100%;

    padding: 10px 12px;

    box-sizing: border-box;

    border: 1px solid rgba(128,128,128,0.28);

    border-radius: 10px;

    background: transparent;

    font: inherit;

    font-size: 14px;

}


.soccer-info-section input {

    min-height: 44px;

}


.soccer-info-section textarea {

    min-height: 100px;

    resize: vertical;

    line-height: 1.6;

}


/* =====================================================
   ⚽ 編集ボタン
===================================================== */

/* =====================================================
   ⚽ 編集ボタン
===================================================== */

.soccer-edit-buttons {

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 10px;

    width: 100%;

    max-width: 420px;

    margin: 24px auto 0;

}


.soccer-edit-buttons button {

    width: 100%;

    min-height: 54px;

    padding: 12px 16px;

    box-sizing: border-box;

    border: 1px solid rgba(128,128,128,0.28);

    border-radius: 11px;

    background: rgba(128,128,128,0.12);

    color: inherit;

    font: inherit;

    font-size: 18px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        background 0.15s ease;

}


@media (hover: hover) and (pointer: fine) {

    .soccer-edit-buttons button:hover {

        background: rgba(128,128,128,0.20);

        opacity: 1;

    }

}

.soccer-edit-buttons button:active {

    transform: scale(0.97);

}


/* =====================================================
   ⚽ 結果画面全体
===================================================== */

.sports-detail-screen {

    width: 100%;

    min-height: 100vh;

    box-sizing: border-box;

}


/* =====================================================
   ⚽ 結果内容
===================================================== */

.soccer-game-view {

    width: min(100%, 700px);

    margin: 0 auto;

    padding: 20px 16px 32px;

    box-sizing: border-box;

}


/* =====================================================
   ⚽ 試合日
===================================================== */

.soccer-view-date {

    text-align: center;

    font-size: 18px;

    font-weight: 800;

    margin-bottom: 20px;

    opacity: 0.9;

}


/* =====================================================
   ⚽ 対戦カード
===================================================== */

.soccer-view-match {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap: 12px;

    padding: 20px 14px;

    margin-bottom: 20px;

    border: none;

    border-radius: 0;

    background: transparent;

    box-sizing: border-box;

}


/* =====================================================
   ⚽ チーム名
===================================================== */

.soccer-view-team {

    min-width: 0;

    text-align: center;

    font-size: 26px;

    line-height: 1.25;

    font-weight: 900;

    overflow-wrap: anywhere;

    word-break: break-word;

}


.soccer-view-team small {

    display: none;

}


/* =====================================================
   ⚽ 最終スコア
===================================================== */

.soccer-view-final {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    white-space: nowrap;

}


.soccer-view-final strong {

    min-width: 42px;

    text-align: center;

    font-size: 48px;

    line-height: 1;

    font-weight: 900;

}


.soccer-view-final span {

    font-size: 28px;

    font-weight: 800;

    opacity: 0.7;

}


/* =====================================================
   ⚽ スコアボード
   結果画面では枠をなくす
===================================================== */

.soccer-view-scoreboard {

    width: 100%;

    margin-bottom: 20px;

    border: none;

    border-radius: 0;

    overflow: visible;

    box-sizing: border-box;

}


/* =====================================================
   ⚽ 各スコア行
===================================================== */

.soccer-view-score-row {

    display: grid;

    grid-template-columns:
        minmax(90px, 1fr)
        65px
        32px
        65px;

    align-items: center;

    min-height: 58px;

    padding: 9px 12px;

    box-sizing: border-box;

    border-bottom: none;

}


/* =====================================================
   ⚽ 前半・後半・延長・PK
===================================================== */

.soccer-view-period {

    font-size: 17px;

    font-weight: 800;

}


.soccer-view-score-row > strong {

    text-align: center;

    font-size: 24px;

    line-height: 1;

    font-weight: 900;

}


.soccer-view-score-row > span {

    text-align: center;

    font-size: 20px;

    font-weight: 700;

    opacity: 0.65;

}


/* =====================================================
   ⚽ 計
===================================================== */

.soccer-view-score-row.total {

    min-height: 68px;

    background: transparent;

}


.soccer-view-score-row.total .soccer-view-period {

    font-size: 18px;

    font-weight: 900;

}


.soccer-view-score-row.total strong {

    font-size: 30px;

}


/* =====================================================
   ⚽ 結果
===================================================== */

.soccer-view-result {

    width: fit-content;

    margin: 0 auto 20px;

    padding: 10px 22px;

    border-radius: 999px;

    font-size: 18px;

    font-weight: 900;

    text-align: center;

    border: 1px solid rgba(128,128,128,0.25);

    background: rgba(128,128,128,0.08);

}


/* =====================================================
   ⚽ 会場
===================================================== */

.soccer-view-info {

    padding: 13px 15px;

    margin-bottom: 14px;

    border-radius: 12px;

    border: 1px solid rgba(128,128,128,0.20);

    font-size: 15px;

    overflow-wrap: anywhere;

}


/* =====================================================
   ⚽ メモ
===================================================== */

.soccer-view-memo {

    padding: 15px;

    margin-bottom: 20px;

    border-radius: 12px;

    border: 1px solid rgba(128,128,128,0.20);

    box-sizing: border-box;

}


.soccer-view-memo > div {

    margin-bottom: 8px;

    font-size: 15px;

    font-weight: 800;

}


.soccer-view-memo p {

    margin: 0;

    font-size: 15px;

    line-height: 1.7;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

}


/* =====================================================
   ⚽ 結果画面ボタン
===================================================== */

/* =====================================================
   ⚽ 結果画面ボタン
   編集
   削除
   閉じる
   縦3つ
===================================================== */

.soccer-view-buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;

    max-width: 420px;

    margin: 24px auto 0;

}


.soccer-view-buttons button {

    width: 100%;

    min-height: 54px;

    padding: 12px 16px;

    box-sizing: border-box;

    border: 1px solid rgba(128,128,128,0.28);

    border-radius: 11px;

    background: rgba(128,128,128,0.12);

    color: inherit;

    font: inherit;

    font-size: 18px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        background 0.15s ease;

}


.soccer-view-buttons button:hover {

    background: rgba(128,128,128,0.20);

    opacity: 1;

}


.soccer-view-buttons button:active {

    transform: scale(0.97);

}


/* =====================================================
   ⚽ PK入力欄
===================================================== */

.soccer-penalty-area .soccer-score-row {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

}


.soccer-penalty-area .soccer-score-row input {

    width: 50%;

    max-width: 120px;

    box-sizing: border-box;

    text-align: center;

}


.soccer-penalty-area .soccer-score-row span {

    flex: 0 0 auto;

}


/* =====================================================
   📱 スマートフォン
===================================================== */

@media (max-width: 600px) {

    .soccer-edit-screen {

        padding:
            16px 12px 28px;

    }


    .soccer-edit-screen h2 {

        margin-bottom: 18px;

        font-size: 20px;

    }


    .soccer-team-setting-row {

        grid-template-columns:
            72px
            minmax(0, 1fr)
            auto;

        gap: 7px;

    }


    .soccer-team-setting-row
    + .soccer-team-setting-row {

        grid-template-columns:
            72px
            minmax(0, 1fr);

    }


    .soccer-team-setting-row label {

        font-size: 13px;

    }


    .soccer-team-setting-row select {

        min-width: 88px;

    }


    /* ---------------------------------
       試合ボード
    --------------------------------- */

    .soccer-match-board {

        padding:
            14px 4px 12px;

        margin-bottom: 18px;

    }


    .soccer-match-header {

        grid-template-columns:
            minmax(0, 1fr)
            30px
            minmax(0, 1fr);

    }


    .soccer-match-team-name {

        font-size: 23px;

    }


    .soccer-match-separator {

        font-size: 23px;

    }


    .soccer-live-score-row {

        grid-template-columns:
            minmax(0, 1fr)
            30px
            minmax(0, 1fr);

        margin-top: 8px;

    }


    .soccer-live-score {

        font-size: 42px;

    }


    .soccer-score-dash {

        font-size: 23px;

    }


    /* ---------------------------------
       編集スコア
    --------------------------------- */

    .soccer-score-row {

        grid-template-columns:
            48px
            minmax(0, 1fr)
            22px
            minmax(0, 1fr);

        gap: 6px;

    }


    .soccer-score-row label {

        font-size: 13px;

    }


    .soccer-score-row input {

        min-height: 43px;

        font-size: 17px;

    }


    .soccer-score-row span {

        font-size: 17px;

    }


    /* ---------------------------------
       結果画面
    --------------------------------- */

    .soccer-game-view {

        padding:
            16px 12px 28px;

    }


    .soccer-view-date {

        font-size: 17px;

        margin-bottom: 16px;

    }


    .soccer-view-match {

        gap: 6px;

        padding:
            12px 4px 16px;

        margin-bottom: 12px;

    }


    .soccer-view-team {

        font-size: 23px;

    }


    .soccer-view-final {

        gap: 5px;

    }


    .soccer-view-final strong {

        min-width: 34px;

        font-size: 42px;

    }


    .soccer-view-final span {

        font-size: 23px;

    }


    .soccer-view-score-row {

        grid-template-columns:
            minmax(70px, 1fr)
            48px
            24px
            48px;

        min-height: 54px;

        padding:
            7px 6px;

    }


    .soccer-view-period {

        font-size: 15px;

    }


    .soccer-view-score-row > strong {

        font-size: 21px;

    }


    .soccer-view-score-row > span {

        font-size: 18px;

    }


    .soccer-view-score-row.total {

        min-height: 62px;

    }


    .soccer-view-score-row.total strong {

        font-size: 27px;

    }


    .soccer-view-result {

        font-size: 17px;

        padding:
            9px 20px;

    }


    .soccer-view-info {

        font-size: 14px;

    }


    .soccer-view-memo > div {

        font-size: 14px;

    }


    .soccer-view-memo p {

        font-size: 14px;

    }


    .soccer-view-buttons {

        gap: 8px;

    }


    .soccer-view-buttons button {

        flex:
            1 1 auto;

        min-width: 100px;

    }


    .soccer-penalty-area
    .soccer-score-row {

        gap: 8px;

    }


    .soccer-penalty-area
    .soccer-score-row input {

        width: 50%;

        max-width: 100px;

    }


    .soccer-edit-buttons button {

        min-height: 46px;

    }

}


/* =====================================================
   📱 非常に狭い画面
===================================================== */

@media (max-width: 380px) {

    .soccer-edit-screen {

        padding-left: 9px;

        padding-right: 9px;

    }


    .soccer-team-setting-row {

        grid-template-columns:
            68px
            minmax(0, 1fr)
            auto;

    }


    .soccer-team-setting-row
    + .soccer-team-setting-row {

        grid-template-columns:
            68px
            minmax(0, 1fr);

    }


    .soccer-team-setting-row select {

        min-width: 82px;

    }


    .soccer-match-team-name {

        font-size: 21px;

    }


    .soccer-live-score {

        font-size: 38px;

    }


    .soccer-view-team {

        font-size: 21px;

    }


    .soccer-view-final strong {

        min-width: 29px;

        font-size: 38px;

    }


    .soccer-view-final span {

        font-size: 21px;

    }


    .soccer-view-score-row {

        grid-template-columns:
            minmax(62px, 1fr)
            42px
            20px
            42px;

    }


    .soccer-view-score-row > strong {

        font-size: 20px;

    }

}











/* =====================================================
   ⚽ 結果画面 詳細スコア
   前半・後半・延長・PKを同じルールで表示

   ・合計スコアの「－」と同じ中心線
   ・項目名とスコアの間隔を統一
   ・スコアサイズを統一
   ・数字と「－」の間隔を統一
   ・JS / HTML / 計算ロジックは変更しない
===================================================== */


/* ---------------------------------
   詳細スコアの行
--------------------------------- */

.soccer-detail-screen .soccer-score-row {

    width: 100%;

    margin-bottom: 16px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        40px
        minmax(0, 1fr);

    align-items: center;

    position: relative;

}


/* ---------------------------------
   前半・後半・延長前半・延長後半
--------------------------------- */

.soccer-detail-screen .soccer-score-row label {

    grid-column: 1;

    grid-row: 1;

    justify-self: end;

    margin: 0 100px 0 0;

    font-size: 22px;

    font-weight: 800;

    text-align: right;

    white-space: nowrap;

}


/* ---------------------------------
   詳細スコア本体
--------------------------------- */

.soccer-detail-screen .soccer-detail-score {

    grid-column: 1 / 4;

    grid-row: 1;

    justify-self: center;

    width: 170px;

    min-width: 170px;

    box-sizing: border-box;

    margin: 0;

    text-align: center;

    white-space: nowrap;

    font-family: monospace;

    font-size: 34px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: 20px;

}


/* ---------------------------------
   延長・PK
--------------------------------- */

.soccer-detail-screen .soccer-checkbox-row {

    font-size: 22px;

    font-weight: 800;

}


/* ---------------------------------
   PKスコア
--------------------------------- */

.soccer-detail-screen .soccer-penalty-section
.soccer-detail-score {

    width: 170px;

    min-width: 170px;

    font-size: 34px;

    letter-spacing: 20px;

}


/* ---------------------------------
   PKのスコア行
--------------------------------- */

.soccer-detail-screen .soccer-penalty-section
.soccer-penalty-area
.soccer-score-row {

    width: 100%;

    margin-bottom: 16px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        40px
        minmax(0, 1fr);

    align-items: center;

    position: relative;

}


.soccer-detail-screen .soccer-penalty-section
.soccer-penalty-area
.soccer-detail-score {

    grid-column: 1 / 4;

    grid-row: 1;

    justify-self: center;

}


/* =====================================================
   📱 結果画面 詳細スコア
   スマートフォン
===================================================== */

@media (max-width: 600px) {

    .soccer-detail-screen .soccer-score-row {

        margin-bottom: 14px;

        grid-template-columns:
            minmax(0, 1fr)
            30px
            minmax(0, 1fr);

    }


    .soccer-detail-screen .soccer-score-row label {

        margin-right: 100px;

        font-size: 20px;

    }


    .soccer-detail-screen .soccer-detail-score {

        width: 155px;

        min-width: 155px;

        font-size: 32px;

        letter-spacing: 20px;

    }


    .soccer-detail-screen .soccer-checkbox-row {

        font-size: 20px;

        font-weight: 800;

    }


    .soccer-detail-screen .soccer-penalty-section
    .soccer-penalty-area
    .soccer-score-row {

        margin-bottom: 14px;

        grid-template-columns:
            minmax(0, 1fr)
            30px
            minmax(0, 1fr);

    }


    .soccer-detail-screen .soccer-penalty-section
    .soccer-detail-score {

        width: 155px;

        min-width: 155px;

        font-size: 32px;

        letter-spacing: 20px;

    }

}


/* =====================================================
   ⚽ サッカー結果画面
   コート・ペナルティエリア・ゴール
   完全独立版

   ★ 編集画面の
     .soccer-penalty-area
     とは完全に別クラスを使用

   ★ ゴールライン専用要素は作らない
===================================================== */


/* =====================================================
   結果画面 背景レイヤー
===================================================== */

.soccer-detail-field-bg {

    position: absolute;

    inset: 0;

    overflow: hidden;

    z-index: 0;

    pointer-events: none;

}


/* =====================================================
   ☀️ 空
===================================================== */

.soccer-field-sky {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(205,240,255,0.55) 0%,
            rgba(225,248,255,0.30) 42%,
            rgba(205,238,205,0.16) 100%
        );

}


/* =====================================================
   ☁️ 雲
===================================================== */

.soccer-field-cloud {

    position: absolute;

    width: 180px;

    height: 55px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 65%,
            rgba(255,255,255,0.75) 0 30%,
            transparent 31%
        ),

        radial-gradient(
            circle at 50% 45%,
            rgba(255,255,255,0.82) 0 38%,
            transparent 39%
        ),

        radial-gradient(
            circle at 72% 65%,
            rgba(255,255,255,0.72) 0 30%,
            transparent 31%
        );

    filter: blur(5px);

    opacity: 0.65;

}


.soccer-field-cloud-1 {

    left: 8%;

    top: 10%;

    transform: scale(0.85);

}


.soccer-field-cloud-2 {

    right: 2%;

    top: 20%;

    transform: scale(1.15);

    opacity: 0.45;

}


.soccer-field-cloud-3 {

    left: 35%;

    top: 5%;

    transform: scale(0.65);

    opacity: 0.35;

}


/* =====================================================
   ⚽ ピッチ本体
   ※ グリーンは現在のものを完全維持
===================================================== */

.soccer-detail-pitch {

    position: absolute;

    left: -17%;

    bottom: -12%;

    width: 134%;

    height: 63%;

    overflow: visible;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.045) 0px,
            rgba(255,255,255,0.045) 70px,
            rgba(0,90,35,0.035) 70px,
            rgba(0,90,35,0.035) 140px
        ),
        linear-gradient(
            180deg,
            #9bdc8c 0%,
            #82cc76 50%,
            #70bd65 100%
        );

    border-radius: 8px;

    transform:
        perspective(900px)
        rotateX(48deg)
        rotateZ(-18deg);

    transform-origin:
        center bottom;

    opacity: 0.43;

    filter: blur(1.7px);

    box-shadow:
        0 -10px 35px
        rgba(70,140,75,0.08);

}


/* =====================================================
   ⚽ コート右側レイアウト
   -----------------------------------------------------
   ★ コート本体と同じ座標系

   ★ このグループ自体は傾けない

   ★ コート本体を傾けたとき、
     中の線・ゴール・PK関連も
     全体として同じ角度になる
===================================================== */

.soccer-field-right-layout {

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    box-sizing: border-box;

    transform: none;

    transform-origin: center bottom;

    z-index: 2;

    pointer-events: none;

}


/* =====================================================
   ⚽ コート外周
===================================================== */

.soccer-field-boundary {

    position: absolute;

    left: 0;

    right: 0;

    top: 0;

    bottom: 0;

    box-sizing: border-box;

    border:
        4px solid
        rgba(255,255,255,0.78);

    border-radius: 4px;

    filter:
        blur(0.3px);

}


/* =====================================================
   🥅 ペナルティエリア
   -----------------------------------------------------
   ★ 右端 = コート外周の右端

   ★ 右線は描かない

   ★ コート外周右線そのものが
     ゴールラインになる

   ★ 左ラインが
     PKアークの直径位置の基準
===================================================== */

.soccer-field-penalty-box {

    position: absolute;

    left: 62%;

    right: 0;

    top: 22%;

    height: 56%;

    box-sizing: border-box;

    border-top:
        4px solid
        rgba(255,255,255,0.78);

    border-left:
        4px solid
        rgba(255,255,255,0.78);

    border-bottom:
        4px solid
        rgba(255,255,255,0.78);

    filter:
        blur(0.35px);

}


/* =====================================================
   ⚽ ゴールエリア
   -----------------------------------------------------
   ★ 右端 = コート外周の右端

   ★ 右線は描かない

   ★ コート外周右線を共有
===================================================== */

.soccer-field-goal-box {

    position: absolute;

    left: 82%;

    right: 0;

    top: 33%;

    height: 34%;

    box-sizing: border-box;

    border-top:
        4px solid
        rgba(255,255,255,0.74);

    border-left:
        4px solid
        rgba(255,255,255,0.74);

    border-bottom:
        4px solid
        rgba(255,255,255,0.74);

    filter:
        blur(0.35px);

}


/* =====================================================
   ⚽ PKスポット
   -----------------------------------------------------
   ペナルティエリア内。
   高さ方向は中央。
===================================================== */

.soccer-field-penalty-spot {

    position: absolute;

    top: 50%;

    right: 15%;

    width: 8px;

    height: 8px;

    transform:
        translate(
            50%,
            -50%
        );

    border-radius: 50%;

    background:
        rgba(255,255,255,0.90);

    filter:
        blur(0.4px);

    box-shadow:
        0 0 5px
        rgba(255,255,255,0.25);

}


/* =====================================================
   ⚽ PKアーク
   -----------------------------------------------------
   ★ ペナルティエリアの外側

   ★ 半円の直径位置を
     ペナルティエリア左ラインに合わせる

   ★ 全体を傾けるのではなく、
     このレイアウト全体を
     .soccer-detail-pitch が傾ける
===================================================== */

.soccer-field-penalty-arc {

    position: absolute;

    /*
       半円の直径位置を
       ペナルティエリア左ライン
       62% に合わせる。

       半円そのものは
       ペナルティエリアの外側へ配置。
    */

    left: 44%;

    top: 50%;

    width: 36%;

    height: 30%;

    box-sizing: border-box;

    border:
        4px solid
        rgba(255,255,255,0.72);

    border-radius: 50%;

    /*
       円の右半分を隠して、
       左半分だけを表示する。

       表示される半円の右端が
       ペナルティエリア左ライン
       62% に一致する。
    */

    clip-path:
        inset(
            0
            50%
            0
            0
        );

    transform:
        translate(
            0,
            -50%
        );

    filter:
        blur(0.35px);

    opacity: 0.78;

}


/* =====================================================
   🥅 ゴール本体
   -----------------------------------------------------
   ★ コート外周の右端から外側へ
===================================================== */

.soccer-field-goal {

    position: absolute;

    left: 100%;

    top: 35%;

    width: 11%;

    height: 30%;

    opacity: 0.74;

    filter:
        blur(1.15px);

}


/* =====================================================
   🥅 ゴール枠
===================================================== */

.soccer-field-goal-frame {

    position: absolute;

    inset: 0;

    box-sizing: border-box;

    border:
        5px solid
        rgba(255,255,255,0.84);

    border-radius: 2px;

    box-shadow:
        0 4px 8px
        rgba(50,90,60,0.14);

}


/* =====================================================
   🥅 ゴールネット
===================================================== */

.soccer-field-goal-net {

    position: absolute;

    left: 7%;

    right: 7%;

    top: 8%;

    bottom: 8%;

    box-sizing: border-box;

    border:
        2px solid
        rgba(255,255,255,0.42);

    background:

        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 7px,
            rgba(255,255,255,0.25) 8px,
            transparent 9px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 7px,
            rgba(255,255,255,0.25) 8px,
            transparent 9px
        );

    transform:
        perspective(200px)
        rotateY(-12deg);

    opacity: 0.65;

}


/* =====================================================
   🥅 ゴールネット奥行き
===================================================== */

.soccer-field-goal::before {

    content: "";

    position: absolute;

    left: 8%;

    right: -18%;

    top: 10%;

    bottom: -8%;

    border:
        2px solid
        rgba(255,255,255,0.28);

    transform:
        skewY(-8deg);

    opacity: 0.55;

}


/* =====================================================
   ⚽ ボール
===================================================== */

.soccer-detail-ball {

    position: absolute;

    width: 32px;

    height: 32px;

    left: 68%;

    bottom: 22%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255,255,255,0.95) 0 20%,
            rgba(245,245,245,0.90) 21% 65%,
            rgba(215,215,215,0.75) 66% 100%
        );

    opacity: 0.50;

    filter:
        blur(1.3px);

    box-shadow:
        0 8px 12px
        rgba(50,90,50,0.15);

}


/* =====================================================
   ✨ 柔らかい光
===================================================== */

.soccer-detail-soft-light {

    position: absolute;

    inset: -10%;

    background:

        radial-gradient(
            ellipse at 50% 25%,
            rgba(255,255,255,0.22),
            transparent 48%
        ),

        radial-gradient(
            ellipse at 20% 80%,
            rgba(255,255,255,0.13),
            transparent 45%
        ),

        radial-gradient(
            ellipse at 85% 70%,
            rgba(255,255,255,0.12),
            transparent 42%
        );

    filter:
        blur(18px);

}


/* =====================================================
   📱 結果画面を前面に
===================================================== */

.soccer-detail-screen
> .soccer-detail-field-bg {

    z-index: 0;

}


.soccer-detail-screen
> *:not(.soccer-detail-field-bg) {

    position: relative;

    z-index: 1;

}


/* =====================================================
   📱 スマートフォン
===================================================== */

@media (max-width: 600px) {


    /* ---------------------------------
       🌱 グリーン部分
       ※ 現在の見え方を維持
    --------------------------------- */

    .soccer-detail-pitch {

        left: -28%;

        bottom: -9%;

        width: 150%;

        height: 59%;

        transform:
            perspective(750px)
            rotateX(48deg)
            rotateZ(-18deg);

    }


    /* ---------------------------------
       ☁️ 雲
    --------------------------------- */

    .soccer-field-cloud {

        width: 135px;

        height: 48px;

    }


    /* ---------------------------------
       ⚽ コート全体
    --------------------------------- */

    .soccer-field-right-layout {

        left: 0;

        top: 0;

        width: 100%;

        height: 100%;

        transform: none;

    }


    /* ---------------------------------
       白線
    --------------------------------- */

    .soccer-field-boundary {

        border-width: 3px;

    }


    .soccer-field-penalty-box {

        border-width: 3px;

    }


    .soccer-field-goal-box {

        border-width: 3px;

    }


    .soccer-field-penalty-arc {

        border-width: 3px;

    }


    /* ---------------------------------
       ⚽ PKスポット
    --------------------------------- */

    .soccer-field-penalty-spot {

        width: 7px;

        height: 7px;

    }


    /* ---------------------------------
       🥅 ゴール
    --------------------------------- */

    .soccer-field-goal {

        width: 13%;

        height: 31%;

    }


    .soccer-field-goal-frame {

        border-width: 4px;

    }


    /* ---------------------------------
       ⚽ ボール
    --------------------------------- */

    .soccer-detail-ball {

        width: 26px;

        height: 26px;

        left: 65%;

        bottom: 21%;

    }

}