* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 1rem;
}

header {
    background-color: #0a0a0a;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}
.profile-container {
    display: inline-block;
    width: 150px;
    height: 150px;
    perspective: 1000px; /* 3D 効果 */
}

.profile-wrapper {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

.profile-img, .profile-qr {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
}

.profile-img {
    background: url('image/profile.png') no-repeat center/cover;
}

.profile-qr {
    background: url('image/qr.svg') no-repeat center/cover;
    transform: rotateY(180deg) ;
}

/* ホバー時の動作 (PC) */
.profile-container:hover .profile-wrapper {
    transform: rotateY(180deg);
}


/* タップ時の動作 (スマホ) */
@media (hover: none) {
    .flip-container:active .flipper {
        transform: rotateY(180deg);
    }
}

/*.profile-img {*/
/*    border-radius: 50%;*/
/*    width: 150px;*/
/*    height: 150px;*/
/*    object-fit: cover;*/
/*    border: 3px solid #fff;*/
/*    margin-bottom: 1.5rem;*/
/*}*/

h1 {
    color: #fff;
    font-size: 3.0rem;
    margin-bottom: 0.8rem;
}

h2 {
    color: #fff;
    font-size: 2.0rem;
    margin-bottom: 0.8rem;
}

h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

p {
    color: #bbb;
    font-size: 1.2rem;
}

.links {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* 画像同士の間隔を設定 */
    padding: 10px;
}

.icon {
    width: 80px; /* アイコンの大きさ（必要に応じて調整） */
    height: 80px; /* アイコンの大きさ（必要に応じて調整） */
}

.button {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 0.5rem;
    flex: 1 1 auto;
    text-align: center;
}

.button:hover {
    background-color: #555;
}

footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 1rem;
    color: #777;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    p {
        font-size: 1rem;
    }

    .profile-img .profile-qr {
        width: 240px;
        height: 240px;
    }

    .button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }


    .icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 375px) {
    .profile-img .profile-qr {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    p {
        font-size: 0.9rem;
    }

    .button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .icon {
        width: 60px;
        height: 60px;
    }
}
