/* General */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: #333;
    background-color: #fdfdfd;
    line-height: 1.6;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.site-nav a {
    margin-left: 20px;
    color: #555;
}

/* Hero Section */
.hero-section {
    padding: 120px 0;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.8);
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.hero-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transform: rotate(var(--rotate, 0deg));
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.hero-label:first-child {
    font-size: 1.6rem;
    font-weight: 700;
    padding: 10px 28px;
}

.hero-label:hover {
    transform: rotate(0deg) scale(1.05);
    background: rgba(255,255,255,0.25);
}

.hero-label.accent {
    background: rgba(255,200,50,0.2);
    border-color: rgba(255,200,50,0.4);
    font-style: italic;
}

.hero-label.cta {
    background: rgba(255,255,255,0.9);
    color: #1a1a2e;
    font-weight: 700;
    border: none;
}

.hero-label.cta:hover {
    background: #fff;
    transform: rotate(0deg) scale(1.08);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-8px) rotate(-2deg); }
    20% { transform: translateX(8px) rotate(2deg); }
    30% { transform: translateX(-6px) rotate(-1deg); }
    40% { transform: translateX(6px) rotate(1deg); }
    50% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.hero-label.shaking {
    animation: shake 0.6s ease;
}

.hero-label {
    cursor: pointer;
    user-select: none;
}

/* AI Notice */
.ai-notice {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-top: 2px solid #ffc107;
    border-bottom: 2px solid #ffc107;
}
.cta-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Post Cards */
.featured-post, .post-list {
    margin: 40px 0;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.post-card-large {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #333;
    transition: transform 0.2s;
}

.post-card-large:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.post-card-large .post-card-image {
    width: 50%;
    background-size: cover;
    background-position: center;
}

.post-card-large .post-card-content {
    width: 50%;
    padding: 30px;
}

.post-card-title {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.post-card-date {
    color: #777;
    font-size: 0.9em;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #333;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.post-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.post-card .post-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.post-card .post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-card-content h3 {
    flex-grow: 1;
}

/* Post Page */
.post-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.post-header .container {
    position: relative;
    z-index: 1;
}

.post-title {
    font-size: 3em;
    margin: 0;
}

.post-meta {
    font-size: 1em;
    opacity: 0.8;
}

.post-content {
    padding: 40px 0;
    font-size: 1.1em;
}

.post-content h2, .post-content h3 {
    margin-top: 2em;
}

.post-content img {
    margin: 20px 0;
    border-radius: 5px;
}

/* Post Navigation */
.post-navigation {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.post-navigation .container {
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    width: 48%;
}

.post-navigation .next {
    text-align: right;
}

/* Footer */
.site-footer {
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #777;
    font-size: 0.9em;
}

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

    .post-card-large {
        flex-direction: column;
    }

    .post-card-large .post-card-image,
    .post-card-large .post-card-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}
