@charset "UTF-8";

/* =====================================
   Reset（reset.css を統合）
===================================== */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a,
abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike,
strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
a { text-decoration: none; }
ol, ul { list-style: none; }

/* =====================================
   基本スタイル
===================================== */
html { font-size: 1.2vw; }
body {
    width: 100%;
    font-family: 'Shippori Mincho', serif;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #000;
    color: #fff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================
   ヘッダー
===================================== */
header {
    width: 100%;
    height: 60px;
    background-color: #111;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
header h1 {
    font-size: 2rem;
    color: #fff;
}

/* メイン画像 */
#mainvisual .main-visual {
    width: 100%;
    margin-top: 60px;
    margin-bottom: 0; /* ← 余白を完全に消す */
    display: block;
}

h2 {
    margin-bottom: 30px;
    font-size: 2rem;

}

/* プロフィール */
#profile {
    background: #000;
    color: #fff;
    padding: 10px 20px 60px; /* ← 上の余白を大きく削減して詰める */
}

.profile-header {
    margin-top: 10px; /* ← 名前の上の隙間をさらに詰める */
    margin-bottom: 35px;
}

.myname {
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.skills {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* ===== 見出しライン ===== */
.profile-section-title {
    font-size: 1.9rem;
    font-weight: bold;
    margin: 45px auto 20px;
    position: relative;
    width: fit-content;
}
.profile-section-title::after {
    content: "";
    display: block;
    height: 2px;
    width: 80%;
    background: #666;
    margin: 8px auto 0;
}

/* ===== 資格 ===== */
.certifications {
    font-size: 1.5rem;
    line-height: 1.9;
    margin-bottom: 60px;
}
.certifications li {
    margin-bottom: 12px;
}

/* =====================================
   タイムライン（経歴）
===================================== */
.timeline-block {
    padding: 130px 20px 150px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.bg-main {
    background-image: url("./img/PC-Photoroom.png");
}

/* 中央の黒ボックス */
.timeline-inner {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0,0,0,0.55);
    padding: 40px 45px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

.timeline-inner .year {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 18px;
}

.timeline-inner p {
    font-size: 1.3rem;
    line-height: 1.95;
}

/* =====================================
   作品一覧（横長カード形式）
===================================== */
#works {
    padding: 50px 20px 80px;
    background: #000;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 35px;
}

.works-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.work-card {
    display: flex;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

/* 左の画像 */
.work-thumb {
    width: 260px;
    object-fit: cover;
}

/* テキスト部分 */
.work-body {
    padding: 20px 25px;
    text-align: left;
    flex: 1;
}

.work-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.work-text {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #ddd;
}
.work-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    margin-bottom: 12px;
}
.work-btn:hover { background: #ddd; }

.work-lang {
    font-size: 0.9rem;
    color: #aaa;
}

/* =====================================
   フッター
===================================== */
#footer {
    padding: 25px 0;
    background-image: url(./img/footer.png);
    background-size: cover;
    background-position: center;
}
#footer p {
    font-size: 1.1rem;
    margin: 5px 0;
    filter: drop-shadow(4px 8px 12px #000);
}

/* =====================================
   モバイル対応
===================================== */
@media (max-width: 768px) {
    html { font-size: 4vw; }

    .myname { font-size: 2rem; }
    .skills { font-size: 1.2rem; }

    .profile-section-title { font-size: 1.5rem; }

    .timeline-inner {
        padding: 25px 20px;
    }
    .timeline-inner .year {
        font-size: 1.8rem;
    }
    .timeline-inner p {
        font-size: 1.1rem;
    }

    .work-card {
        flex-direction: column;
    }
    .work-thumb {
        width: 100%;
        height: 220px;
    }
    .work-title { font-size: 1.4rem; }
}
/* プロフィールエリアは常に中央揃え */
#profile,
#profile * {
    text-align: center !important;
}

/* タイムラインも常に中央揃え */
.timeline-block,
.timeline-inner,
.timeline-inner * {
    text-align: center !important;
}
/* 「資格」という文字の h2 にだけ下線をつける */
h2:has(+ ul.certifications) {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-size: 2rem;
}

h2:has(+ ul.certifications)::after {
    content: "";
    display: block;
    width: 180px;
    height: 2px;
    background: #666;
    margin: 10px auto 0;
}

/* プロフィール内 h2 の見出しに統一して区切り線を入れる */
#profile h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-size: 2rem;
    margin-top: 35px;
    margin-bottom: 20px;
}

#profile h2::after {
    content: "";
    display: block;
    width: 180px;
    height: 2px;
    background: #666;
    margin: 10px auto 0;
}
