
.l-main {
    max-width: 540px;
    margin: 0 auto;
    background-color: #fff;
}

header.ecn-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 100;
    height: 56px;
    width: 100%;
    background-color: #ffffff;
    padding-left: 16px;
    box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.14);
}

img.ecn-logo {
    width: 185px;
    height: auto;
}

p.ecn-pr-text {
    background-color: #F7F6FF;
    padding: 12px 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    font-size: 12px;
    line-height: 1.8;
}

.ecn-gensen-container {
    margin: 0 auto;
    display: flex
;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 0;
}

img.gensen-icon {
    width: 114px;
    height: auto;
}

h2.gensen-title {
    display: flex
;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(113.075deg, #9797FF 0%, #4826F4 100%);
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    padding: 2px 24px;
    border-radius: 4px;
}
h3.gensen-aori {
    color: #352876;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}


.ecn-gensen-related-items-container {
    padding: 0px 16px;
    padding-bottom: 32px;
    align-items: flex-start;
    justify-content: flex-start; 
    overflow-x: scroll; 
}

.gensen-comparison-grid-wrapper {
    width: max-content;
}

.grid-header-row, .grid-feature-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.item-header-cell {
    padding: 8px 8px 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid #D8D8D8;
    margin-left: -1px;
    margin-bottom: -1px;
    width: 150px;
    line-height: 1.6;
}

.item-data-cell {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid #D8D8D8;
    margin-left: -1px;
    margin-bottom: -1px;
    width: 150px;
    line-height: 1.6;
}
.feature-label-cell {
    color: #ffffff;
    background-color: #5957F0;
    padding: 8px 16px;
    font-weight: 600;
    line-height: 1.6;
    border: 1px solid #D8D8D8;
    margin-left: -1px;
    margin-bottom: -1px;
}

.item-banner-thumb {
    width: 131px;
    height: 131px;
        border-radius: 4px;
}

a.item-title-link {
    color: #5958F0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

a.item-title-link:hover {
    opacity: 0.5;
    transition: all 0.3s ease;
}

a.official-site-button {
    background-color: #FFA600;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.6;
    transition: all 0.3s ease;
    animation: btnanime 2s infinite;
    box-shadow: 0 6px 0 #D98D00;
    position: relative;
}

@keyframes btnanime {
    0% {
        top: 0;
        box-shadow: 0 6px 0 #D98D00
    }

    10% {
        top: 6px;
        box-shadow: 0 0 0 #D98D00
    }

    20% {
        top: 0;
        box-shadow: 0 6px 0 #D98D00
    }

    30% {
        top: 6px;
        box-shadow: 0 0 0 #D98D00
    }

    40% {
        top: 0;
        box-shadow: 0 6px 0 #D98D00
    }
}



a.official-site-button:hover {
    background-color: #FBB24C;
    opacity: 1;
}

.onayami-url:hover {
    background-color: #FBB24C;
    opacity: 1;
}


.ecn-nayami-container {
    background-color: #F7F6FE;
    display: flex;
    flex-direction: column;
}


.nayami-intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    margin-top: 32px;
}

h2.nayami-aori {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    width: 100%;
    display: flex;
    justify-content: center;
    background: linear-gradient(113.075deg, #9797FF 0%, #4826F4 100%);
    padding: 11px;
}

p.nayami-text {
    line-height: 1.6;
    text-align: center;
}

/* ボタン切り替えセクションのスタイル */
.onayami-category-buttons-section {
    display: flex;
    flex-direction: column; /* ボタンとコンテンツを縦に並べる */
    gap: 32px; /* ボタン群とコンテンツ間の隙間 */
}

.category-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    padding: 0 16px;
}

.category-button {
    background-color: #ffffff;
    color: #352876;
    border: 1px solid #352876;
    border-radius: 40px;
    transition: all 0.3s ease;
    width: 159px;
    height: 40px;
    font-weight: 600;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.category-button:last-child {
    width: 100%;
    max-width: 326px;
}

.category-button:hover {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.category-button.active {
    background-color: #352876;
    color: #fff;
    border-color: #352876;
    opacity: 1;
}

.category-content-display {
    padding: 32px 16px;
    background-color: #fff;
    width: 100%;
}
ul.onayami-category-item-list {
    margin-top: 4px;
}

h3.onayami-osusume {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}
a.onayami-link {
    color: #5957F0 !important;
    font-size: 28px;
    line-height: 1.6;
    font-weight: 600;
}

a.onayami-link:hover {
    text-decoration: underline;
    opacity: 1;
    transition: all 0.3s ease;
}

.category-content {
    display: none; /* デフォルトでは非表示 */
}

.category-content.active {
    display: block; /* アクティブなコンテンツを表示 */
}





.onayami-category-item-list .item-detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}


.onayami-category-item-list .item-detail-card p {
    font-size: 16px;
    line-height: 1.6;
}
.onayami-category-item-list .item-detail-card img {
    width: 100%;
    height: auto;
    max-width: 400px;
}

li.item-detail-card-nayami {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 12px;
}

p.onayami-text-card {
    font-size: 16px;
    line-height: 1.6;
}

p.official-link-wrapper {
    width: 100%;
}

a.onayami-url {
    display: flex;
    background-color: #FFA600;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    color: #ffffff;
    padding: 8px;
    font-size: 14px;
    border-radius: 12px;
    line-height: 1.6;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: btnanime 2s infinite;
    box-shadow: 0 8px 0 #D98D00;
    position: relative;
}

@keyframes btnanime {
    0% {
        top: 0;
        box-shadow: 0 8px 0 #D98D00
    }

    10% {
        top: 8px;
        box-shadow: 0 0 0 #D98D00
    }

    20% {
        top: 0;
        box-shadow: 0 8px 0 #D98D00
    }

    30% {
        top: 8px;
        box-shadow: 0 0 0 #D98D00
    }

    40% {
        top: 0;
        box-shadow: 0 8px 0 #D98D00
    }
}

a.onayami-url:after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: solid 3px #fff;
    border-right: solid 3px #fff;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

span.onayami-url-text {
    font-size: 20px;
}

.ecn-5sen-container {
    background-color: #352876;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #ffffff;
    gap: 12px;
}

h4.fivesen-title {
    background-color: #ffffff;
    color: #F05759;
    padding: 4px 16px;
    border-radius: 4px;
}

p.fivesen-aori {
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    background: linear-gradient(113.075deg, #9797FF 0%, #4826F4 100%);
    padding: 11px;
        font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

img.fivesen-icon {
    height: 120px;
}

.fivesen-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 0px;
    gap: 12px;
}
.fivesen-item-card:last-child {
    padding: 32px 16px;
}

a.fivesen-item-title-link {
    color: #5957F0 !important;
    font-size: 28px;
    line-height: 1.6;
    font-weight: 600;
    text-align: center;
}

a.fivesen-item-title-link:hover {
    text-decoration: underline;
    opacity: 1;
    transition: all 0.3s ease;
}


img.fivesen-item-banner-thumb {
    width: 100%;
    height: auto;
}

.fivesen-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;    gap: 12px;
}
p.fivesen-intro-text {
    font-size: 14px;
    line-height: 1.6;
}

.fivesen-item-details-grid {
    display: grid;
    grid-template-columns: 138px 1fr; /* 項目名と値の2列レイアウト */
    border-top: 1px solid #eee;
    flex-grow: 1; 
    width: 100%;
}

.fivesen-feature-label-cell {
    background-color: #5957F0;
    color: #fff;
    border: 1px solid #D8D8D8;
    margin: -1px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 12px 16px;
    font-weight: 600;
}

.fivesen-feature-label-cell > small {
    font-size: 12px;
    line-height: 1.8;
    font-weight: 400;
}

.fivesen-item-data-cell {
    padding: 12px 16px;
    border: 1px solid #D8D8D8;
    margin-top: -1px;
    display: flex;
    align-items: center;
}

.fivesen-item-footer {
    margin-top: 24px;
}

.fivesen-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fivesen-title img {
    width: 41px;
}

.kuchikomi-title {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.kuchikomi-title img {
    width: 32px;
}

p.item-kuchikomi {
    font-size: 16px;
    font-weight: 600;
    color: #352876;
}

p.item-kuchikomi-text {
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid #D8D8D8;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 24px;
    background-color: #F7F6FF;
}

.ecn-mayoi-container {
    background-color: #352876;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #ffffff;
    gap: 12px;
}

img.mayoi-icon {
    height: 120px;
}


h5.item-name-link {
    color: #5957F0 !important;
    font-size: 24px;
    line-height: 1.6;
    font-weight: 600;
    text-align: center;
}

p.ossusume-text {
    font-size: 14px;
    line-height: 1.6;
}

p.item-osusume-text {
    margin: 12px 0;
    padding: 8px 14px;
    border: 1px solid #D8D8D8;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.8;
    background-color: #F7F6FF;
}

li.item-detail-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 16px 32px;
    gap: 12px;
}

footer.ecn-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    z-index: 100;
    height: 56px;
    width: 100%;
    background-color: #ffffff;
    padding: 0 16px ;
    box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.14);
    align-items: center;
}

a.privacy-policy-link {
    font-size: 12px;
    line-height: 1.8;
    color: #999999;
}

.item-data-cell-kigou {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

img.radio-status-icon {
    width: 34px;
    height: 34px;
}

h5.item-title-in-grid {
    color: #5957F0;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h5.item-title-in-grid:hover {
    text-decoration: underline;
    opacity: 1;
    transition: all 0.3s ease;
}

a.radio-combined-link {
    color: #5957F0;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

a.radio-combined-link:hover {
    text-decoration: underline;
    opacity: 1;
    transition: all 0.3s ease;
}

a.radio-combined-link:hover {
    text-decoration: underline;
    opacity: 1;
    transition: all 0.3s ease;
}

img.nayami-icon {
    height: 120px;
    width: auto;
}

span.text-highlight {
    background: linear-gradient(transparent 79%, #E9F100 60%);
    display: inline-block;
    line-height: 1.45;
}

.ecn-fv-bottom-item > p {
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    font-size: min(3.733vw, 20px);
}

.ecn-fv-bottom-item > img {
    min-width: 64px;
    width: 17.06vw;
    max-width: 84px;
}

.ecn-fv-bottom-section {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
        gap: min(8.53vw, 42px);
    justify-content: center;
    margin: 32px 0;
}

.ecn-fv-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}