
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.time-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.time-display {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.time-section, .date-section {
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.time-section:hover, .date-section:hover {
    transform: translateY(-5px);
}

h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.time, .date {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.refresh-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: white;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.refresh-icon {
    font-size: 1.2rem;
    animation: spin 1s linear infinite paused;
}

.refresh-button:hover .refresh-icon {
    animation-play-state: running;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 世界の都市の時刻表示用のスタイル */
.world-time-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

.world-time-section {
    background: var(--background-color);
    border-radius: 10px;
    padding: 1.5rem;
    flex: 1 1 calc(30% - 2rem);
    min-width: 200px;
    transition: transform 0.2s ease;
}

.world-time-section:hover {
    transform: translateY(-5px);
}

.world-time-section h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.world-time-section .time {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
    .time-display {
        flex-direction: row;
        justify-content: center;
    }

    .time-section, .date-section {
        flex: 1;
        max-width: 300px;
    }
}

/* ダークモードサポート */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ecf0f1;
        --secondary-color: #3498db;
        --background-color: #2c3e50;
        --text-color: #ecf0f1;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }

    .time-container {
        background: #34495e;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ヘッダー内のリンクスタイル */
header h1 a {
    color: inherit; /* 親要素の色を継承 */
    text-decoration: none; /* 下線を無効化 */
}

header h1 a:visited,
header h1 a:hover,
header h1 a:active {
    color: inherit; /* 他の状態でも色が変わらないように設定 */
    text-decoration: none; /* 下線が出ないように設定 */
}
/* ページの基礎スタイル */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
/* 時刻のスタイル設定 */
#date-now {
    font-weight: bold;       /* 太文字に設定 */
    font-size: 1em;          /* フォントサイズを大きく設定 */
}
#time-now {
    font-weight: bold;       /* 太文字に設定 */
    font-size: 2em;          /* フォントサイズを大きく設定 */
}
.footer-ad {
    text-align: center;
    margin-top: 20px;
}
header {
    background-color: #4CAF50;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: left; /* テキストを左寄せ */
    height: 60px; /* バナーの高さを120pxに固定 */
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    justify-content: flex-start; /* 横方向の左寄せ */
    padding-left: 20px; /* 左側に余白を追加 */
    font-size: 1em;
    font-weight: bold;
}
/* ナビゲーションメニュー */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 15px;
    position: relative; /* ドロップダウン用に相対配置 */
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ドロップダウンメニューのスタイル */
.dropdown-menu {
    display: none; /* 初期状態で非表示 */
    position: absolute;
    top: 100%; /* 親メニューの下に配置 */
    left: 0;
    background-color: #4CAF50;
    min-width: 150px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.dropdown-menu li {
    padding: 8px 15px;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #45a049;
}

/* ドロップダウンメニューをホバーで表示 */
.dropdown:hover .dropdown-menu {
    display: block; /* 親メニューがホバーされたら表示 */
}
body {
    margin-bottom: 80px; /* フッターの高さ分の余白を追加 */
}
/* フッターのスタイル */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 15px;
    position: fixed; /* フッターを画面下部に固定 */
    bottom: 0;
    width: 100%; /* フッターをページ幅いっぱいに広げる */
    box-sizing: border-box; /* パディングを含めた幅計算 */
}

/* フッターリンク */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px; /* パディングを減らして高さを抑える */
    position: fixed; 
    bottom: 0;
    width: 100%; 
    box-sizing: border-box;
    font-size: 0.9em; /* フォントサイズをやや小さくする */
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 5px 0; /* マージンを少なめに */
}

.footer-links li {
    margin: 0 10px; /* リンク間のスペースも小さめに */
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85em; /* リンクのテキストも若干小さく */
}

/* フッター内のコピーライト表示などを想定 */
footer p {
    margin: 5px 0; /* 上下余白を小さく */
    font-size: 0.85em; /* テキストサイズを小さく */
}

.footer-ad {
    margin-top: 5px; /* 広告エリアの上の余白も縮める */
}


/* static/css/developer.css */

.developer-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* プロフィールセクション */
.profile-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.profile-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
}

/* スキルグリッド */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-color);
    padding: 0.8rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 1.5rem;
}

/* プロジェクトセクション */
.project-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.project-info {
    margin-top: 1rem;
}

.info-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.project-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.project-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* コンタクトセクション */
.contact-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    background: #2980b9;
}

.contact-icon {
    font-size: 1.2rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
    }
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
    .profile-section,
    .project-section,
    .contact-section {
        background: #34495e;
    }

    .info-card {
        background: #2c3e50;
    }
}

/* Add to your existing styles.css */

.faq-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.faq-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.faq-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 5rem; /* Space for footer */
}

.faq-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .faq-section {
        background: #34495e;
    }
    
    .faq-item {
        background: #2c3e50;
    }
    
    .faq-item h3 {
        color: var(--text-color);
    }
}

/* Responsive design */
@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .faq-container h1 {
        font-size: 2rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* 初期は非表示 */
    align-items: center;
    justify-content: center;
    z-index: 9999; /* 他の要素より前面に表示 */
}

.modal-content {
    background: white;
    padding: 40px; /* パディングを増やして余白を広くする */
    border-radius: 10px;
    max-width: 80%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
    animation: pop 0.3s ease-out;
    transform: scale(1.2); /* 全体的に少し拡大 */
}

.modal-content h2#modalCityName {
    font-size: 2rem; /* 都市名を大きく表示 */
    margin-bottom: 1rem;
}

.modal-time {
    font-size: 3rem; /* 時刻をより大きく表示 */
    font-weight: bold;
    margin-top: 2rem;
}

/* ポップアップアニメーション */
@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}