* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

h1 {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* 日付表示 */
.date-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 40px;
    font-family: 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
}

/* 時計コンテナ（横並び） */
.clocks-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* デジタル時計 */
.digital-clock {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 40px 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
}

.digital-clock .time {
    font-size: 5rem;
    font-weight: bold;
    color: #000000;
    font-family: 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, 'MS Gothic', sans-serif;
    letter-spacing: 8px;
}

/* アナログ時計 */
.analog-clock {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-face {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #e0e0e0;
}

/* 数字マーカー（1-12） */
.number {
    position: absolute;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 各数字の位置計算 */
.number-12 {
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.number-1 {
    top: 50px;
    right: 65px;
}

.number-2 {
    top: 95px;
    right: 35px;
}

.number-3 {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.number-4 {
    bottom: 95px;
    right: 35px;
}

.number-5 {
    bottom: 50px;
    right: 65px;
}

.number-6 {
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.number-7 {
    bottom: 50px;
    left: 65px;
}

.number-8 {
    bottom: 95px;
    left: 35px;
}

.number-9 {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.number-10 {
    top: 95px;
    left: 30px;
}

.number-11 {
    top: 50px;
    left: 60px;
}

/* 針 */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: #333;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hour-hand {
    width: 8px;
    height: 90px;
    margin-left: -4px;
    background: #333;
    z-index: 3;
}

.minute-hand {
    width: 6px;
    height: 120px;
    margin-left: -3px;
    background: #555;
    z-index: 2;
}

.second-hand {
    width: 3px;
    height: 130px;
    margin-left: -1.5px;
    background: #e74c3c;
    z-index: 4;
    transition: transform 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.center-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .clocks-container {
        gap: 40px;
    }

    .clock-face {
        width: 300px;
        height: 300px;
    }

    .digital-clock .time {
        font-size: 4rem;
        letter-spacing: 6px;
    }

    .hour-hand {
        height: 75px;
    }

    .minute-hand {
        height: 100px;
    }

    .second-hand {
        height: 110px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .date-display {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .clocks-container {
        flex-direction: column;
        gap: 30px;
    }

    .digital-clock {
        padding: 30px 40px;
    }

    .digital-clock .time {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }

    .clock-face {
        width: 280px;
        height: 280px;
    }

    .number {
        font-size: 1.5rem;
    }

    .hour-hand {
        height: 70px;
    }

    .minute-hand {
        height: 95px;
    }

    .second-hand {
        height: 105px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .date-display {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .digital-clock {
        padding: 25px 30px;
    }

    .digital-clock .time {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .clock-face {
        width: 250px;
        height: 250px;
    }

    .number {
        font-size: 1.3rem;
    }

    .hour-hand {
        height: 60px;
    }

    .minute-hand {
        height: 85px;
    }

    .second-hand {
        height: 95px;
    }

    /* 数字の位置調整（小さい時計用） */
    .number-12 {
        top: 20px;
    }

    .number-1 {
        top: 40px;
        right: 50px;
    }

    .number-2 {
        top: 75px;
        right: 28px;
    }

    .number-3 {
        right: 20px;
    }

    .number-4 {
        bottom: 75px;
        right: 28px;
    }

    .number-5 {
        bottom: 40px;
        right: 50px;
    }

    .number-6 {
        bottom: 20px;
    }

    .number-7 {
        bottom: 40px;
        left: 50px;
    }

    .number-8 {
        bottom: 75px;
        left: 28px;
    }

    .number-9 {
        left: 20px;
    }

    .number-10 {
        top: 75px;
        left: 25px;
    }

    .number-11 {
        top: 40px;
        left: 48px;
    }
}
