/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'YakuHanJP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    background-color: #FAFAFA;
}

a {
    color: inherit;
    text-decoration: none;
}



/* ========================================
   First View - 新規追加
======================================== */

.first-view {
    width: 100%;
    height: 100vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
}

/* ヘッダー */
.fv-header {
    position: absolute;
    background-image: url(../img/mv-toppage.jpg);
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    z-index: 100;
    border-bottom: 1px solid #333;
    padding-bottom: 25px;
}

.fv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}


.fv-name {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #333;
    padding-bottom: 8px;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background-color: #666;
}

/* グラデーション背景 */
.gradient-background {
    width: 100%;
    height: 100%;
    background-image: url(../img/mv-toppage.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 写真エリア */
.fv-photo-area {
    position: relative;
    width: 560px;
    height: 380px;
}

.fv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

/* テキストラベル共通スタイル */
.fv-label {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 32px;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* welcome to my */
.fv-label-top {
    top: -20px;
    left: -40px;
    font-size: 22px;
}

/* portfolio */
.fv-label-bottom {
    bottom: -24px;
    right: -50px;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.fv-header {
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.fv-header.scrolled {

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


/* ========================================
   ハンバーガーメニュー
======================================== */

/* ハンバーガーメニューボタン */
.hamburger-menu {
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ハンバーガーメニューが開いている時 */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.hamburger-menu:hover span {
    background-color: #666;
}

/* ナビゲーションメニュー本体 */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 60px 40px;
}

.nav-menu.active {
    right: 0;
}

/* 閉じるボタン */
.nav-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-close span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.nav-close span:nth-child(1) {
    transform: rotate(45deg);
}

.nav-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.nav-close:hover span {
    background-color: #666;
}

/* ナビゲーションリスト */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* メニューが開いた時のアニメーション */
.nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-menu.active .nav-item:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-menu.active .nav-item:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-link {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: #77B0FF;
}

/* ナビゲーションフッター */
.nav-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid #E5E5E5;
}

.nav-email {
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #999;
}

/* オーバーレイ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
    .nav-menu {
        width: 200px;
        padding: 60px 40px 40px;
    }

    .nav-close {
        top: 30px;
        right: 24px;
    }

    .nav-link {
        font-size: 28px;
    }

    .nav-item {
        margin-bottom: 32px;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    .hamburger-menu {
        width: 28px;
        height: 20px;
    }

    .nav-menu {
        padding: 60px 30px 30px;
    }

    .nav-close {
        top: 20px;
        right: 16px;
        width: 28px;
        height: 28px;
    }

    .nav-link {
        font-size: 18px;
    }

    .nav-item {
        margin-bottom: 28px;
    }

    .nav-email {
        font-size: 11px;
    }
}

/* ========================================
   以下は既存CSS（変更なし）
======================================== */

/* Section Title */
.section-title {

    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 100px;
    margin-left: 120px;
    color: #333;
}

.section-mini-title {
    margin-left: 120px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #77B0FF;
}

/* About Section */
.about-section {
    max-width: 1440px;
    padding: 120px 130px;
    align-items: center;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 30px;


}



.about-image .image-placeholder {
    width: 260px;
    height: 340px;
    background-color: #F0F0F0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 画像が入った時のスタイル */
.about-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: flex;
}

.about-image {
    display: flex;
    margin: 0 4rem;
}

.about-text {
    flex: 1;
    padding-top: 40px;
}

.name-mini {
    font-size: 10px;
    color: #777070;
    letter-spacing: 3px;
    margin-bottom: 10px;

}

.about-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 5px;
}

.about-description {
    font-size: 13px;
    line-height: 3;
    letter-spacing: 2px;
    margin-bottom: 50px;
    color: #444;
}

.button {
    padding-left: 900px;
}

/* About Section - リンクボタン */
.about-link {
    display: inline-block;
    font-size: 13px;
    color: #333;
    padding: 12px 32px;
    border: 1px solid #333;
    border-radius: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.about-link:hover {
    background-color: #B8D4FF;
    color: #000;
}

/* リンクのホバーアニメーション */
.about-link,
.works-link,
.view-all-link {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.about-link:hover,
.works-link:hover,
.view-all-link:hover {
    background-color: #B8D4FF;
    color: #000;
}

/* 下線を削除 */
.about-link::after {
    display: none;
}

/* 下線を削除 */
.about-link::after {
    display: none;
}

.view-all-link::after {
    display: none;
}

/* ========================================
   Works Section - 1カラムカード型デザイン
======================================== */

/* ========================================
   Works Section - 1カラムカード型デザイン
======================================== */

.works-section {
    background-color: #f7f6f4;
    padding: 150px 0 100px;
}

.works-div {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.workssection-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-left: 25px;
}

.works-mini-title {
    margin-left: 30px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #77B0FF;
}

/* カードリスト */
.works-list {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* カード共通スタイル */
.work-card {

    display: flex;
    align-items: center;
    gap: 60px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}


.work-card-img {
    width: auto;
    min-height: 350px;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* 左画像レイアウト */
.work-card-left {
    flex-direction: row;
}

/* 右画像レイアウト */
.work-card-right {
    flex-direction: row-reverse;
}

/* 画像ラッパー */
.work-card-image-wrapper {
    flex: 0 0 480px;
    width: 480px;
}

.work-card-image-link {
    display: block;
    text-decoration: none;
}

.work-card-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    position: relative;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
    filter: brightness(1.06);
}

/* カードコンテンツ - 矢印を右下に配置するためのフレックス構造 */
.work-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-card-info {
    margin-top: 120px;
    flex: 1;
}

.work-card-category {
    font-size: 11px;
    color: #999999;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.work-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #222;
    line-height: 1.4;
}

.work-card-description {
    font-size: 13px;
    line-height: 2.2;
    margin-bottom: 28px;
    color: #555;
    
}

/* タグエリア */
.work-card-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.work-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #CFE3FF;
    border-radius: 999px;
    font-size: 12px;
    color: #000;
    letter-spacing: 2px;
    background-color: #ffffff;
    transition: all 0.25s ease;
}

.work-card:hover .work-tag {
    background-color: #EAF2FF;
    border-color: #AFCBFF;
}

/* 矢印リンク - 右下に配置 */
.work-card-link {
    align-self: flex-end;
    text-decoration: none;
    margin-top: 60px;
}

.chevron-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #D4C4A8;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: #D4C4A8;
    padding-left: 2px;
    transition: background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.work-card-link:hover .chevron-circle {
    background-color: #D4C4A8;
    color: #fff;
    transform: translateX(4px);
}

/* すべて見るボタン */
.all-view-wrap {
    text-align: center;
    margin-top: 50px;
}

.all-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #333;
    border: 1px solid #333;
    border-radius: 999px;
    transition: all 0.4s ease;
}

.all-view-btn .arrow {
    transition: transform 0.4s ease;
}

.all-view-btn:hover {
    background-color: #B8D4FF;
    color: #000;
}

.all-view-btn:hover .arrow {
    transform: translateX(6px);
}

/* ========================================
   レスポンシブ対応
======================================== */

/* タブレット */
@media (max-width: 768px) {
    .works-div {
        padding: 0 30px;
    }

    .works-list {
        gap: 80px;
        margin-top: 60px;
    }

    .work-card {
        flex-direction: column !important;
        gap: 32px;
        padding: 32px 28px;
    }

    .work-card-image-wrapper {
        flex: none;
        width: 100%;
    }

    .work-card-image {
        height: 240px;
    }

    .chevron-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .works-section {
        padding: 80px 0 60px;
    }

    .works-div {
        padding: 0 20px;
    }

    .workssection-title {
        font-size: 24px;
        margin-left: 0;
    }

    .works-mini-title {
        margin-left: 0;
    }

    .works-list {
        gap: 60px;
        margin-top: 50px;
    }

    .work-card {
        padding: 24px 20px;
        gap: 24px;
    }

    .work-card-image {
        height: 200px;
    }

    .work-card-title {
        font-size: 20px;
    }

    .work-card-description {
        font-size: 12px;
        line-height: 2;
        margin-bottom: 20px;
    }

    .work-card-tags {
        margin-bottom: 16px;
    }

    .chevron-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .all-view-wrap {
        margin-top: 80px;
    }

    .all-view-btn {
        font-size: 13px;
        padding: 12px 32px;
    }
}

.tag-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    position: relative;
}

.tag-wrap {
    display: flex;
    gap: 12px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #CFE3FF;
    border-radius: 999px;
    font-size: 12px;
    color: #000;
    letter-spacing: 3px;
    background-color: #ffffff;
    transition: all 0.25s ease;
}

.tag:hover {
    background-color: #EAF2FF;
    border-color: #AFCBFF;
}

/* 詳しく見るボタン */
.detail-btn {
    margin-left: auto;
    /* 右寄せ */
    margin-top: 8px;
    /* cordingの下に来る */
    font-size: 14px;
    color: #333;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* 下線アニメーション */
.detail-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease;
}

.detail-btn:hover {
    color: #000;
}

.detail-btn:hover::after {
    width: 100%;
}

/* 矢印がスッと動く */
.detail-btn:hover {
    transform: translateX(4px);
}


/* もっと見るボタン */

.all-view-wrap {
    text-align: center;
    margin-top: 160px;
}

/* ボタン本体 */
.all-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 40px;
    font-size: 15px;
    letter-spacing: 0.08em;

    color: #333;
    border: 1px solid #333;
    border-radius: 999px;

    position: relative;
    overflow: hidden;

    transition: color 0.4s ease;
}

/* 背景アニメーション用 */
.all-view-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

/* 矢印 */
.all-view-btn .arrow {
    transition: transform 0.4s ease;
}

/* hover */
.all-view-btn:hover {
    background-color: #B8D4FF;
    color: #000;
    ;
    color: #000;
}

.all-view-btn:hover::before {
    transform: scaleX(1);
}

.all-view-btn:hover .arrow {
    transform: translateX(6px);
}

/* Contact Section */
.contact-section {
    max-width: 100%;
    height: 550px;
    padding: 150px 60px;
    background: url(../img/footerimg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    /* 縦方向に配置 */
    align-items: center;
    /* 中央揃え */
    gap: 40px;
}

.contact-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #333;
    padding-bottom: 12px;
    display: inline-block;
}

.contact-email {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #333;
    text-decoration: none;
    padding: 14px 36px;
    border: 1px solid #333;
    border-radius: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
    background-color: #B8D4FF;
    color: #000;
}

/* アニメーション用のスタイル */

/* フェードイン対象の初期状態 */
.fade-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* フェードイン後の状態 */
.fade-target.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* スクロールアニメーション用 */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 画像の読み込みアニメーション */

.image-placeholder img.loaded {
    opacity: 1;
}

/* リンクのホバーアニメーション */
.about-link,
.works-link,
.view-all-link {
    transition: opacity 0.3s ease;
}

.about-link:hover,
.works-link:hover,
.view-all-link:hover {
    opacity: 0.6;
}

.about-link::after,
.works-link::after,
.view-all-link::after {
    transition: transform 0.3s ease;
    transform-origin: left;
}

.about-link:hover::after,
.works-link:hover::after,
.view-all-link:hover::after {
    transform: scaleX(0.8);
}

/* ========================================
   アニメーション専用CSS
   自然で上品な動きを追加
======================================== */

/* ========================================
   1. ヘッダー固定とスクロール時の影
======================================== */

.fv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}



/* ヘッダー固定に伴うFirst Viewの調整 */
.first-view {
    padding-top: 0;
}

/* ========================================
   2. フェードイン系アニメーション
   スクロール時にふわっと表示
======================================== */

/* 基本のフェードイン（下から） */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* フェードイン（左から） */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* フェードイン（右から） */
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* フェードイン + スケール（First View用） */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 1.2s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   3. First Viewのテキストラベルアニメーション
======================================== */

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   4. ホバーアニメーション（控えめ）
======================================== */

/* 画像のホバー */
.works-image,
.about-image {
    transition: transform 0.4s ease;
}

.works-image:hover,
.about-image:hover {
    transform: translateY(-4px);
}

.works-image img,
.about-image img {
    transition: transform 0.6s ease, filter 0.4s ease;
}

.works-image:hover img {
    transform: scale(1.05);
}

.about-image:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* タグのホバー */
.tag {
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(119, 176, 255, 0.2);
}

/* ボタンのホバー */
.about-link,
.all-view-btn,
.contact-email {
    transition: all 0.3s ease;
}

.about-link:hover,
.all-view-btn:hover,
.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 詳しく見るボタン */
.detail-btn {
    transition: all 0.3s ease;
}

.detail-btn:hover {
    transform: translateX(6px);
}

/* ========================================
   5. 画像の読み込みアニメーション
======================================== */

.image-placeholder img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.image-placeholder img.loaded {
    opacity: 1;
}

/* ========================================
   6. ナビゲーションメニューのアニメーション強化
======================================== */

.nav-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* メニューリンクのホバー */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #77B0FF;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   7. セクション間の滑らかな遷移
======================================== */

section {
    transition: opacity 0.3s ease;
}

/* ========================================
   8. スクロールバーのカスタマイズ（オプション）
======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ========================================
   9. パフォーマンス最適化
======================================== */

/* アニメーション完了後の最適化 */
.animation-complete {
    transition: none !important;
}

/* GPU アクセラレーション */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in-scale,
.slide-in-left,
.slide-in-right {
    will-change: transform, opacity;
}

/* アニメーション完了後にwill-changeを解除 */
.is-visible {
    will-change: auto;
}

/* ========================================
   10. レスポンシブ対応
======================================== */

@media (max-width: 768px) {

    /* モバイルではアニメーション距離を短く */
    .fade-in-up {
        transform: translateY(20px);
    }

    .fade-in-left {
        transform: translateX(-20px);
    }

    .fade-in-right {
        transform: translateX(20px);
    }

    /* ホバーアニメーションを控えめに */
    .works-image:hover,
    .about-image:hover {
        transform: translateY(-2px);
    }

    /* スマホ用リンクを表示、PC用を非表示 */
    .works-image-link.mobile-only {
        display: block;
        text-decoration: none;
    }

    .works-image.desktop-only {
        display: none;
    }

    /* スマホでのタップ時の視覚的フィードバック */
    .works-image-link.mobile-only .works-image {
        transition: opacity 0.2s ease;
    }

    .works-image-link.mobile-only:active .works-image {
        opacity: 0.8;
    }
}

@media (max-width: 480px) {

    /* スマホでは一部のホバーアニメーションを無効化 */
    .works-image:hover img,
    .about-image:hover img {
        transform: scale(1);
    }
}

/* ========================================
   11. アクセシビリティ対応
======================================== */

/* アニメーションを無効化する設定の場合 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .fade-in-scale,
    .slide-in-left,
    .slide-in-right {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {

    /* First View */
    .fv-header {
        padding: 30px 24px;
    }

    .fv-name {
        font-size: 14px;
    }

    .hamburger-menu {
        width: 28px;
        height: 20px;
    }

    .fv-photo-area {
        width: 400px;
        height: 280px;
    }

    .fv-label-top {
        font-size: 18px;
        padding: 10px 24px;
        top: -16px;
        left: -24px;
    }

    .fv-label-bottom {
        font-size: 32px;
        padding: 10px 24px;
        bottom: -20px;
        right: -32px;
    }

    /* About Section */
    .about-section {
        padding: 80px 40px;
    }

    .section-tittle {
        margin-bottom: 20px;
    }

    .section-title,
    .section-mini-title {
        margin-left: 0;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        margin: 0;
    }

    .about-text {
        padding: 40px;
    }

    .about-description br {
        display: none;
    }

    .button {
        padding-left: 0;
        text-align: center;
    }

    .about-link {
        font-size: 10px;
        padding: 10px 20px;
    }

    /* Works Section */
    .works-section {
        height: auto;
    }

    .works-div {
        padding: 80px 15px;
    }

    .workssection-title,
    .works-mini-title {
        margin-left: 0;
    }

    .works-item,
    .works-item-reverse {
        flex-direction: column;
        gap: 40px;
        padding: 0;
    }

    .works-image,
    .works-image .image-placeholder {
        width: 100%;
        max-width: 480px;
    }

    .works-content {
        max-width: 100%;
    }

    .work-card-info {
        margin-top: 30px;
    }

    .tag-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-btn {
        margin-left: 0;
    }

    .all-view-btn {
        font-size: 10px;
        padding: 10px 20px;
    }


    /* Contact Section */
    .contact-section {
        padding: 100px 24px;
        height: auto;
        min-height: 400px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-email {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {

    /* First View */
    .first-view {
        min-height: 600px;
    }

    .fv-header {
        padding: 20px 16px;
    }

    .fv-name {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .fv-photo-area {
        width: 280px;
        height: 200px;
    }

    .fv-label-top {
        font-size: 14px;
        padding: 8px 16px;
        top: -12px;
        left: -16px;
    }

    .fv-label-bottom {
        font-size: 24px;
        padding: 8px 16px;
        bottom: -16px;
        right: -20px;
    }

    /* About Section */
    .about-section {
        padding: 60px 30px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 60px;
    }

    .about-text {
        padding-bottom: 20px;
    }

    .about-image .image-placeholder {
        width: 200px;
        height: 260px;
    }

    .about-name {
        font-size: 18px;
    }

    .about-description {
        font-size: 12px;
        line-height: 2;
        margin-bottom: 20px;

    }

    /* Works Section */
    .works-div {
        padding: 60px 15px;
    }

    .workssection-title {
        font-size: 24px;
    }

    .works-list {
        gap: 100px;
    }

    .works-title {
        font-size: 20px;
    }

    .works-description {
        font-size: 12px;
    }

    .all-view-wrap {
        margin-top: 80px;
    }

    .works-image,
    .works-image .image-placeholder {
        width: 300px;
        height: 250px;
    }

    .works-item,
    .works-item-reverse {
        display: flex;
        flex-direction: column;
    }

    .works-image {
        order: 1;
    }

    .works-content {
        max-width: 250px;
        ;
        order: 2;
    }

    .work-card-link {
        margin-top: 20px;
        margin-bottom: 15px;

    }

    .detail-btn {
        display: none;
    }

    /* Contact Section */
    .contact-section {
        padding: 80px 16px;
        gap: 24px;
    }

    .contact-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-email {
        font-size: 12px;
        padding: 10px 20px;
    }
}

/* ===================================
   追従カーソル - myworks.cssの最後に追加
=================================== */

/* デフォルトカーソルを非表示 */
body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

/* メインカーソル（小さい点） */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #77B0FF;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

/* 外側のアウトライン */
.cursor-outline {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(119, 176, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* ホバー時の拡大 */
body.cursor-hover .cursor-dot {
    width: 16px;
    height: 16px;
    background-color: #D4C4A8;
}

body.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    border-color: rgba(212, 196, 168, 0.8);
}

/* クリック時のリップルエフェクト */
.cursor-ripple {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(119, 176, 255, 0.3);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
    to {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* スマホ・タブレットでは非表示 */
@media screen and (max-width: 1024px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body.custom-cursor-active,
    body.custom-cursor-active * {
        cursor: auto !important;
    }
}

/* ========================================
   レスポンシブ対応
======================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {

    .section-title{
        text-align: center;
    }
    .works-section {
        padding: 100px 0 80px;
    }

    .works-div {
        padding: 0 30px;
    }

    .workssection-title {
        font-size: 28px;
        text-align: center;
    }

    .works-mini-title {
        text-align: center;
    }

    .works-list {
        gap: 80px;
        margin-top: 70px;
    }

    /* カードを縦積みに変更 */
    .work-card {
        flex-direction: column !important;
        gap: 32px;
        padding-bottom: 80px;
        /* 矢印スペース確保 */
    }

    /* 画像を全幅に */
    .work-card-image-wrapper {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .work-card-image {
        height: 280px;
    }

    /* コンテンツ部分 */
    .work-card-content {
        width: 100%;
    }

    .work-card-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .work-card-description {
        font-size: 13px;
        line-height: 2;
        margin-bottom: 24px;
    }

    .work-card-tags {
        margin-bottom: 20px;
    }

    .work-tag {
        font-size: 11px;
        padding: 5px 14px;
    }

    /* 矢印サイズ調整 */
    .chevron-circle {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    /* すべて見るボタン */
    .all-view-wrap {
        margin-top: 100px;
    }

    .all-view-btn {
        font-size: 14px;
        padding: 13px 36px;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    .section-mini-title{
        text-align: center;
    }
    .works-section {
        padding: 80px 0 60px;
    }

    .works-div {
        padding: 0 20px;
    }

    .workssection-title {
        font-size: 24px;
        margin-left: 5px;
    }

    .works-mini-title {
        margin-left: 10px;
        font-size: 9px;
    }

    .works-list {
        gap: 60px;
        margin-top: 50px;
    }

    /* カード */
    .work-card {
        padding: 30px 30px;
        padding-bottom: 20px;
        /* 矢印スペース確保 */
        gap: 24px;
    }

    /* 画像 */
    .work-card-image {
        height: 220px;
        border-radius: 10px;
    }

    /* コンテンツ */
    .work-card-category {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .work-card-title {
        font-size: 18px;
        margin-bottom: 16px;
        letter-spacing: 0.03em;
    }

    .work-card-description {
        font-size: 12px;
        line-height: 1.9;
        margin-bottom: 20px;
    }

    /* タグ */
    .work-card-tags {
        gap: 10px;
        margin-bottom: 16px;
    }

    .work-tag {
        font-size: 10px;
        padding: 5px 12px;
        letter-spacing: 1.5px;
    }

    /* 矢印 */
    .chevron-circle {
        width: 34px;
        height: 34px;
        font-size: 14px;
        padding-left: 1px;
    }

    /* すべて見るボタン */
    .all-view-wrap {
        margin-top: 70px;
    }

    .all-view-btn {
        font-size: 13px;
        padding: 12px 32px;
    }

    .all-view-btn .arrow {
        font-size: 13px;
    }
}