CSS ライブデモ:box-shadow デモボタンをクリックしてみてください!
selector {
    box-shadow: /* 値 */
}
/*
 * <offset-x>(必須):x軸(水平方向)の距離(正の数、0、負の数が指定可能)。長さの単位(%は使用不可)
 * <offset-y>(必須):y軸(垂直方向)の距離(正의数、0、負の数が指定可能)。長さの単位(%は使用不可)
 * <blur-radius>(オプション):ぼかし効果。ぼかしの強さを円の半径として測定(正の数、0のみ。負の数は不可)。
 * 初期値は0。長さの単位(%は使用不可)
 * <spread-radius>(オプション):影の拡大と縮小(正の数、0、負の数が指定可能)。
 * 正の値は影を拡大して大きくし、負の値は影を縮小
 * <color>(オプション):影の色。初期値はcurrentcolor(現在の文字色)
 * <inset>(オプション):影をボックスの外側から内側に変更
 */

/* 注意! <offset-x> と <offset-y> の間に <blur-radius> や <color> を置くことはできません。 */
/* 注意! <blur-radius> は必ず <offset-y> の直後に指定する必要があります。 */
/* 注意! <spread-radius> は必ず <blur-radius> の直後に指定する必要があります。 */
/* 注意! <color> は <offset-x>、<offset-y>、<blur-radius>、<spread-radius> の間に置くことはできません。 */
/* 注意! <inset> は <offset-x>、<offset-y>、<blur-radius>、<spread-radius> の間に置くことはできません Red。 */

/* <offset-x> | <offset-y> | <blur-radius> | <color> */
box-shadow: 2px 3px 4px red;

/* <offset-x> | <offset-y> | <blur-radius> | <spread-radius> | <color> */
box-shadow: 2px 3px 4px 5px red;

/* <color> | <offset-x> | <offset-y> | <blur-radius> */
box-shadow: red 2px 0 4px;

/* <color> | <offset-x> | <offset-y> | <blur-radius> | <spread-radius> */
box-shadow: red 2px 0 4px 6px;

/* <offset-x> | <offset-y> | <color> */
box-shadow: 5px 5px #00a0e9;

/* <color> | <offset-x> | <offset-y> */
box-shadow: green 2px 5px;

/* <inset> | <offset-x> | <offset-y> | <blur-radius> | <color> */
box-shadow: inset 2px 3px 4px red;

/* <offset-x> | <offset-y> | <blur-radius> | <color> | <inset> */
box-shadow: 2px 3px 4px red inset;

/* <offset-x> | <offset-y>
   <color>、<blur-radius>、<spread-radius> は初期値が適用されます */
box-shadow: 5px 10px;

/* 複数の影を指定する場合は、値をカンマ(,)で区切って追加します。
   影は記述した順に前面から背面へと重なり、最初の影が一番上に表示されます。 */
box-shadow: red 2px 0 4px, blue 4px 0 4px, green 6px 8px;

/* 初期値 */
box-shadow: none; /* 影の効果がないことを意味します */

/* グローバル値 */
box-shadow: inherit;
box-shadow: initial;
box-shadow: revert;
box-shadow: revert-layer;
box-shadow: unset;
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: rgba(0, 0, 0, 0.4);
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">テキスト</p>
実際の適用例
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: transparent;
        box-shadow: 10px 10px 10px yellowgreen;
    }
</style>
<div class="box">BOX</div>
実際の適用例
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
        margin: 0;
    }
    .text-2 {
        margin: 0;
        text-shadow: 0 -50px 10px rgba(0, 0, 0, 0.4);
    }
</style>
<p class="text text-1">テキスト 1</p>
<p class="text text-2">テキスト 2</p>
実際の適用例
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: gold;
    }
    .box-1 {
        margin-bottom: 25px;
    }
    .box-2 {
        box-shadow: 0 -50px 20px rgba(0, 0, 0, 0.7);
    }
</style>
<div class="box box-1">BOX 1</div>
<div class="box box-2">BOX 2</div>
実際の適用例
<style>
    .box {
        width: 200px;
        height: 100px;
        border-radius: 20px;
        background-color: gold;
        box-shadow: 10px 10px 15px;
    }
</style>
<div class="box"></div>
実際の適用例
<style>
    .box {
        max-width: 250px;
        height: 200px;
        border-radius: 15px;
        background-color: white;
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
        transition: box-shadow 0.2s;
    }
    .box:hover {
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    }
</style>
<div class="box"></div>
実際の適用例 要素ボックスにマウスを乗せてみてください!
<style>
    .box {
        max-width: 250px;
        height: 200px;
        border-radius: 15px;
        border: 1px solid;
        background-color: white;
        box-shadow: 7px 7px red,
                     14px 14px green,
                     21px 21px blue;
    }
</style>
<div class="box"></div>
実際の適用例