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

body {
    font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #5a3a2a;
    background-color: #fff8f0;
}

/* ヘッダー */
.site-header {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b9d 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(255, 140, 66, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

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

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.header-nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

h1 {
    color: #d2691e;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h2 {
    color: #cd853f;
    margin-bottom: 1rem;
}

/* カード */
.card {
    background: #fffef9;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(255, 140, 66, 0.1);
    margin-bottom: 1.5rem;
}

.card-title {
    color: #d2691e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* グリッド */
.grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b9d 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffa07a 0%, #ff8c69 100%);
}

.btn-success {
    background: linear-gradient(135deg, #ffb84d 0%, #ffa500 100%);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* フォーム */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8b4513;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ff8c42;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* アラート */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ポイント表示 */
.points-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b9d 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.points-display div:last-child {
    font-size: 3rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* 小さめのポイント表示 */
.points-display-small {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
}

.points-display-small div:last-child {
    font-size: 1.8rem;
    margin-top: 0.3rem;
}

/* テーブル */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background-color: #fff5e6;
    font-weight: 600;
    color: #8b4513;
}

.table tr:hover {
    background-color: #fff5e6;
}

/* ソーシャルログイン */
.social-login {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn-gmail {
    background-color: #db4437;
}

.social-btn-line {
    background-color: #00c300;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b9d 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, #d2691e 0%, #cd853f 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-copyright {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 案件アイテム */
.task-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.task-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    /* ハンバーガーメニューボタンを表示 */
    .hamburger-menu {
        display: flex;
    }

    /* ナビゲーションメニューを非表示（デフォルト） */
    .header-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #ff8c42 0%, #ff6b9d 100%);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    /* メニューがアクティブな時（開いている時） */
    .header-nav.active {
        transform: translateX(0);
    }

    .header-nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: left;
    }

    .header-nav a:hover {
        background-color: rgba(255,255,255,0.2);
    }

    .main-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }
    
    .hero img {
        width: 120px !important;
        top: -2px !important;
        right: -23px !important;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}