body {
    background-image: url(../image/bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 2. base.css の .header-wrapper にある背景画像を「消す」 */
.header-wrapper {
  background-image: none !important;     /* メインビジュアル画像を消す */
  background-color: transparent !important; /* 背景色も透明にする */
}

.section_title-wrapper {
    width: 1080px;
    margin: 0   auto;
}

.section_title {
    color: #3E9AE7;
}

.section_title-main {
    font-family: "Borel", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    color: #3E9AE7;
    text-align: center;
}

.section_title-sub {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

/* 自己紹介*/
.about {
    margin-top: 160px;
}

.about-wrapper {
    width: 1080px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 180px auto;
}

.name {
    font-weight: 700;
    font-size: 24px;
    padding-bottom: 30px;
}

.about-item {
    padding-left: 63px;
}

.career {
    line-height: 1.87;
    letter-spacing: 0.04em;
}

.thoughts {
    line-height: 1.87;
    letter-spacing: 0.04em;
    padding-top: 16px;
}

/* 強み */
.strengths-wrapper {
    width: 1080px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px auto;
}

.strengths__point {
    font-weight: 500;
    font-size: 24px;
    padding-bottom: 20px;
}

.strengths__point-sub {
    line-height: 2.5;
}

/* スキル */
.skill {
    margin-top: 180px;
}

.skill-wrapper {
    width: 1080px;
    margin: 80px auto 180px;
    background-color: #ffffff;
    border-radius: 5px;
    border:2px solid #3E9AE7;
    padding: 40px 50px;
}

.skill-category {
    padding: 40px 0 40px 0;
    border-bottom: 2px solid #3E9AE7;
}

.skill-category.no-border {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 最後の要素だけ枠線を消し、余白を調整する */
.skill-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* タイトル設定 */
.skill-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

/* スキルリスト (デザイン・コーディング) */
.skill-list {
    letter-spacing: 0.03em;
}

.skill-point {
    font-size: 20px;
    font-weight: 500;
}

.skill-item {
    display: flex;
    align-items: baseline; /* 文字のベースライン（足元）で揃える */
    gap: 32px; 
}

.skill-sub {
    padding-top: 20px;
}

.skill-point-title {
    font-size: 20px;
    font-weight: 500;
    width: 200px;         /* 幅を固定（一番長いテキストに合わせて調整） */
    flex-shrink: 0;
}

/* 右側の説明文 */
.skill-point-text {      /* デザインに合わせて微調整 */
    line-height: 1.6;
}



/* 経歴 */
.timeline {
    width: 1080px;
    position: relative;
    margin-top: 90px;
    margin-left: 150px;
    padding-left: 30px; /* 線とコンテンツが重ならないよう余白を作る */
}

.timeline-content {
    margin-left: 50px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    height: 100%;
    box-sizing: border-box; /* 内側に余白を含める */
    padding-bottom: 100px;  /* 下側に100pxの余白を作る */
    
    /* ★ドット（幅14px）の真ん中に線を合わせる設定 */
    left: 42px; /* ドットの親要素(timeline-dot)の位置や余白に合わせて調整 */
    width: 2px;
    background-color: rgba(75, 75, 75, 0.4);
    
    /* ドットの後ろ（下）に線を重ねる */
    z-index: 0; 
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 3s ease;
    height: 90%;
}


.timeline.is-active::before {
    transform: scaleY(1);           /* 100%まで伸ばす */
}

/* タイムラインの各項目 */
.timeline-item {
    position: relative;
    margin-bottom: 180px;
}

/* 青い丸（ドット） */
.timeline-dot {
    position: absolute;
    left: 6px;   /* ドット自体の配置位置に合わせて調整 */
    z-index: 1;  /* ★線を丸の後ろに隠すため、丸を前面に持ってくる */
}

.circle__img {
    display: block;
    transform: translateY(-5px);
}

.timeline-heading {
    display: flex;
    align-items: baseline;
    gap: 70px;
    padding-bottom: 20px;
}

.year {
    font-size: 20px;
    font-weight: 500;
    font-weight: bold;
    color: #4b4b4b;
    width: 70px; /* 年号の幅を揃える */
    flex-shrink: 0;
    white-space: nowrap;
}

.title {
    font-size: 24px;
    font-weight: 500;
    color: #3E9AE7;
}

/* 本文テキスト */
.description {
    margin-left: 145px;
    line-height: 2.5; 
}

.description p:last-child {
    margin-bottom: 0;
}

/* 好きなこと */
.hobby__container {
    width: 1080px;
    margin: 80px auto 20px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
}

.hobby__nav {
    padding-top: 20px;
}

.hobby__item {
    transition: all 0.6s ease, transform 0.25s ease;
    margin-bottom: 140px;
}

.js-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.9s ease;
}

.js-fade-in.is-show {
    opacity: 1;
    transform: translateY(0);
}

.hobby__item-title {
    font-size: 20px;
    font-weight: 500;
    color: #3E9AE7;
}

.hobby__item-text {
    line-height: 1.87;
    padding-top: 7px;
}

/* ==========================================
レスポンシブ：768px以下（タブレット・スマホ）
   ========================================== */
@media screen and (max-width: 768px) {
.section_title-wrapper {
    width: 100%;
    margin: 0   auto;
}

/* 自己紹介 */
.about-wrapper {
    width: 100%;
    flex-direction: column;
    margin: 180px auto;
}

.name {
    font-weight: 700;
    font-size: 24px;
    padding-bottom: 30px;
}

.about-item {
    padding:80px 0 0;
}

/* 強み */
.strengths-wrapper {
    width: 100%;
    flex-direction: column;
    margin: 80px auto;
}

.strengths__point {
    padding-top: 30px;
}

.strengths__point-sub br {
    display: none;
}

.strengths-wrapper:nth-child(3) {
    flex-direction: column-reverse;
}

/* スキル */
.skill-wrapper {
    width: 100%;
}

/* 経歴 */
.timeline {
    width: 100%;
    position: relative;
    margin-top: 90px;
    margin-left: -30px;
    padding-left: 30px; /* 線とコンテンツが重ならないよう余白を作る */
}

/* 本文テキスト */
.description {
    margin-left: 0px;
    line-height: 2.5; 
}

.description p br {
    display: none;
}

.hobby__container {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-items: center;
    margin-bottom: 160px;
    justify-content: space-between;
}

.hobby__container .hobby__item:nth-last-child(-n+1) {
    margin-bottom: 0;
}
}

/* ==========================================
レスポンシブ：480px以下（小型スマホ）
   ========================================== */
@media screen and (max-width: 480px) {
body {
    background-image: url(../image/bg-sp.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section_title-main {
    font-size: 16px;
    text-align: center;
}

.section_title-sub {
    font-size: 22px;
    text-align: center;
}

/* 経歴 */
.name {
    font-size: 20px;
}

.career {
    line-height: 2;
}

.career br {
    display: none;
}

.thoughts {
    line-height: 2;
}

.thoughts br {
    display: none;
}

/* 強み */
.strengths__point {
    font-size: 20px;
}

/* スキル */
.skill-title {
    font-size: 20px;
}

.skill-wrapper {
    padding: 40px 30px;
}

.skill-point {
    font-size: 18px;
}

.skill-item {
    display: block;
}

.skill-point-title {
    font-size: 18px;
}

.skill-point-text {
    padding-top: 15px;
}

/* 経歴 */
.timeline::before {
    height: 89%;
}

.circle__img {
    transform:translateY(-10px)
}

.timeline-content {
    margin-left: 50px;
}

.timeline-heading {
    flex-direction: column;

}

.timeline-heading {
    gap: 15px;

}

.title {
    font-size: 20px;
}

.description {
    line-height: 2;
}

/* 好きなこと */
.hobby__container {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-bottom: 160px;
}

.hobby__item {
    margin-bottom: 80px;
}

.hobby__item:last-child {
    margin-bottom: 0;
}
}