
/* hamaken Section Styles */
#hamaken {
    background-color: #141515;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: aliceblue;
    height: auto;
    padding: 0;
    margin: 0;
    margin-top: 60px;
}

.hamaken-content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 50px;
}

.hamaken-content h2 {
    font-size: 2rem;
    font-weight: bolder;
    margin-bottom: 10px;
}

.hamaken-img {
    grid-column: 2;
    position: relative; /* 相対位置 */
    height: 100%;
}

.hamaken-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cross-mark {
    position: absolute;
    top: 30px;
    right: 50px;
    width: 30px;
    height: 30px; /* 高さを修正 */
    cursor: pointer;
}

.cross-mark::before,
.cross-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background-color: #050505;
    transform-origin: center;
}

.cross-mark::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cross-mark::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* タブレットサイズのスタイル */
@media (min-width: 768px) and (max-width: 1024px) {
    .hamaken-content {
        padding: 20px;
    }

    .hamaken-img img {
        width: 100%;
        height: auto;
    }

    .cross-mark {
        width: 20px;
        height: 20px;
    }
}

/* iPhoneサイズのスタイル */
@media (max-width: 480px) {
    #hamaken {
        display: flex;
        flex-direction: column; /* 縦並びに変更 */
    }

    .hamaken-content {
        order: 2; /* コンテンツを2番目に表示 */
        padding: 20px;
    }

    .hamaken-img {
        order: 1; /* 画像を1番目に表示 */
        width: 100%;
        height: auto;
    }

    .cross-mark {
        width: 15px;
        height: 15px;
    }
}
