/* 基本設定 */
body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: "Sawarabi Mincho", "Yu Mincho", "MS PMincho", serif;
}

/* 年賀状のカード本体 */
.nengajo-container {
    width: 350px;
    height: 550px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
}

/* 初日の出のアニメーション */
.sun {
    position: absolute;
    bottom: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ff4b2b, #ff416c);
    border-radius: 50%;
    animation: rise 3s ease-out forwards;
    opacity: 0.8;
}

@keyframes rise {
    0% { transform: translateY(0); }
    100% { transform: translateY(-350px); }
}

/* 縦書きのテキスト設定 */
.content {
    writing-mode: vertical-rl;
    z-index: 2;
    text-align: center;
    letter-spacing: 0.2em;
}

.title {
    font-size: 3rem;
    color: #d40000;
    margin-left: 20px;
    font-weight: bold;
}

.message {
    font-size: 1.1rem;
    line-height: 2.5;
    color: #333;
}

.date {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* 送り主の名前のスタイル */
.sender {
    margin-top: 3rem; /* 日付から少し離す */
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* 装飾用の枠 */
.frame {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid #d4af37;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}
