@charset "UTF-8";

/* 共通部分
------------------------------- */
html {
    font-size: 100%;
}

body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    line-height: 1.7;
    color: #432;
    background-color: azure;
}

html,
body {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* レイアウト */
.wrapper {
    max-width: 1120px;
    width: 100%;
    margin: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: azure;
    transition: box-shadow 0.3s ease;
    box-shadow: none;
}

.wrapper.is-scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-logo {
    text-align: center;
    margin-top: 20px;
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* 上に移動する距離（お好みで調整） */
  }
  100% {
    transform: translateY(0);
  }
}

.header-logo img {
    width: 100px;
    animation: floating 2s ease-in-out infinite;
}

/* 見出し */

.heading-large {
    font-size: 3rem;
    text-align: center;
    margin: 80px 0 40px;
    position: relative;
}

.heading-large.__about::after {
    content: "私について";
    position: absolute;
    font-size:  18px;
    font-weight: normal;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.heading-large.__work::after {
    content: "制作物";
    position: absolute;
    font-size:  18px;
    font-weight: normal;
    top: 90%;;
    left: 50%;
    transform: translateX(-50%);
}

.heading-large.__contact::after {
    content: "コンタクト";
    position: absolute;
    font-size:  18px;
    font-weight: normal;
    top: 90%;;
    left: 50%;
    transform: translateX(-50%);
}

.works {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin: 30px 0;
}

.works-content img {
    border-radius: 10px;
}


/* ヘッダー
------------------------------- */
nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    left: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease-in-out;
}

.open nav {
    translate: -100% 0;
}

.main-nav {
    /* background-color: pink; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    text-align: center;
    height: 100%;
}

.main-nav a {
    font-size: 2rem;
    color: dimgrey;
    font-weight: bold;
    display: block;
}

.main-nav a:hover {
    color: #0bd;
}

.nav-btn {
    position: fixed;
    top: 17px;
    right: 20px;
    /* background-color: pink; */
    width: 44px;
    height: 44px;
    padding: 8px;
    background-color: beige;
    border-radius: 22px;
}

.nav-btn-line {
    display: block;
    height: 1px;
    width: 30px;
    background-color: #432;
    position: relative;
    margin: auto;
    transition: all 0.3s ease-in-out;
}

.open .nav-btn-line {
    background-color: transparent;
}

.nav-btn-line::before,
.nav-btn-line::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background-color: #432;
    position: absolute;
    transition: inherit;
    /* inherit...先祖要素から値を継承 */
}

.nav-btn-line::before {
    top: -10px;
}

.open .nav-btn-line::before {
    rotate: 45deg;
    top:0
}

.nav-btn-line::after {
    top: 10px;
}

.open .nav-btn-line::after {
    rotate: -45deg;
    top: 0;
}


.visually-hidden {
    position: fixed !important;
    /* keep it on viewport */
    top: 0px !important;
    left: 0px !important;
    /* give it non-zero size, VoiceOver on Safari requires at least 2 pixels
     before allowing buttons to be activated. */
    width: 4px !important;
    height: 4px !important;
    /* visually hide it with overflow and opacity */
    opacity: 0 !important;
    overflow: hidden !important;
    /* remove any margin or padding */
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    /* ensure no other style sets display to none */
    display: block !important;
    visibility: visible !important;
}

.header-title {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-left: 40%;
    font-weight: bold;
    opacity: 0; /* 念のため最初は透明にしておく */
    animation-name: fadeIn;      /* アニメーション名 */
    animation-duration: 3s;      /* かける時間（3秒かけて現れる） */
    animation-fill-mode: forwards; /* アニメーション終了後の状態を維持 */
}

@keyframes fadeIn {
    0% {
        opacity: 0; /* 最初は見えない状態 */
    }
    100% {
        opacity: 1; /* 完全に表示される状態 */
    }
}

.myName {
    font-size: 60px;
}

.myRole {
    font-size: 20px;
    letter-spacing: 2px;
    margin-top: 20px;
}

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 800px;
}

.about-content span {
    font-size: 20px;
    margin-left: 20px;
    
}

.about-txt {
    margin-left: 30px;
    font-size: 16px;
}

.contact {
    text-align: center;
    font-size: 18px;
}

.contact a {
    color: #000;
}

.bluesea {
    width: 100%;
    height: 400px;
    background-image: url(../images/sea.jpg);
    background-repeat: repeat-x;
    margin-top: 50px;
}

/* フッター
------------------------------- */
.copyright {
    background-color: #432;
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
    color: #fff;
}

/* デスクトップ版
------------------------------- */
@media (min-width: 800px) {
    .header-logo {
        width: 100px;
        padding: 0;
    }

    /* 見出し */
    .heading-large {
        font-size: 3rem;
    }

    /* ヘッダー */
    .header {
        display: flex;
        justify-content: space-between;
    }

    .header img {
        width: 150px;
        padding-top: 15px;
        margin-left: 40px;
    }

    nav{
        position: static;
        background-color: transparent;
    }

    .main-nav {
        position: absolute;
        flex-direction: row;
        right: 90px;
        top: 40px;

    }

    .main-nav a {
        font-size: 1.7rem;
    }

    .nav-btn{
        display: none;
    }

    .header-title {
    margin-left: 40%;
    }

    .myName {
        font-size: 8rem;
    }

    .myRole {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-top: 20px;
    }

    /* フッター */
    .page-footer {
        padding-top: 12rem;
    }
}