@charset "UTF-8";



body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 20px;
    /* opacity: 0; */
    animation: fadeInUp 1s ease forwards;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadelnUp 0.3s ease forwards;

}


/*video*/
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}



.nav-circles {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.nav-circle {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    /* transform: translateY(50px); */
}


v-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.nav-circle:hover::before {
    left: 100%;
}

.nav-circle:hover {
    /* transform: translateY(-10px) scale(1.05); */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.nav-circle span {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-section {
    background: rgba(255, 255, 255, 0.9);
    /* 半透明の白背景 */
    border-radius: 20px;
    /* 角を丸く */
    padding: 60px 40px;
    /* 内側の余白 */
    margin-bottom: 60px;
    box-shadow: 影をつける;
    backdrop-filter: blur(10px);
    /* 背景をぼかす（ガラス風） */
    transform: translateY(30px);
    /* 下に少しずらす */
    animation: fadeInUp 1s ease 1.2s forwards;
    /* スクロールで浮き上がる */
    margin-top: 300px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    /* 疑似要素 */
    width: 60px;
    height: 3px;
    background: グラデーションのライン;
    margin: 20px auto;
    border-radius: 2px;
}

.about-text {
    width: 70%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* 左右2カラム構成 */
    gap: 40px;
    align-items: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    /* はみ出しをカット */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* 軽い影 */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 中央で切り抜き */
    display: block;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    /* 行間を広めに */
    color: #555;
}

.footer {
    text-align: center;
    padding: 40px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.element {
    animation: fadeInUp 0.5s ease-out;
}

.nav-circle.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}



.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

html {
    scroll-behavior: smooth;
}

.page-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/*workはここから*/

#work {
    margin-top: 300px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3列固定 */
    gap: 30px;
}

.works-grid .work-item,
.works-grid .work-ad,
.works-grid .work-bunner,
.works-grid .work-site,
.works-grid .work-site2 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works-grid .work-item video,
.works-grid .work-ad img,
.works-grid .work-bunner img,
.works-grid .work-site img,
.works-grid .work-site2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-item:hover,
.work-ad:hover,
.work-bunner:hover,
.work-site:hover,
.work-site2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/*skillはここから*/
.about-skill {
    margin-top: 300px;
}

.skill-contents {
    display: flex;
    justify-content: center;
    /* ←中央揃え */
    gap: 40px;
    /* ←間隔を縮める */
    flex-wrap: wrap;
    align-items: stretch;
}

.coding-skill,
.design-skill,
.communication-skill {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    /* ←柔軟に大きさを決める */
    max-width: 350px;
    /* ←これくらいが見た目良い */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/*.skill-icon {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 2px solid #999;
    position: relative;
}*/
/* アイコンエリア */
.skill-icon {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #999;
    overflow: visible;
    padding: 10px
}

/* 単一画像用 */
.skill-icon img {
    max-width: 70px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* デザインスキル用（2つの画像） */
.design-icon {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.design-icon img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    gap: 8px;
}

.communication-icon img {
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    ;
}


/* 各スキルごとの枠線色 */
.coding-icon {
    border-color: #667eea;
}

.design-icon {
    border-color: #667eea;
    ;
}


.communication-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 10px;
    border: 2px solid #4facfe;
    overflow: hidden;
}


/* テキストスタイル */
.skill-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.skill-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.skill-description {
    font-size: 0.9rem;
    color: #333;
    /* より濃い色 */
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
    /* より太い文字 */
    margin-top: auto;
    /* 下揃え */
}



/* Contact section */
.about-contact {
    margin: 300px 0;
}

.email-section {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 50px;
}

.email-address {
    font-size: 20px;
    color: #333;
    font-weight: normal;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.email-address:hover {
    color: #667eea;
}

/* SNSアイコン */
.sns-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.sns-icon {
    width: 60px;
    height: 60px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sns-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sns-icon.x-icon {
    background-color: #000;
}

.sns-icon.x-icon:hover {
    background-color: #333;
}

.sns-icon.instagram-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sns-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 50px;
    right: 5%;
    width: 80px;
    height: 80px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: scale(1.1);
}

.back-to-top-arrow {
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

.back-to-top-text {
    color: white;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}



/* キーフレームアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   レスポンシブデザイン - タブレット（768px以下）
   ============================================== */
@media screen and (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .nav-circles {
        gap: 30px;
        margin-bottom: 60px;
    }

    .nav-circle {
        width: 140px;
        height: 140px;
    }

    .nav-circle span {
        font-size: 1.1rem;
    }

    .about-section {
        padding: 40px 20px;
        margin-top: 200px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-image::before {
        font-size: 3rem;
    }

    .about-text {
        font-size: 1rem;
    }

    #work {
        margin-top: 200px;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }




    .about-skill {
        margin-top: 200px;
    }

    .skill-contents {
        gap: 30px;
    }

    .coding-skill,
    .design-skill,
    .communication-skill {
        flex: 1 1 280px;
        padding: 30px 20px;
    }

    .about-contact {
        margin: 200px 0;
    }

    .email-section {
        padding: 20px;
    }

    .email-address {
        font-size: 16px;
    }

    .sns-section {
        gap: 20px;
    }

    .sns-icon {
        width: 50px;
        height: 50px;
    }

    .sns-icon svg {
        width: 25px;
        height: 25px;
    }

    .back-to-top {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 20px;
    }

    .back-to-top-arrow {
        font-size: 20px;
    }

    .back-to-top-text {
        font-size: 8px;
    }

    .page-nav {
        right: 15px;
    }
}

/* ==============================================
   レスポンシブデザイン - スマートフォン（480px以下）
   ============================================== */
@media screen and (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .nav-circles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 40px;
        justify-items: center;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-circle {
        width: 100px;
        height: 100px;
    }

    .nav-circle span {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .about-section {
        padding: 30px 15px;
        margin-top: 150px;
        border-radius: 15px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .about-content {
        gap: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-image::before {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    #work {
        margin-top: 150px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .work-ad img,
    .work-bunner img,
    .work-site img,
    .work-site2 img {
        height: 150px;
    }

    .work-content {
        padding: 15px;
    }

    .work-title {
        font-size: 1rem;
    }

    .about-skill {
        margin-top: 150px;
    }

    .skill-contents {
        gap: 20px;
    }

    .coding-skill,
    .design-skill,
    .communication-skill {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 25px 15px;
    }

    .skill-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .skill-icon img {
        max-width: 50px;
        max-height: 50px;
    }

    .design-icon img {
        max-width: 35px;
        max-height: 35px;
    }

    .communication-icon img {
        max-width: 60px;
        max-height: 60px;
    }

    .skill-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .skill-subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .skill-description {
        font-size: 0.8rem;
    }

    .about-contact {
        margin: 150px 0;
    }

    .email-section {
        padding: 15px;
    }

    .email-address {
        font-size: 14px;
        word-break: break-all;
    }

    .sns-section {
        gap: 15px;
    }

    .sns-icon {
        width: 45px;
        height: 45px;
    }

    .sns-icon svg {
        width: 20px;
        height: 20px;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 15px;
    }

    .back-to-top-arrow {
        font-size: 16px;
    }

    .back-to-top-text {
        font-size: 7px;
    }

    .page-nav {
        display: none;
        /* 小さな画面では非表示 */
    }
}

/* ==============================================
   超小型デバイス（320px以下）
   ============================================== */
@media screen and (max-width: 320px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .nav-circles {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 180px;
    }

    .nav-circle {
        width: 80px;
        height: 80px;
    }

    .nav-circle span {
        font-size: 0.7rem;
    }

    .about-section {
        padding: 20px 10px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .email-address {
        font-size: 12px;
    }
}

/* ==============================================
   レスポンシブデザイン - タブレット（768px以下）
   ============================================== */
@media screen and (max-width: 768px) {
    .hero-video {
        min-width: 120%;
        /* タブレットでより拡大 */
        min-height: 120%;
        transform: translate(-50%, -50%) scale(1.2);
    }

    .hero-section {
        height: 90vh;
        /* 少し高さを調整 */
    }
}

/* ==============================================
   レスポンシブデザイン - スマートフォン（480px以下）
   ============================================== */
@media screen and (max-width: 480px) {
    .hero-video {
        min-width: 130%;
        /* スマートフォンでさらに拡大 */
        min-height: 130%;
        transform: translate(-50%, -50%) scale(1.3);
    }

    .hero-section {
        height: 80vh;
        /* モバイルでは少し低く */
    }
}

/* ==============================================
   超小型デバイス（320px以下）
   ============================================== */
@media screen and (max-width: 320px) {
    .hero-video {
        min-width: 140%;
        /* 超小型デバイスで最大拡大 */
        min-height: 140%;
        transform: translate(-50%, -50%) scale(1.4);
    }

    .hero-section {
        height: 75vh;
    }
}

/* スマートフォン用（480px以下） */
@media screen and (max-width: 480px) {
    .hero-section {
        height: 60vh;
        overflow: hidden;
    }

    .hero-video {
        width: 100vw;
        height: 60vh;
        object-fit: cover;
        transform: translate(-50%, -50%);
        /* すべてのscaleとmin-サイズ設定を削除 */
    }
}

/* タブレット用（768px以下） */
@media screen and (max-width: 768px) {
    .hero-section {
        height: 70vh;
        overflow: hidden;
        /* はみ出し防止 */
    }

    .hero-video {
        width: 100vw;
        height: 70vh;
        object-fit: cover;
        transform: translate(-50%, -50%);
        /* min-width, min-height, scaleは削除 */
    }
}

@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        /* 1カラムにする */
        text-align: center;
        justify-items: center;
        /* Grid内の要素を中央に */
    }

    .profile-image {
        margin: 0 auto;
        /* 中央寄せ */
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        height: 60vh;
        /* スマホでは少し小さめに */
    }
}
@media screen and (max-width: 480px) {

    /* ヒーローセクションの高さを制限 */
    .hero-section {
        height: 60vh;
        overflow: hidden;
        position: relative;
    }

    /* 背景動画のサイズを制限 */
    .hero-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 60vh;
        object-fit: cover;
        transform: translate(-50%, -50%);
        z-index: -2;
        /* 既存のmin-width、min-height、scaleを無効化 */
        min-width: unset !important;
        min-height: unset !important;
    }

    /* About Meセクションの上マージンを調整 */
    .about-section {
        margin-top: 50px !important;
        position: relative;
        z-index: 10;
    }

    /* ナビゲーションサークルの調整 */
    .nav-circles {
        margin-bottom: 20px;
    }
}

/* タブレット対応（768px以下）- 軽微な調整のみ */
@media screen and (max-width: 768px) {
    .hero-section {
        height: 70vh;
        overflow: hidden;
        position: relative;
    }

    .hero-video {
        width: 100vw;
        height: 70vh;
        object-fit: cover;
        transform: translate(-50%, -50%);
        z-index: -2;
        /* 既存のmin-width、min-height、scaleを無効化 */
        min-width: unset !important;
        min-height: unset !important;
    }

    .about-section {
        margin-top: 100px !important;
        position: relative;
        z-index: 10;
    }
}

/* 超小型デバイス（320px以下） */
@media screen and (max-width: 320px) {
    .hero-section {
        height: 50vh;
        overflow: hidden;
    }

    .hero-video {
        width: 100vw;
        height: 50vh;
        object-fit: cover;
        transform: translate(-50%, -50%);
        z-index: -2;
        min-width: unset !important;
        min-height: unset !important;
    }

    .about-section {
        margin-top: 30px !important;
    }
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    color: white;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }