.credit-card-info {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border: 1px solid #e0e0e0;
}
.card-main-info {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #fafafa;
    align-items: center;
}
.card-image-section {
    flex: 0 0 380px;
    text-align: center;
}
.card-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card-source {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}
.card-source a {
    color: #0066cc;
    text-decoration: none;
}
.card-source a:hover {
    text-decoration: underline;
}
.card-details-section {
    flex: 1;
    min-width: 0;
}
.card-details-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 15px;
}
.card-details-table tr {
    border-bottom: 1px solid #e0e0e0;
}
.card-details-table tr:last-child {
    border-bottom: none;
}
.card-details-table th {
    width: 120px;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
}
.card-details-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
}
.brand-logos {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.brand-logo {
    width: auto;
    max-width: 60px;
    object-fit: contain;
}
.brand-logos img {
	max-width: 100%;
	width: 40%;
}
.insurance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.insurance-list li {
    padding: 3px 0;
    font-size: 14px;
}
.card-note {
    margin-top: 15px;
    padding: 10px;
    font-size: 12px;
    color: #666;
    background: #f9f9f9;
    border-left: 3px solid #ff9800;
}

/* 特徴グリッド - チェックボックス対応 */
.card-features-grid {
	display: flex;
	border-top: 1px solid #e0e0e0;
	border-left: 1px solid #e0e0e0;
	flex-wrap: wrap;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 80px;
    transition: all 0.3s ease;
    position: relative;
    width: calc(100% / 3);
}

.feature-item.feature-checked {
    background: #cbffce;
}

.feature-item.feature-unchecked {
    background: #f5f5f5;
}

.feature-label {
	font-size: 16px;
	color: #000;
	line-height: 1.3;
	font-weight: bold;
    position: relative;
    z-index: 2;
}

.feature-checked .feature-label {
    color: #007e09;
}

.feature-unchecked .feature-label {
    color: #999;
}

.feature-icon {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.feature-checked .feature-icon {
    color: #4caf50;
}

.feature-unchecked .feature-icon {
    color: #bdbdbd;
}

.feature-rating {
    font-size: 24px;
    font-weight: bold;
	position: absolute;
	font-size: 3em;
	opacity: 0.4;
}
.rating-excellent {
    color: #ff6b6b;
}
.rating-good {
    color: #4dabf7;
}
.rating-fair {
    color: #ff7800;
}
.rating-none {
    color: #adb5bd;
}
.feature-item:has(.feature-rating.rating-none) {
  background-color: #f5f5f5;
}
.feature-item:has(.feature-rating.rating-good) {
  background-color: #f0f6ff;
}
.feature-item:has(.feature-rating.rating-excellent) {
  background-color: #fff1f1;
}
.feature-item:has(.feature-rating.rating-fair) {
  background-color: #fffcf0;
}

.card-recommendations {
	background: #fff8f0;
	border: 3px solid #ff9800;
	width: 90%;
	margin: 0 auto 25px;
}
.recommendation-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
}
.recommendation-icon {
    font-size: 20px;
}
.recommendation-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b00;
}
.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.recommendation-list li {
	padding: 8px 0;
	font-size: 16px;
	color: #333;
	line-height: 1.6;
	font-weight: bold;
}

/* 星評価の表示（CSS完全管理） */
.star-rating-display {
    position: relative;
    display: inline-block;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 3px;
}

.star-rating-background {
    position: relative;
    color: #e0e0e0;
}

.star-rating-foreground {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #ffc107;
}

.star-rating-foreground span,
.star-rating-background span {
    display: inline-block;
    letter-spacing: 3px;
}

/* ボタンスタイル */
:root{
    /* color type A */
    --main_color : #2ccc38 ;
    --sub_color : #96502c  ;
    --base_color : #fff ;
    --accent_color : #bb9c8c ;

    /* color type B */
    /* --main_color : #161058 ;
    --sub_color : #E3C3C4  ;
    --base_color : #FFFFFF ;
    --accent_color : #B2626F ; */

    /* color type C */
    /* --main_color : #92001B ;
    --sub_color : #F2F2F2  ;
    --base_color : #FFFFFF ;
    --accent_color : #B08E00 ; */
}

