@charset "UTF-8";

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

body {
    background: url(../img/background.webp) top left repeat;
    background-size: 300px;
}

.header-nav {
    display: flex;
    background: #f2f2f2;
    border-bottom: 3px solid #555;
    justify-content: center;
}

.header-ul {
    display: flex;
    list-style: none;
    gap: 100px;
    /* margin: 0; */
}

.top {
    font-weight: 900;
    flex: 1;
    padding: 0.5px;
    text-align: center;
    color: #000;
    text-decoration: none;
    border-right: 1.8px solid #888;
}

.top:hover {
    background: #064b78;
    color: white;
}

.heading {
    text-align: center;
    font-size: 40px;
    font-weight: 1000;
    /* アニメーションの長さ */
    animation: gaming 5s linear infinite;
}

@keyframes gaming {

    /* 色の指定 */
    0% {
        color: Magenta;
    }

    33% {
        color: yellow;
    }

    66% {
        color: Cyan;
    }

    100% {
        color: Magenta;
    }
}


.counter-1 {
    display: flex;
}

.counter {
    transform: scale(2.0);
    transform-origin: top left;
    /* 拡大の基準点を左上に設定 */
    margin-bottom: 25px;
}

.subheading {
    font-size: 18px;
    color: #000;
    text-align: center;
    background: #f2f2f2;
    outline: 1px solid #ccc;
    padding: 7px;
    margin: 20px 0 15px;
    letter-spacing: 2px;
}

.profile-image {
    margin-left: 10%;
    margin-top: 4%;
}

.name {
    font-weight: 600;
}

.profile-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile {
    display: flex;
    margin-left: 20%;
}

.explanation {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    position: relative;
    background: #ffffff;
    border-radius: 70px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    margin: 0 auto;
}

.subheading {
    display: flex;
    flex-direction: row;
}

.contact-inner {
    display: flex;
    justify-content: center;
}

.works {
    display: flex;
}

.works-tab {
    width: 280px;
    padding: 30px;
    margin: 20px auto;
    background: #feffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.works-tab:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.text {
    font-weight: 700;
}

.works-item {
    margin-left: 20px;
    padding-top: 20px;
}

.works-panelc {
    width: 80%;
}

/* スキル全体 */
.skills {
    width: 100%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    padding: 50px;
}

/* スキルカード */
.skill-card {
    background: #fff;
    border-radius: 20px;

    padding: 30px 30px;
    box-sizing: border-box;

    min-height: 260px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* スキル名 */
.skill-card h3 {
    margin: 0 0 5px;
    font-family: serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* 星 */
.stars {
    color: #4a9bff;
    font-size: 30px;
    letter-spacing: 3px;

    margin-bottom: 15px;
}

/* 説明文 */
.skill-card p {
    margin: 0;

    color: #3d3940;
    font-family: sans-serif;
    font-size: 19px;
    line-height: 1.7;
}

/* イルカ */
.dolphin {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.character img {
    width: 80px;
    display: block;
    margin: 0;
}

.speech {
    position: absolute;
    right: 0;
    bottom: 60px;
    width: 170px;
}

.speech {
    background: white;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 12px 18px;
    margin-bottom: 10px;
    margin-right: 30px;
    max-width: 220px;
    font-size: 14px;

    /* 最初は少し透明 */
    opacity: 0;
    transform: translateY(10px);

    transition: 0.5s;
}

.speech.show {
    opacity: 1;
    transform: translateY(0);
}

.contact {
    display: flex;
}

.hand {}

/* チェックボックスを隠す */
#change {
    display: none;
    gap: 30px;
}

/* 画像のサイズ */
.photo {
    display: block;
    width: 300px;
    cursor: pointer;
    margin-left: 40%;
}

/* 画像 */
.photo img {
    width: 100%;
    display: block;

}

/* 2枚目は最初は隠す */
.img2 {
    display: none !important;
}

/* 画像をクリックしたら1枚目を隠す */
#change:checked~.photo .img1 {
    display: none !important;
}

/* 画像をクリックしたら2枚目を表示 */
#change:checked~.photo .img2 {
    display: block !important;
}