/* ========================================
CSS Variables
======================================== */
:root {
    --primary-color: #5596B1;
    --secondary-color: #E4ECF0;
    --accent-color: #E68E30;
    --text-color: #333;
    --white: #ffffff;
    --font-serif: 'adobe-garamond-pro', 'EB Garamond', serif;
    --font-sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    --font-serif-jp: 'Ryumin Web', 'EB Garamond', 'Times New Roman', serif;
}
    
/* ========================================
Opening Animation Styles
======================================== */
.opening-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s;
}

.opening-content {
    text-align: center;
}

.opening-title {
    font-size: 2rem;
    font-weight: 400;
    font-family: var(--font-serif-jp);
    color: var(--text-color);
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
    /* タイプライター風アニメーション用 */
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--text-color);
    animation: typing 2s steps(15, end) 0.2s 1 normal both, blink-caret 0.7s steps(1) infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--text-color); }
}

.opening-girl {
    width: 180px;
    max-width: 60vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

.opening-animation.fadeout {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
Base Styles
======================================== */
html {
    font-size: 62.5%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

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

/* ========================================
Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* ========================================
Navigation
======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow-x: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 90%;
}

.nav-logo a {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--primary-color);
}

.nav-logo img{
    width: 100px;
}

.nav-container-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: end;
    align-items: center;
    height: 70px;
    width: 90%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    z-index: 101;
    position: fixed;
}

.nav-item {
    margin: 0;
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ========================================
   Main Visual
======================================== */
.mv {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/fv-bg.jpg') no-repeat center center;
    background-size: cover;
}

.mv-container {
    position: relative;
    z-index: 1;
    background: url('../img/mv-bg-dez01.png') no-repeat center center;
    background-size: contain;
    padding: 160px;

}

.mv-container ::after{
    content: '';
    position: absolute;
    top: 0;
    left: -2.5%;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../img/mv-bg-dez02.png') no-repeat center center;
    background-size: contain;
    animation: move 10s linear infinite;
}
@keyframes move {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.mv-title {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: var(--font-serif-jp);
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.mv-title-span {
    color: var(--text-color);
    font-size: 2.4rem;
}

.mv-subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ========================================
   About Section
======================================== */
.about {
    background-color: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 10% auto 0;
}

.about-left {
    padding-right: 2rem;
}

.about-header {
    margin-bottom: 2rem;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 3.6rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    letter-spacing: 0.1em;
}

.about-line {
    width: 220px;
    height: 2px;
    background: var(--primary-color);
    margin-bottom: 2rem;
}

.about-name {
    margin-bottom: 1.5rem;
}

.name-en {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.name-jp {
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.05em;
    font-family: var(--font-serif-jp);
}

.name-jp-span {
    padding-left: 16px;
}

.about-badge {
    margin: 3rem 0 2rem 0;
}

.about-badge span {
    display: block;
    background-image: linear-gradient(90deg, rgba(106, 187, 221, 1), rgba(221, 183, 106, 1));
    color: var(--white);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 0;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.about-text p span {
    color: var(--primary-color);
    font-weight: 600;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    border: 2px solid var(--text-color);
    padding: 12px 24px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.about-btn {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.about-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-color);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

.about-btn:hover::before {
    width: 100%;
}

.about-btn:hover {
    color: #fff;
    border-color: var(--text-color);
}

.about-btn:hover .btn-arrow {
    color: #fff;
    fill: #fff;
}

.about-btn:hover .btn-arrow {
    transform: translateX(-4px);
}

.about-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

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

.about-right {
    position: relative;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.about-image img:first-child {
    opacity: 1;
}

.about-image img:nth-child(2) {
    animation: imageSwitch 4s infinite;
}

@keyframes imageSwitch {
    0%, 40% {
        opacity: 0;
    }
    50%, 90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.about-design {
    position: absolute;
    bottom: -30px;
    right: -40px;
    transform: rotate(-15deg);
    z-index: 2;
    max-width: 200px;
    width: 40%;
}

.about-design img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Works Section
======================================== */
.works {
    padding: 8% 0;
    background-color: var(--white);
}

.works-header {
    text-align: right;
    margin-bottom: 4rem;
}

.works-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0.5rem 0.5rem 0;
    font-weight: 400;
}

.works-title {
    font-family: var(--font-serif);
    font-size: 3.6rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    letter-spacing: 0.1em;
}

.works-line {
    width: 220px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #FFD700 100%);
    margin: 0 0 0 auto;
}

.works-list {
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    display: flex;
    align-items: center;
    margin-bottom: 10%;
    padding: 2rem 0;
    position: relative;
    min-height: 400px;
    gap: 0;
}

.work-item-reverse {
    flex-direction: row-reverse;
}


.work-item-reverse .work-description {
    order: 1;
    margin-left: 0;
    margin-right: -50px;
    margin-top: 100px;
    width: 100%;
}

.work-monitor {
    flex: 1.2;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.work-monitor img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.work-monitor:hover img {
    transform: scale(1.02);
}

.work-description {
    flex: 0.8;
    max-width: 460px;
    background: var(--secondary-color);
    padding: 5.5rem 4rem 3.5rem;
    position: relative;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    margin-left: -50px;
    margin-top: 100px;
}


/* 2番目の要素のタグ位置も調整 */
.work-item-reverse .work-tag {
    right: auto;
    left: 20px;
}

.work-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 0 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.work-item-reverse .work-tag {
    right: auto;
    left: 0;
    border-radius: 0 0 10px 0;
}

.work-title {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.work-roles {
    background: rgba(106, 187, 221, 0.2);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.work-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.work-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    margin-top: 1rem;
    border-radius: 0;
    overflow: hidden;
}

.work-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.3s ease;
    z-index: 1;
}

.work-btn span,
.work-btn .btn-arrow {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.work-btn .btn-arrow {
    color: var(--primary-color);
}

.work-btn:hover::before {
    left: 0;
}

.work-btn:hover {
    color: var(--white);
    border-color: var(--primary-color);
}

.work-btn:hover .btn-arrow {
    color: var(--white);
    transform: translateX(-4px);
}

/* ========================================
   Additional Works Section
======================================== */
.additional-works {
    padding-top: 10%;
    border-top: 2px solid rgba(106, 187, 221, 0.2);
}

.additional-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 8%;
}

.additional-work-item {
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
}

.additional-work-item:hover {
    transform: translateY(-5px);
}

.additional-work-tag {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 0 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
}

.additional-work-mockup {
    width: 100%;
    margin: 0 auto 1rem;
    position: relative;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.additional-work-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.placeholder-box {
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
}

.additional-work-title {
    font-size: 1.6rem;
    font-weight: 600;
    padding-top: 1rem;
    font-family: var(--font-sans);
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.additional-works-btn-container {
    text-align: center;
}

.additional-works-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.additional-works-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    z-index: 1;
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
}

.additional-works-btn span,
.additional-works-btn .btn-arrow {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.additional-works-btn .btn-arrow {
    color: var(--text-color);
}

.additional-works-btn:hover::before {
    left: 0;
}

.additional-works-btn:hover {
    color: var(--white);
    border-color: var(--text-color);
}

.additional-works-btn:hover .btn-arrow {
    color: var(--white);
    transform: translateX(-4px);
}

/* ========================================
   Skills Section
======================================== */
.skills {
    padding: 8% 0;
    background-image: linear-gradient(90deg, rgba(191, 224, 239, 1), rgba(242, 227, 196, 1));
}

.skills-header {
    text-align: center;
    margin-bottom: 8%;
}

.skills-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-weight: 400;
    font-family: var(--font-sans);
}

.skills-title {
    font-size: 3.6rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 20px 0;
    font-family: var(--font-serif);
    letter-spacing: 2px;
}

.skills-line {
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 14rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category-header {
    padding: 8px 0;
    text-align: center;
    color: var(--white);
    font-weight: 400;
    font-size: 3rem;
    background-color: var(--primary-color);
}

.category-header h3 {
    font-weight: 400;
}


.category-content {
    padding: 5% 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.skill-item {
    text-align: center;
    flex: 1;
    min-width: 0;
    padding: 0 30px;
    border-right: 2px solid #E4ECF0;
    height: 250px;
}

.skill-item:last-child {
    border-right: none;
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.skill-name {
    background-color: #E4ECF0;
    padding: 6px 24px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    display: block;
    width: 160px;
    margin: 0 auto;
}

.skill-rating {
    margin-bottom: 15px;
}

.star {
    color: #C8C8C8;
    font-size: 2rem;
    margin: 0 2px;
}

.star.filled {
    color: #F7DF1E;
}

.star.half {
    background: linear-gradient(90deg, #F7DF1E 50%, #C8C8C8 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-description {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    text-align: left;
}

.marketing-name {
    margin-bottom: 16px;
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    flex: 1;
    max-width: 460px;
    position: relative;
    margin-left: 10%;
}

.contact-title {
    font-size: 3.6rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-family: var(--font-serif);
    letter-spacing: 2px;
}

.contact-line {
    width: 220px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #FFD700 100%);
    margin: 0 auto 0 0;
}

.contact-greeting {
    font-size: 2rem;
    color: var(--text-color);
    margin: 3rem 0;
    line-height: 1.6;
    font-family: var(--font-serif-jp);
}

.contact-text {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0 0 16px 0;
    line-height: 1.6;
    font-family: var(--font-sans);
}

.contact-email {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 30px 0;
    font-weight: 600;
    background-color: #E4ECF0;
    padding: 8px 24px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    z-index: 1;
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
}

.contact-btn span,
.contact-btn .btn-arrow {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-btn .btn-arrow {
    color: var(--text-color);
}

.contact-btn:hover::before {
    left: 0;
}

.contact-btn:hover {
    color: var(--white);
    border-color: var(--text-color);
}

.contact-btn:hover .btn-arrow {
    color: var(--white);
    transform: translateX(-4px);
}

.contact-btn-icon {
    font-size: 1.1rem;
}

.contact-images {
    flex: 1;
    position: relative;
    max-width: 480px;
    height: 400px;
}

.contact-image {
    position: absolute;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.contact-image:hover {
    transform: rotate(0deg) scale(1.05);
}

.contact-image-1 {
    top: 0px;
    right: 20px;
    z-index: 2;
    transform: rotate(-8deg);
}

.contact-image-2 {
    bottom: 20px;
    left: 20px;
    z-index: 1;
    transform: rotate(5deg);
}

.contact-image img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: #E4ECF0;
    color: var(--text-color);
    text-align: center;
    padding: 40px 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 2rem;
    transition: color 0.3s ease;
    font-family: var(--font-serif);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.copy-mark {
    font-size:1.8rem;
    position: relative;
    top: 3px;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1200px) {
    .about-design {
        right: 0px;
    }
}
@media (max-width: 1024px) {
    .category-content{
        gap: 8px;
    }
    .skill-item{
        padding: 0 10px;
        height: 230px;
    }
    .skill-description{
        font-size: 1.2rem;
    }
    .skill-name{
        width: 130px;
    }
    .contact-greeting{
        font-size: 1.6rem;
    }
    .contact-text{
        font-size: 1.2rem;
    }
    .contact-image-1{
        top: 10px;
        right: 20px;
    }
    .contact-image-2{
        left: 0;
    }
    .contact-image img {
    width: 150px;
    height: 200px;
    }
}

@media (max-width: 768px) {
    .mv::before{
        background:url(../img/fv-bg-tb.jpg) no-repeat center center;
        background-size: cover;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 50%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 10% 0;
        gap: 3rem;
        overflow-y: auto;
        z-index: 99;
    }

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

    .hamburger {
        display: flex;
    }

    .mv-title {
        font-size: 2.8rem;
    }

    .mv-title-span{
        font-size: 1.8rem;
    }

    .mv-subtitle {
        font-size: 1rem;
    }

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

    .work-item {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
        min-height: auto;
    }

    .work-monitor {
        max-width: 100%;
        flex: none;
    }

    .work-description {
        max-width: 100%;
        flex: none;
        margin: 0 !important;
        z-index: 1;
    }

    .work-text{
        font-size: 1.4rem;
    }

    .work-tag {
        position: static;
        margin-bottom: 2rem;
        display: inline-block;
        border-radius: 0 10px 0 10px;
    }

    .work-item-reverse .work-tag{
        border-radius: 0 10px 0 10px;
    }

    .work-item-reverse .work-tag {
        left: auto;
        right: auto;
    }

    .additional-work-title{
        font-size: 1.4rem;
    }

    .additional-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .additional-work-mockup {
        max-width: 240px;
    }

    .placeholder-box {
        height: 200px;
    }

    .skills-categories {
        flex-direction: column;
        gap: 8rem;
    }

    .category-content {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    .skill-name {
        width: 180px;
    }

    .skill-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding: 15px 10%;
    }

    .skill-item:last-child {
        border-bottom: none;
    }

    .skills-title {
        font-size: 2.5rem;
    }

    .container {
        width: 80%;
    }

    .about, .works, .skills, .contact {
        padding: 60px 0;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .about-left {
        padding-right: 0;
        text-align: center;
        margin: 0 auto;
    }

    .about-header{
        text-align: left;
    }

    .about-title {
        font-size: 2.8rem;
    }

    .about-name{
        margin-top: 8%;
    }

    .name-jp {
        font-size: 2.4rem;
    }

    .about-text p {
        font-size: 1.4rem;
        margin: 5% 0;
    }

    .about-image {
        height: 400px;
        max-width: 300px;
    }

    .about-design {
        right: 6vw;
        max-width: 150px;
    }
    .contact{
        padding-bottom: 320px;
    }
    .contact-content{
        margin-left: 0;
    }
    .contact-wrapper{
        flex-direction: column;
    }
    .contact-image-2{
        bottom: -200px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .mv::before{
        background:url(../img/fv-bg-sp.jpg) no-repeat center center;
    }

    .mv-title {
        font-size: 2.4rem;
    }

    .mv-title-span {
        font-size: 1.6rem;
    }

    .mv-container {
        padding: 90px 70px;
    }

    .nav-container{
        width: 100%;
    }
    .nav-logo a{
        font-size: 2.4rem;
    }
    .nav-logo img{
        width: 80px;
    }
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        padding: 5% 0;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.6rem;
    }

    .about-title {
        font-size: 2.4rem;
    }

    .about-btn{
        font-size: 1.2rem;
    }

    .container {
        padding: 0;
    }

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

    .works-title {
        font-size: 2.4rem;
    }
    
    .skills-title {
        font-size: 2.4rem;
    }
    
    .work-title{
        font-size: 1.8rem;
    }

    .work-text{
        font-size: 1.2rem;
    }

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

    .about-text p{
        font-size: 1.2rem;
    }

    .about-design{
        bottom: -30px;
        right: 0vw;
        width: 124px;
    }

    .work-description{
        padding: 1.5rem 2rem 3rem;
    }

    .work-btn{
        font-size: 1.2rem;
    }

    .additional-works{
        padding-top: 15%;
    }

    .additional-work-mockup{
        width: 240px;
    }

    .additional-works-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    .additional-work-tag{
        right: 50%;
        top: -10px;
        transform: translateX(50%);
        border-radius: 10px;
        font-size: 1rem;
        padding: 6px 16px;
    }

    .additional-works-btn-container{
        padding-top: 5%;
    }

    .additional-works-btn{
        font-size: 1.2rem;
    }

    .skills-title {
        font-size: 2.4rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .category-header{
        font-size: 2rem;
        padding: 8px 0 2px;
    }

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

    .skill-name{
        font-size: 1.4rem;
    }

    .skill-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
        width: 200px;
    }

    .placeholder-box {
        height: 250px;
    }

    .skills-categories {
        flex-direction: column;
        gap: 60px;
    }

    .category-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .skill-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding: 10px 0;
    }

    .skill-item:last-child {
        border-bottom: none;
    }

    .category-content {
        padding: 20px 15px;
    }

    .contact-title {
        font-size: 2.4rem;
        text-align: left;
    }

    .contact-greeting{
        font-size: 1.4rem;
    }

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

    .contact-btn {
        padding: 12px 30px;
        font-size: 1.2rem;
    }

    .contact-images {
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .contact-image img {
        width: 150px;
        height: 180px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-images {
        max-width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .contact-image img {
        width: 120px;
        height: 150px;
    }

    .contact-image-2 {
        left: -10px;
    }

    .contact-image-1{
        right: -10px;
    }

    .contact {
        padding-bottom: 260px;
    }

    .footer-link{
        font-size: 1.8rem;
    }
}

/* ========================================
Button Arrow Styles
======================================== */
.btn-arrow {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.btn-arrow:hover {
    color: var(--primary-color);
}

