/* メイン */
main {
    padding: 60px 0;
}

/* セクション */
.section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 1px;
    background-color: #00ff88;
}

/* プロジェクトグリッド */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    margin-bottom: 20px;
    background-color: #1e1e1e;
    color: #eeeeee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.05);
}

.project-image {
    margin-bottom: 15px;
    overflow: hidden;
}

.project-image img {
    transition: transform 0.3s ease;
    display: block;
}

.project-item:hover .project-image img {
    transform: scale(1.03);
}

.project-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
}

.project-category {
    font-size: 14px;
    color: #aaaaaa;
}

/* 記事リスト */
.article-list {
    margin-bottom: 40px;
}

.article-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #eeeeee;
    box-shadow: 0 2px 6px rgba(0, 255, 0, 0.05);
    border-left: 4px solid #00ff88;
    transition: box-shadow 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.1);
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.article-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.article-excerpt {
    margin-bottom: 15px;
}

.read-more {
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #eeeeee;
    cursor: pointer;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    font: inherit;
}

.article-item.open .read-more {
    display: none;
}

.read-more:hover {
    color: #00cc66;
}

.read-more::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #00ff88;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease, transform-origin 0s;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.full-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}
.article-item.expanded .full-text {
    max-height: 1000px;
    pointer-events: auto;
    opacity: 1; /* 忘れずに */
}


.short-text:not(.console-typing)::after {
    content: none;
}

/* 概要カード */
.career-card {
    background: #1e1e1e;
    color: #eeeeee;
    border-radius: 16px;
    padding: 24px 24px 24px 32px;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.05);
    transition: all 0.6s ease;
    opacity: 0.9;
    transform: translate(-30px, 30px) scale(0.95);
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    filter: blur(2px);
    pointer-events: none;
    /* 背面カードはクリック非対象にする */
}

.career-card.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    z-index: 10;
    filter: none;
    pointer-events: auto;
}

.about-carousel {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-height: 300px;
}


/* コンタクトセクション */
.contact-section {
    background-color: #1e1e1e;
    color: #eeeeee;
    padding: 60px 0;
    text-align: center;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-text {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00cc66;
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #00ff88;
    color: #000;
}