@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* タイムライン全体のコンテナ */
.custom-timeline {
    max-width: 800px;
    margin: 2em auto;
    position: relative;
}

/* 垂直な線 */
.custom-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 17px; /* 丸の中央に合わせる */
    width: 2px;
    background-color: #ddd;
    z-index: 0;
}

/* 各アイテム（横並びにする） */
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* 左側（数字）のエリア */
.timeline-left {
    flex-shrink: 0;
    width: 36px;
    margin-right: 20px;
}

/* 数字の丸 */
.timeline-marker {
    width: 36px;
    height: 36px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* 右側（コンテンツ）のエリア */
.timeline-right {
    flex-grow: 1;
    padding-top: 4px; /* 数字と高さを微調整 */
}

/* タイトル：Cocoonの標準スタイルを打ち消す */
.timeline-right .timeline-title {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: none !important; /* 左側の棒を消す */
    background: none !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    color: #333 !important;
}

/* 本文 */
.timeline-right .timeline-text {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .timeline-left {
        width: 30px;
        margin-right: 15px;
    }
    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .custom-timeline::before {
        left: 14px;
    }
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
