/* Feature List Page Styles */

.feature-list-page {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-section__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: #fff;
    padding-bottom: 0;
}

.feature-section__label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 0;
    color: #23282d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.feature-list-hero {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 260px;
    margin-bottom: 32px;
}
.feature-list-hero__label {
    background: transparent;
    color: #1F272F;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.feature-list-hero__image {
    flex: 1;
    overflow: hidden;
}
.feature-list-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-list-content {
    display: flex;
    gap: 40px;
}

.feature-list-main {
    flex: 1;
}

.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-list-item {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.feature-list-item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.feature-list-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.feature-list-item img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    margin: 0 auto;
    display: block;
    border: 1px solid #CDD7E6;
}
.feature-list-item .feature-list-item-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.feature-list-item-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1F272F;
}
.feature-list-item-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.feature-list-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.feature-list-tag {
    background: #D5D5D5;
    color: #1F272F;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 4px;
    display: inline-block;
}

.feature-list-tag--selected {
    background: #1F272F;
    color: #fff;
    border: 2px solid #1F272F;
    font-weight: normal;
}

.feature-list-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.feature-list-sidebar__section {
    margin-bottom: 32px;
}
.feature-list-sidebar__title {
    font-size: 16px;
    font-weight: bold;
    color: #1F272F;
    margin-bottom: 12px;
    border-bottom: 2px solid #1F272F;
    padding-bottom: 4px;
}
.feature-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-list-sidebar__posts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list-sidebar__posts li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.feature-list-sidebar__posts img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    background: #f6f8fa;
}
.feature-list-sidebar__posts span {
    font-size: 14px;
    color: #23282d;
}

/* Fit the default logo (logo-red.svg) in feature grid and sidebar */
.feature-list-item img,
.feature-list-sidebar__posts img {
    background: #fff;
    object-fit: contain;
    padding: 8px;
}

.feature-sidebar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.feature-sidebar-link:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .feature-list-page {
        max-width: 100vw;
        padding: 0 16px;
    }
    .feature-list-content {
        flex-direction: column;
    }
    .feature-list-sidebar {
        width: 100%;
        flex-direction: row;
        gap: 24px;
    }
    .feature-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .feature-list-hero {
        flex-direction: column;
        min-height: unset;
    }
    .feature-list-hero__label {
        min-width: unset;
        width: 100%;
    }
    .feature-list-hero__image {
        width: 100%;
        min-height: 160px;
    }
    .feature-list-grid {
        grid-template-columns: 1fr;
    }
    .feature-list-sidebar {
        flex-direction: column;
        width: 100%;
    }
}

.feature-detail-content {
    max-width: 870px;
    margin: 0 auto;
    font-family: 'Noto Sans JP', 'Noto Sans', 'Hiragino Sans', 'Meiryo', sans-serif;
}

.feature-detail-content img,
.feature-detail-content video,
.feature-detail-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.feature-detail-content table {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    display: block;
}

.feature-detail-content {
    word-break: break-word;
    overflow-wrap: break-word;
}

.feature-detail-content pre {
    overflow-x: auto;
    max-width: 100%;
}

.feature-detail-header {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-header-tag {
    display: inline-block;
    background: #D5D5D5;
    color: #333;
    border-radius: 16px;
    padding: 4px 16px;
    font-size: 15px;
    font-weight: 500;
}

.feature-header-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-header-title-wrap {
    width: 100%;
}

.feature-header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1F272F;
    display: block;
    margin-bottom: 4px;
}

.feature-header-underline {
    width: 100%;
    height: 2px;
    background: #1F272F;
    margin-bottom: 16px;
}

.feature-header-tags-inline {
    color: #888;
    font-size: 14px;
    margin-right: 12px;
}

.feature-back-rounded-link {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 18px 0;
    text-align: center;
    font-weight: bold;
    color: #333;
    border: 2px solid #333;
    border-radius: 40px;
    font-size: 1.3rem;
    background: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.feature-back-rounded-link:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* Our Stories Section Styles */
.our-stories-section {
    background: #fff;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-bottom: 60px;
    margin-bottom: 100px;
    overflow: visible;
    border-top: 1px solid #ddd;
    margin-top: 85px;
}

.our-stories-section__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: #fff;
    padding-bottom: 0;
}

.our-stories-section__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    background: #fff;
    padding: 60px 0 0 0;
    border-radius: 0;
}

.our-stories-section__header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.our-stories-section__header-right {
    display: flex;
    align-items: center;
}

.our-stories-section__label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 0;
    color: #23282d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.our-stories-section__title {
    font-size: 48px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background: #fff;
}

/* Feature List Item Styles */
.feature-list-item-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em; /* 2 lines * 1.4 line-height */
}

.feature-list-item-tags {
    line-height: 1.4;
    max-height: 2em; /* Further increased height to prevent cropping */
    overflow: hidden;
    /* No ellipsis - tags will be cut off cleanly at 1 line */
}

/* PAGINATION STYLES - Same as product list */
.ev-pagination-spacer{
    width: 100%;
    height: 60px;
}

.ev-pagination-wrapper{
    padding: 20px;
    width: 70%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.ev-productList_pagination {
    display: flex;
    gap: 16px;
    font-size: 20px;
    color: #666;
}

.ev-productList_pagination a {
    text-decoration: none;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.ev-productList_pagination__arrow {
    font-size: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px;
}

.ev-productList_pagination a:hover {
    background: #eee;
}

.ev-productList_pagination .ev-productList_pagination__active {
    font-weight: bold;
    border: 1px solid #000;
    color: #000;
}

.our-stories-section__btn {
    width: 175px;
    height: 48px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #1F272F;
    font-weight: 700;
    border-radius: 32px;
    border: 2px solid #1F272F;
    outline: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
    cursor: pointer;
    letter-spacing: 0.04em;
}

.our-stories-section__btn-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
}

.our-stories-section__btn-chevron svg {
    display: inline-block;
    vertical-align: middle;
    stroke: #1F272F;
}

.our-stories-section__btn:hover {
    background: transparent;
    color: #1F272F;
}

.our-stories-section__carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}

.our-stories-section__carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 42px;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 0;
    margin-bottom: 0;
}

.our-stories-section__item {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    height: 287px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding-bottom: 0;
    transition: transform 0.2s ease;
}

.our-stories-section__item:hover {
    transform: translateY(-2px);
}

.our-stories-section__item-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.our-stories-section__img-wrap {
    width: 100%;
    height: 287px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.our-stories-section__img {
    width: 100%;
    height: 287px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #fff;
}

.our-stories-section__content {
    padding: 10px;
    text-align: left;
    background: #fff;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.our-stories-section__item-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    color: #1F272F;
    text-shadow: none;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

