/* ==========================================================================
   1. 基本設定とスムーススクロール
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* ==========================================================================
   2. ヘッダー（固定表示）
   ========================================================================== */
header {
    width: 100%;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

.logo span {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.social-icons a {
    color: #333;
    margin-left: 15px;
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. ヒーローセクション（日時表示エリア）
   ========================================================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    width: 90%;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

/* 日付表示 (h1) */
.hero-content h1 {
    font-size: 2rem; /* 秒数表示とのバランスでわずかに縮小 */
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
}

/* 時刻表示 (h2) - 秒数が入るためサイズを微調整 */
.hero-content h2 {
    font-size: 6.5rem; /* 7remからわずかに縮小 */
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: 5px; /* 文字間を少し詰め、収まりを良くした */
    line-height: 1;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

.cta-button {
    display: inline-block;
    padding: 14px 45px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background: #eee;
    transform: scale(1.05);
}

/* ==========================================================================
   4. 各コンテンツセクション
   ========================================================================== */
.content-section {
    padding: 100px 10%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    scroll-margin-top: 90px;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
}

.content-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* ==========================================================================
   5. フッター
   ========================================================================== */
footer {
    padding: 40px 0;
    background: #f8f9fa;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* ==========================================================================
   6. レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .nav-links {
        margin: 15px 0;
        gap: 10px;
    }

    .social-icons {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    /* スマホで秒数まで1行に収まるように調整 */
    .hero-content h2 {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }
}