/* ===== 基本設定 ===== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a6fd6;
    --secondary-color: #764ba2;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-light: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    --text-dark: #1a202c;
    --text-base: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-base);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== ヘッダー ===== */
header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 1px;
}

nav a:hover {
    color: var(--primary-color);
    -webkit-text-fill-color: initial;
}

nav a:hover::after {
    width: 100%;
}

/* ===== ヒーローセクション ===== */
.hero {
    background: var(--gradient);
    color: white;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 15s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.badge-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.badge-placeholder:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== セクションタイトル ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== スクリーンショット ===== */
.screenshots {
    padding: 100px 0;
    background: var(--bg-white);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.screenshot-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.screenshot-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.screenshot-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.screenshot-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== 機能セクション ===== */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== プライバシーセクション ===== */
.privacy-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.privacy-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.privacy-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.privacy-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.privacy-box p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

.privacy-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.privacy-box a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== フッター ===== */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== プライバシーポリシーページ ===== */
.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    background: var(--bg-white);
    min-height: 100vh;
}

.privacy-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-container .date {
    color: var(--text-light);
    margin-bottom: 48px;
    font-size: 0.95rem;
}

.privacy-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

.privacy-container p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.9;
}

.privacy-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-container a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* ヘッダーは横並びを維持 */
    .header-content {
        justify-content: space-between;
    }

    nav {
        gap: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .privacy-box {
        padding: 40px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .privacy-container h1 {
        font-size: 2rem;
    }
}

/* ===== timej.net メインページ用スタイル ===== */

/* ヒーロー拡張 */
.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 16px;
    position: relative;
}

.hero-description {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto 40px;
    position: relative;
    line-height: 1.9;
}

.hero-messages {
    list-style: none;
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.hero-messages li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 1.1rem;
    opacity: 0.95;
}

.hero-messages li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    color: white;
}

/* セクションサブタイトル */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: -40px auto 60px;
    font-size: 1.05rem;
}

/* 理念セクション */
.philosophy {
    padding: 100px 0;
    background: var(--bg-white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.philosophy-card {
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.1);
}

.philosophy-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.philosophy-icon {
    font-size: 2.5rem;
}

.philosophy-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.philosophy-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* プロジェクトセクション */
.projects {
    padding: 100px 0;
    background: var(--bg-light);
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.project-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon {
    font-size: 2rem;
}

.project-title-area {
    flex: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-released {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.status-development {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.status-active {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.status-planning {
    background: var(--text-muted);
    color: white;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1rem;
}

.project-features {
    list-style: none;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.project-features li {
    position: relative;
    padding-left: 28px;
    color: var(--text-base);
    font-size: 0.95rem;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.project-features li strong {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-icon {
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-base);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 開発者セクション */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.about-avatar-wrapper {
    flex-shrink: 0;
}

.about-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: var(--shadow-md);
}

.about-text {
    flex: 1;
}

.about-text>p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.tech-stack,
.dev-env {
    margin-bottom: 24px;
}

.tech-stack h4,
.dev-env h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.dev-env p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.about-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--text-base);
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-icon {
    font-size: 1.1rem;
}

/* フッター拡張 */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* レスポンシブ追加 */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 28px;
    }

    .project-header {
        flex-direction: column;
        gap: 16px;
    }

    .project-features {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .about-links {
        justify-content: center;
    }

    .tech-tags {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 20px;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .about-avatar {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
}

/* ===== ハンバーガーメニュー ===== */

/* ハンバーガーボタン */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ナビゲーション */
.main-nav {
    display: flex;
    gap: 24px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.1rem;
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .main-nav a:hover {
        color: var(--primary-color);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    /* オーバーレイ */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* ヘッダーコンテンツの調整 */
    .header-content {
        justify-content: space-between;
    }
}