/* Note Articles Section Styles - 横長サムネイル版 */
.section-note-articles {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    overflow: visible;
    border-top: 4px solid #008236;
    z-index: 1;  /* z-indexを設定 */
}

.section-note-articles .wrapper{
    width:1280px;
}

@media only screen and (max-width: 767px) {
    .section-note-articles .wrapper{
    max-width: 100%;
}
}

.note-header {
    text-align: center;
    margin-bottom: 50px;
}

.note-header .common-title {
    font-size: 34px;
    font-weight: bold;
    color: #008236;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.note-header .common-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 8px;
    background: url(/img/common/img_title_line.png) repeat-x;
    background-size: 13px 8px;
}

.note-subtitle {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* スライダーラッパー */
.note-articles-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
    padding-top: 15px;
}

.note-articles-slider {
    padding: 0 50px;
    overflow: visible;
}

/* 記事アイテム */
.note-article-item {
    padding: 0 12px;
    outline: none;
}

/* PC版：横長カードレイアウト */
.note-article-link {
    display: flex;
    background: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 220px;  /* 高さを調整 */
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.note-article-link:hover {
    transform: translateY(-3px);  /* 上方向への移動 */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #008236;
}

.note-article-image {
    width: 220px; 
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}



.note-article-link:hover .note-article-image img {
    transform: scale(1.08);
}

/* コンテンツ部分 */
.note-article-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}

.note-article-date {
    color: #008236;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

/* タイトル - 2行表示に調整 */
.note-article-title {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    line-height: 1.45;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    max-height: 5.7em;
    word-wrap: break-word;
}

.note-article-more {
    color: #008236;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: color 0.3s ease;
}

.note-article-link:hover .note-article-more {
    color: #006429;
}

.note-article-more:after {
    content: "→";
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.note-article-link:hover .note-article-more:after {
    margin-left: 10px;
}

/* スライダー矢印のカスタマイズ */
.note-articles-slider .slick-arrow {
    z-index: 10;
    background: white;
    border: 2px solid #008236;
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

.note-articles-slider .slick-arrow:hover {
    background: #008236;
}

.note-articles-slider .slick-prev {
    left: 0;
}

.note-articles-slider .slick-next {
    right: 0;
}

/* ドットインジケーター */
.note-articles-slider .slick-dots {
    bottom: -40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.note-articles-slider .slick-dots li {
    margin: 0 5px;
}

.note-articles-slider .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: 2px solid #008236;
    border-radius: 50%;
    background: white;
    outline: none;
}

.note-articles-slider .slick-dots li button:before {
    display: none;
}

.note-articles-slider .slick-dots li.slick-active button {
    background: #008236;
}

/* フッター */
.note-footer {
    text-align: center;
    margin-top: 60px;
}

/* 大画面対応（1400px以上） */
@media only screen and (min-width: 1400px) {
    .note-articles-slider-wrapper {
        max-width: 1480px;
    }
    
    .note-article-image {
        width: 320px;  /* より大きな画像 */
    }
    
    .note-article-title {
        font-size: 18px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* タブレット対応 */
@media only screen and (max-width: 1024px) and (min-width: 768px) {
    .note-articles-slider-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .note-articles-slider {
        padding: 0 40px;
    }
    
    .note-article-link {
        height: 200px;
    }
    
    .note-article-image {
        width: 240px;
    }
    
    .note-article-content {
        padding: 20px;
    }
    
    .note-article-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* モバイル対応 */
@media only screen and (max-width: 767px) {
    .section-note-articles {
        padding: 40px 0;
        overflow: hidden;  /* モバイルでは隠す */
    }
    
    .note-header {
        margin-bottom: 30px;
    }
    
    .note-header .common-title {
        font-size: 0.42rem;
        padding-bottom: 0.25rem;
    }
    
    .note-header .common-title::after {
        width: 80px;
        height: 0.1rem;
        background-size: 0.15rem 0.1rem;
    }
    
    .note-subtitle {
        font-size: 0.24rem;
    }
    
    .note-articles-slider-wrapper {
        margin: 0 -0.1rem;
        padding-bottom: 1rem;
        padding-top: 0;
    }
    
    .note-articles-slider {
        padding: 0;
    }
    
    .note-article-item {
        padding: 0 0.1rem;
    }
    
    /* モバイル版は縦型カード */
    .note-article-link {
        flex-direction: column;
        height: auto;
        margin-bottom: 0.3rem;
        border: 1px solid #d0d0d0;
    }
    
    .note-article-link:hover {
        transform: none;  /* モバイルではホバー無効 */
    }
    
    .note-article-image {
        width: 100%;
        height: 200px;
        padding: 0;
    }
    
    .note-article-image img {
        object-fit: cover;
    }
    
    .note-article-image img[src*="no_image"] {
        object-fit: contain;
        padding: 30px;
    }
    
    .note-article-content {
        padding: 0.4rem;
    }
    
    .note-article-date {
        font-size: 0.22rem;
        margin-bottom: 0.15rem;
    }
    
    /* モバイル版は3行表示 */
    .note-article-title {
        font-size: 0.3rem;
        margin-bottom: 0.2rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: 4.5em;
    }
    
    .note-article-more {
        font-size: 0.22rem;
    }
    
    .note-footer {
        margin-top: 0.6rem;
    }
    
    .note-articles-slider .slick-arrow {
        display: none !important;
    }
    
    /* モバイル版のドット表示 */
    .note-articles-slider .slick-dots {
        bottom: -0.6rem;
        position: relative;
        display: flex !important;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin: 0.3rem 0 0 0;
    }
    
    .note-articles-slider .slick-dots li {
        margin: 0 0.08rem;
    }
    
    .note-articles-slider .slick-dots li button {
        width: 0.15rem;
        height: 0.15rem;
        border: 1px solid #008236;
        background: white;
    }
    
    .note-articles-slider .slick-dots li.slick-active button {
        background: #008236;
    }
}

/* 記事がない場合 */
.note-no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

@media only screen and (max-width: 767px) {
    .note-no-articles {
        padding: 1rem 0.5rem;
        font-size: 0.26rem;
    }
}