:root {
    --primary-color: #22386D;
    --accent-color: #21BCA5;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E9ECEF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color)
}

img {
    max-width: 100%;
    height: auto
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
    letter-spacing: 0.1em
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color)
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem
}

.btn-primary {
    background-color: var(--accent-color);
    color: white
}

.btn-primary:hover {
    background-color: #1da690;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover)
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 15, 40, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em
}

.nav-list {
    display: flex;
    gap: 2rem
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: #e0e0e0
}

.nav-link:hover {
    color: var(--accent-color)
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition)
}

.nav-link:hover::after {
    width: 100%
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: var(--transition)
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: white;
    text-align: left;
    overflow: hidden
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    will-change: transform
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 15, 40, 0.95) 0%, rgba(5, 15, 40, 0.8) 45%, rgba(5, 15, 40, 0) 100%);
    z-index: 0
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 5%;
    max-width: 800px;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    color: white
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(33, 188, 165, 0.6), 0 0 10px rgba(33, 188, 165, 0.4);
    opacity: 0;
    animation: fadeInUp 1s ease forwards
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    min-height: 1.5em;
    display: inline-block
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: white
}

.hero-desc-box {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    opacity: 1
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    z-index: 10
}

.scroll-arrow {
    width: 2px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    border: none;
    transform: none
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--accent-color);
    animation: scrollDown 2s infinite
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

@keyframes scrollDown {
    0% {
        top: -100%
    }

    100% {
        top: 100%
    }
}

.about {
    padding: 100px 0;
    background-color: #050F28;
    position: relative;
    color: white
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center
}

.about-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(33, 188, 165, 0.2));
    transition: var(--transition)
}

.about-illustration:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 30px rgba(33, 188, 165, 0.4))
}

.profile-image {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1)
}

.about-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em
}

.about-description {
    margin-bottom: 2rem;
    line-height: 2;
    color: #ccc;
    font-size: 1.05rem
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1)
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition)
}

.contact-info a:hover {
    text-decoration: none;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color)
}

.skills {
    padding: 100px 0;
    background: linear-gradient(180deg, #050F28 0%, #0B1A3A 100%);
    color: white
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px
}

.skill-category-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition)
}

.skill-category-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(33, 188, 165, 0.3)
}

.skill-category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    letter-spacing: 0.05em
}

.skill-category-title i {
    margin-right: 10px;
    color: var(--accent-color)
}

.skill-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 10px 0
}

.skill-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.8
}

.skill-icon-item:hover {
    transform: scale(1.1);
    opacity: 1
}

.skill-icon-item i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    color: white;
    filter: drop-shadow(0 0 5px rgba(33, 188, 165, 0.5));
    transition: all 0.3s ease
}

.skill-icon-item i.colored {
    color: white
}

.skill-icon-item:hover i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px rgba(33, 188, 165, 0.8))
}

.skill-icon-item span {
    font-weight: 500;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 4px;
    letter-spacing: 0.05em
}

.skill-icon-item small {
    font-size: 0.75rem;
    color: #666
}

.works {
    background: linear-gradient(180deg, #0B1A3A 0%, #050F28 100%);
    color: white;
    padding: 100px 0;
    overflow: hidden
}

.works .section-title {
    color: #fff;
    margin-bottom: 60px
}

.works .section-title::after {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color)
}

.swiper-container-wrapper {
    position: relative;
    padding: 20px 0
}

.works-swiper {
    padding-bottom: 30px !important
}

.works-swiper .swiper-slide {
    position: relative;
    width: 750px;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: #000;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
    opacity: 0.5;
    border: 1px solid rgba(255, 255, 255, 0.1)
}

.works-swiper .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-color: rgba(33, 188, 165, 0.5)
}

.works-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease
}

.work-link-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease
}

.swiper-slide-active:hover .work-link-overlay {
    opacity: 1;
    transform: translateY(0)
}

.work-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(33, 188, 165, 0.6)
}

