.earphones-container {

}

.earphones-wrapper {
    font-size: 16px;
    line-height: 1.7;
    width: 100%;
    overflow: hidden;
}

.earphones-wrapper img {
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
}

.earphones-top {
    position: relative;
    text-align: center;
}

.earphones-top img {
    width:100%
}

.earphones-top p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    color: #00288c;
    font-weight: bold;
    height: 38.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    width: 75%;
    max-width: 630px;
    margin: auto;
    text-align: left;
    word-break: auto-phrase;
}

.earphones-main h2 {
    text-align:center;
    padding: 16px 0;
}

.earphones-main h2:has( + .earphones-sports) {
    background-size: auto auto;
    background-color: #1aba8d;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, #00b280 11px, #00b280 22px );
}

.earphones-main h2:has( + .earphones-commute) {
    background-size: auto auto;
    background-color: #5e479b;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, #6752a1 11px, #6752a1 22px );
}

.earphones-main h2:has( + .earphones-work) {
    background-size: auto auto;
    background-color: #df7f1a;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, #db7000 11px, #db7000 22px );
}

.earphones-main h2:has( + .earphones-home) {
    background-size: auto auto;
    background-color: #5276b9;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, #476db5 11px, #476db5 22px );
}


.earphones-block {
    display:grid;
    justify-items:center;
    gap: 40px;
    padding: 70px 0;
}

.earphones-block > div:not(.earphones-link) {
    width: 90%;
    max-width: 900px;
    background: white;
}

.earphones-block:not(:last-child) > div:not(.earphones-link) {
    box-shadow: 5px 5px 5px #00000059;
    border-radius: 30px;
    overflow: hidden;
}