.button{
    position : relative ;
    display : flex ;
    justify-content : center ;
    align-items : center ;
    width : 240px ;
    height : 56px ;
    text-decoration : none ;
    font-size : 14px ;
    font-family : serif ; 
    font-weight : bold ;
    box-sizing : border-box ;
    border : solid 3px var(--main_color) ;
    color : var(--main_color) ;
    background : var(--base_color) ;
}
.button::before,
.button::after{
    content : '' ;
    position : absolute ;
    z-index : 3 ;
    right : 24px ;
    width : 10px ;
    height : 3px ;
    background : var(--main_color) ;
    transition : all .2s ease ;
}
.button::before{
    top : calc( 50% - 4px ) ;
    transform : skew( 45deg ) ; 
}
.button::after{
    bottom : calc( 50% - 4px ) ;
    transform : skew( -45deg ) ; 
}
.button__cloud1,
.button__cloud2{
    position : absolute ;
    z-index : 4 ;
    width : 8px ;
    height : 8px ;
    background : var(--sub_color) ;
    transition : all ease-in-out .6s ;
    opacity : 0 ;
}
.button__cloud1{
    top : -4px ;
    left : -48px ;
}
.button__cloud2{
    bottom : -4px ;
    right : -48px ;
}
.button__cloud1::before,
.button__cloud1::after,
.button__cloud2::before,
.button__cloud2::after{
    content : '' ;
    position : absolute ;
    width : 48px ;
    height : 8px ;
    border-radius : 4px ;
    background : var(--sub_color) ;
}
.button__cloud1::before{
    top : -8px ;
    left : -16px ;
}
.button__cloud1::after{
    bottom : -8px ;
    right : -12px ;
}
.button__cloud2::before{
    top : -8px ;
    left : -24px ;
}
.button__cloud2::after{
    bottom : -8px ;
    right : -24px ;
}
.button__inner{
    position : relative ;
    display : flex ;
    justify-content : center ;
    align-items : center ;
    width : calc( 100% - 4px ) ;
    height : calc( 100% - 4px ) ;
    box-sizing : border-box ;
    border : solid 1px var(--main_color) ;
}
.button__inner::before{
    content : '' ;
    position : absolute ;
    z-index : 2 ;
    top : 0 ;
    right : 2px ;
    bottom : 0 ;
    margin : auto 0 ;
    width : 0 ;
    height : calc( 100% - 4px ) ;
    background : var(--main_color) ;
}
.button__pattern{
    position : absolute ;
    z-index : 1 ;
    top : 0 ;
    left : 2px ;
    bottom : 0 ;
    margin : auto 0 ;
    width : 40px ;
    height : calc( 100% - 4px ) ;
    opacity : 0 ;
    background-color : var(--accent_color) ;
    background-image :  repeating-linear-gradient(45deg, var(--base_color) 25%, transparent 25%, transparent 75%, var(--base_color) 75%, var(--base_color)), repeating-linear-gradient(45deg, var(--base_color) 25%, var(--accent_color) 25%, var(--accent_color) 75%, var(--base_color) 75%, var(--base_color));
    background-position : 0 0 , 8px 8px ;
    background-size : 16px 16px ;
}
.button__text {
	position: relative;
	z-index: 3;
	transition: all .6s ease;
	font-size: 18px;
	padding-left: 13px;
}
.button:hover::before,
.button:hover::after{
    background : var(--base_color) ;
}
.button:hover .button__cloud1{
    left : -8px ;
    opacity : 1 ;
}
.button:hover .button__cloud2{
    right : -8px ;
    opacity : 1 ;
}
.button:hover .button__text{
    color : var(--base_color) ;
}
.button:hover .button__inner::before{
    animation : bg 1.2s ease ;
    animation-fill-mode : forwards ;
}
.button:hover .button__inner::before{
    animation : bg 1.2s ease ;
    animation-fill-mode : forwards ;
}
.button:hover .button__pattern{
    animation : pattern 1.2s ease ;
    animation-fill-mode : forwards ;
}
@keyframes bg {
    0%  { width : 0 ; }
    30% { width : calc( 100% - 4px ) ; }
    50% { width : calc( 100% - 4px ) ; }
    100%{ width : calc( 100% - 40px - 6px ) ; }
}
@keyframes pattern {
    0%  { opacity : 0 ; }
    30% { opacity : 0 ; }
    31% { opacity : 1 ; }
    100%{ opacity : 1 ; }
}

/* スマホでは常にホバー状態を維持 */
@media screen and (max-width: 768px) {
    .button::before,
    .button::after{
        background : var(--base_color) ;
    }
    
    .button__cloud1{
        left : -8px ;
        opacity : 1 ;
    }
    
    .button__cloud2{
        right : -8px ;
        opacity : 1 ;
    }
    
    .button__text{
        color : var(--base_color) ;
    }
    
    .button__inner::before{
        width : calc( 100% - 40px - 6px ) ;
    }
    
    .button__pattern{
        opacity : 1 ;
    }
}

.post_content .credit-card-info .container {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 2em 0 !important;
}

.post_content .credit-card-info .container p {
	display: none;
}
.feature-icon {
	display: none;
}
.flex2_app_sss {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 15px;
	padding: 0 30px 30px;
}
.flex2_app_sss_item, .card-details-section {
	width: 45%;
}
.flex2_app_sss_item_ttt {
	font-size: 1.3em;
	font-weight: 500;
	display: block;
	border: 1px solid #00a40c;
	width: fit-content;
	margin: 0 auto 20px;
	padding: 5px 30px;
	color: #00a40c;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
.card-main-info {
    flex-direction: column;
    padding: 20px;
}
.card-image-section {
    flex: 1;
}
.card-details-table th {
    width: 100px;
    font-size: 13px;
    padding: 10px;
}
.card-details-table td {
    font-size: 13px;
    padding: 10px;
}
.card-features-grid {
    grid-template-columns: repeat(3, 1fr);
}
.feature-item {
    padding: 12px 8px;
    min-height: 70px;
}
.feature-label {
    font-size: 11px;
}
.feature-icon {
    font-size: 20px;
}
.feature-rating {
    font-size: 20px;
}
.card-recommendations {
    padding: 15px 20px;
}
.recommendation-title {
    font-size: 15px;
}    
.recommendation-list li {
    font-size: 13px;
}
}

@media screen and (max-width: 480px) {
.card-features-grid {
    grid-template-columns: repeat(2, 1fr);
}
.card-details-table th {
    width: 90px;
    font-size: 12px;
    padding: 8px;
}
.card-details-table td {
    font-size: 12px;
    padding: 8px;
}
.brand-logo {
    height: 24px;
}
.feature-item {
    padding: 10px 5px;
    min-height: 65px;
}
.feature-label {
    font-size: 10px;
}
.feature-icon {
    font-size: 18px;
}
.feature-rating {
    font-size: 18px;
}
}