.work-detail-area {
    margin-top: 30px;
    min-height: 200px;
    display: flex;
    justify-content: center
}

.work-detail-content {
    max-width: 800px;
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    color: #e0e0e0
}

.detail-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    padding-left: 20px
}

.detail-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    background-color: var(--accent-color);
    border-radius: 2px
}

.detail-description {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 25px;
    white-space: pre-wrap
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px
}

.detail-tags .tech-tag {
    background-color: #f0f4f8;
    color: #4a5568;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600
}

.detail-link-box {
    margin-top: 10px;
    text-align: right
}

.detail-link-box .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease
}

.detail-link-box .btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1)
}

.works .swiper-button-next,
.works .swiper-button-prev {
    color: var(--primary-color);
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease
}

.works .swiper-button-next::after,
.works .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold
}

.works .swiper-button-next:hover,
.works .swiper-button-prev:hover {
    background: var(--accent-color);
    color: #fff
}

.contact {
    padding: 100px 0;
    background-color: #050F28;
    color: white
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem
}

.contact-info p {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6
}

.contact-item {
    margin-bottom: 1rem
}

.contact-item a {
    color: var(--accent-color);
    font-weight: 500
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1)
}

.contact-form .form-group {
    margin-bottom: 1.5rem
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ccc
}

.required {
    color: #e74c3c
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    transition: var(--transition)
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(33, 188, 165, 0.3);
    background: rgba(255, 255, 255, 0.1)
}

#mail_complete {
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 15px rgba(33, 188, 165, 0.2)
}

.footer {
    background-color: #020612;
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05)
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-links a {
    color: var(--accent-color);
    margin-left: 1rem;
    transition: var(--transition)
}

.footer-links a:hover {
    color: white
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    40% {
        transform: translateX(-50%) translateY(-10px)
    }

    60% {
        transform: translateX(-50%) translateY(-5px)
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

@media (max-width:768px) {
    .container {
        padding: 0 15px
    }

    .section-title {
        font-size: 2rem
    }

    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        pointer-events: none
    }

    .nav.active {
        top: 70px;
        visibility: visible;
        opacity: 1;
        pointer-events: auto
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color)
    }

    .nav-link:last-child {
        border-bottom: none
    }

    .hamburger {
        display: flex
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 5px)
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -7px)
    }

    .hero-title {
        font-size: 2.5rem
    }

    .hero-subtitle {
        font-size: 1.1rem
    }

    .hero-description {
        font-size: 1rem
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem
    }

    .skills-content {
        grid-template-columns: 1fr
    }

    .works-grid {
        grid-template-columns: 1fr
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: 2rem
    }

    .section-title {
        font-size: 1.8rem
    }

    .skill-category {
        padding: 1.5rem
    }

    .contact-form {
        padding: 1.5rem
    }
}

.nav-link.active {
    color: var(--accent-color)
}

.nav-link.active::after {
    width: 100%
}

.skill-progress,
.work-item,
.fade-in {
    will-change: transform, opacity
}

.work-item:hover .work-image img {
    transform: scale(1.05)
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: var(--bg-light)
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color)
}

.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px
}

@keyframes pulse {
    0% {
        opacity: 1
    }

    50% {
        opacity: 0.5
    }

    100% {
        opacity: 1
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite
}

@media (min-width:769px) and (max-width:1024px) {
    .hero-title {
        font-size: 3rem
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .skills-content {
        grid-template-columns: repeat(2, 1fr)
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #00ffcc);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-color)
}

.modal-content {
    background-color: rgba(5, 15, 40, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5)
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1)
}

.modal-title {
    color: white;
    font-weight: 600
}

.modal-body p {
    color: #e0e0e0
}

.modal-header .close {
    color: white;
    text-shadow: none;
    opacity: 0.8
}

.modal-header .close:hover {
    opacity: 1;
    color: var(--accent-color)
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2)
}

::selection {
    background: var(--accent-color);
    color: #fff
}

#mail-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ffdce0;
    backdrop-filter: blur(5px)
}