.earphones-block:not(.earphones-present) h3 {
    font-size: 25px;
    color: white;
    font-weight: bold;
    padding: 5px 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.earphones-sports h3 {
    background:#2bbf95;
}

.earphones-commute h3 {
    background:#8253a5;
}

.earphones-work h3 {
    background:#eb9326;
}

.earphones-home h3 {
    background:#5f80d6;
}

.earphones-product {
    display: flex;
}

h3 + .earphones-product {
    padding: 15px 30px 25px 10px;
}

.earphones-product > div:first-child {
    aspect-ratio: 21/14;
    width: 340px;
}

.earphones-product > div:first-child a {
    display: flex;
    height:100%;
    width:100%;
    justify-content: center;
    align-items: center;
    background: white;
}

.earphones-product > div:first-child a img {
    height: 90%;
    width: 80%;
    object-fit:contain;
}

.earphones-recommend .earphones-product > div:first-child a img {
    width:90%;
}

.earphones-product > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.earphones-product > div:last-child p:first-child {
    font-weight:bold;
    font-size: 20px;
    margin-bottom: .5em;
}

.earphones-recommend .earphones-product > div:last-child p:first-child {
    font-size: 16px;
}

.earphones-recommend {
    background:#f7effe;
    position: relative;
}

.earphones-work .earphones-recommend {
    background:#fffedf;
}

.earphones-recommend h4 {
    background: #f798ff;
    text-align: center;
    max-width: 300px;
    margin: auto;
    height: 52px;
    display: grid;
    justify-items: center;
    align-items: center;
    border-radius: 30px;
    position: absolute;
    left: 0;
    right: 0;
    top: -25px;
}

.earphones-work .earphones-recommend h4 {
    background:#97d157;
}

.earphones-recommend > div {
    display:flex;
    padding: 60px 40px 40px;
    box-sizing: border-box;
    gap: 30px;
    justify-content: space-evenly;
}

.earphones-recommend > div > div {
    gap: 15px;
}

.earphones-recommend > div > .earphones-product > div:first-child {
    aspect-ratio: 46/32;
    width: 145px;
}

.earphones-sports {
    background:url(../img/bg1.png) center / 1120px 100% ;
}

.earphones-commute {
    background:url(../img/bg2.png) center / 1120px 100% ;
}

.earphones-work {
    background:url(../img/bg3.png) center / 1120px 100% ;
}

.earphones-home {
    background:url(../img/bg4.png) center / 1120px 100% ;
}

.earphones-present h2 {
    position: absolute;
    top: -65px;
    left: 0;
    right: 0;
    margin: auto;
    width: 313px;
    height: 20px;
}

.earphones-present h3 {
    font-size:20px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: .5em;
}

.earphones-present.earphones-block {
    background:url(../img/bg5.png) center / 1120px;
}

.earphones-present.earphones-block > div {
    background: #EBAC00;
    background: linear-gradient(90deg, rgba(235, 172, 0, 1) 0%, rgba(239, 192, 54, 1) 25%, rgba(247, 228, 154, 1) 53%, rgba(185, 127, 75, 1) 79%, rgba(129, 34, 3, 1) 100%);
    padding: 11px;
    box-sizing:border-box;
}

.earphones-present.earphones-block > div > div {
    background: #f9eee4;
    padding: 8px;
}

.earphones-present.earphones-block > div > div > div {
    background: #EBAC00;
    background: linear-gradient(90deg, rgba(235, 172, 0, 1) 0%, rgba(239, 192, 54, 1) 25%, rgba(247, 228, 154, 1) 53%, rgba(185, 127, 75, 1) 79%, rgba(129, 34, 3, 1) 100%);
    padding: 1px;
}

.earphones-present.earphones-block > div > div > div > div {
    background: #f9eee4;
    padding: 50px 50px;
    position: relative;
}

.earphones-present-content {
    display: flex;
    gap:30px;
}

.earphones-present-content > div:first-child {
    width: 49%;
    max-width: 435px;
    position:relative;
}

.earphones-present-content > div:first-child:before {
    content:"";
    display:block;
    --size:130px;
    width:var(--size);
    height:var(--size);
    background: url(../img/icon_number.png?250820) center /100% no-repeat;
    position: absolute;
    top: -27px;
    left: -35px;
}

.earphones-present-content > div:last-child {
    flex:1;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.earphones-present-detail {
    background: white;
    padding: 60px 40px 40px;
    margin: 55px 0 0px;
    border-radius: 30px;
    position: relative;
    display: grid;
    justify-items: center;
}

.earphones-present-detail h3 {
    background:#f83370;
    color:white;
    width:180px;
    height: 52px;
    text-align:center;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:30px;
    font-size:22px;
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    margin: auto;
}

.earphones-present-detail h3 + p {
    line-height: 2;
}

.earphones-present-detail dl {
    display:flex;
    flex-wrap:wrap;
    --dtwidth: 119px;
    --dlgap: 2px;
    margin: 10px 0 0;
    gap: 20px var(--dlgap);
}

.earphones-present-detail dt {
    width:var(--dtwidth);
    font-weight: bold;
}

.earphones-present-detail dd {
    width: calc(100% - var(--dtwidth) - var(--dlgap));
}

.earphones-present-detail dt,
.earphones-present-detail dd {
    border-top: 1px dashed #f94e83;
    padding-top: 20px;
}

.earphones-link a {
    display: flex;
    background: white;
    width: 320px;
    text-align: center;
    height: 70px;
    justify-content: center;
    align-items: center;
    margin: 30px 0 5px;
    background: #6480d5;
    border: 2px solid #ffffff;
    outline: 9px solid #6480d5;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition:.2s;
    box-sizing: border-box;
}

.earphones-link a:hover {
    text-decoration:none;
    opacity: .7;
}

.earphones-sns {
    margin: 1.5em 0;
    display: flex;
    gap: 10px;
}

.earphones-sns:before {
    content:"|";
    order:2;
}

.earphones-wrapper .earphones-sns a {
    /* background:grey; */
    color:#f02d6c;
    display: inline-block;
}

.earphones-wrapper .earphones-sns a:first-child {
    order:1;
}

.earphones-wrapper .earphones-sns a:last-child {
    order:3;
}

@media (max-width: 480px){
    .earphones-sns {
    flex-direction:column;
        justify-content:center;
        align-items:center;
    }
    .earphones-sns:before {
        display:none;
    }
}

@media (max-width: 800px){

    .earphones-top p {
        text-align:center;
        font-size: clamp(12px,3.8vw,20px);
        width: 91%;
        text-align: left;
        font-weight: normal;
        height: 39%;
    }

    .earphones-block > div {
        width: 90%;
    }

    .earphones-product > div:last-child p:first-child {
        font-size: 16px;
    }

    .earphones-wrapper {
        font-size: 14px;
    }

    .earphones-wrapper a {
        color:#795284;
        text-decoration:underline;
        display: inline;
    }

    .earphones-recommend > div {
        padding: 50px 20px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .earphones-recommend h4 {
        height: 40px;
        max-width: 206px;
        top: -20px;
    }

    .earphones-recommend h4 img {
        width: 140px;
    }

    h3 + .earphones-product {
        padding: 30px 20px 40px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .earphones-recommend .earphones-product > div:last-child p:first-child {
        font-size: 14px;
    }

    .earphones-block {
        gap: 25px;
        padding: 40px 0px;
    }

    .earphones-main > h2 img {
        height: 33px;
        width: auto;
    }

    .earphones-block:not(.earphones-present) h3 {
        font-size: 21px;
        height: 34px;
    }
    .earphones-block:not(:last-child) > div {border-radius: 15px;}

    .earphones-recommend > div > .earphones-product > div:first-child {
        width: 115px;
    }

    .earphones-link a {
        color: white;
        margin: 35px auto 20px;
        height: 55px;
        border-width: 1px;
        text-decoration: none;
        width: 280px;
        display: flex;
    }

    .earphones-present.earphones-block {
    padding-top:60px;        
    }

    .earphones-present-content > div:first-child {
        width: 100%;
    }

    .earphones-present-content > div:first-child:before {
        --size: 85px;
        top: -12px;
        left: -19px;
    }

    .earphones-present-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .earphones-present.earphones-block > div > div > div > div {
        padding: 25px 20px 20px;
    }

    .earphones-present-detail {
        padding: 40px 20px 20px;
        border-radius: 15px;
        margin: 45px 0 0px;
    }

    .earphones-present-detail h3 {
        font-size: 18px;
        height: 41px;
        top: -21px;
    }

    .earphones-present-detail dl {
        flex-direction: column;
        gap: 10px;
    }

    .earphones-present h2 {
        width: 250px;
        top: -56px;
    }

    .earphones-present.earphones-block > div {
        padding: 10px;
    }

    .earphones-present.earphones-block > div > div {
        padding: 5px;
    }

    .earphones-present.earphones-block > div > div > div {
        padding: 1px;
    }
    .earphones-present-detail dt,
    .earphones-present-detail dd {
        width: auto;
    }

    .earphones-present-detail dd {
            border-top: 0;
            padding-top: 0;
    }

    .earphones-product > div:first-child {
        aspect-ratio: 30 / 14;
    }

    .earphones-product > div:first-child a img {
        max-height: 200px;
    }

    .earphones-present h3 {
        font-size: 16px;
        margin-bottom: 0.7em;
    }

}