* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #f0f5f0;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    text-transform: lowercase;
}

.profile-wrap {
    background-color: rgba(0, 0, 0, 0.7);
}

.bg-option-1 {
    background-color: #f0f5f9;
}

.bg-option-2 {
    background-color: #f5f0f5;
}

.bg-option-3 {
    background-color: #f0f9f5;
}

.bg-option-4 {
    background-color: #fffaf0;
}

.bg-option-5 {
    background-color: #fff5f0;
}

.bg-option-6 {
    background-color: #ffffff;
}

.bg-option-7 {
    background-color: #f0f5f0;
}

.bg-option-8 {
    background-color: #f0f5ff;
}

.bg-option-9 {
    background-color: #f8f4e9;
}

html {
    scroll-behavior: smooth;
}

.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    background-color: transparent;
}

.logo {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 900;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #fff;
}

.top .logo h1 {
    color: #111;
}

.logo h1 span {
    font-size: 1.8rem;
    font-weight: 300;
}

.logo:hover {
    opacity: 0.8;
}

.menu-toggle {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    top: 5px;
}

.menu-toggle span {
    display: block;
    height: 1px;
    background: #fff;
    border-radius: 0;
    transform-origin: center right;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.top .menu-toggle span {
    background: #111;
}

.top .menu-toggle.open span {
    background: #fff;
}

.menu-toggle span:nth-child(1) {
    width: 100%;
    margin-bottom: 8px;
}

.menu-toggle span:nth-child(2) {
    width: 70%;
}

.menu-toggle span:nth-child(3) {
    display: none;
}

.menu-toggle:hover span:nth-child(1) {
    width: 70%;
}

.menu-toggle:hover span:nth-child(2) {
    width: 100%;
}

.menu-toggle.open {
    transform: rotate(0deg);
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    width: 100%;
    position: absolute;
    top: 30px;
    margin: 0;
}

.menu-toggle.open span:nth-child(2) {
    transform: rotate(-45deg);
    width: 100%;
    position: absolute;
    top: 9px;
    margin: 0;
}

.menu .menu-close {
    display: none;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #333;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
}

.menu-close:hover {
    transform: scale(1.1);
}

.menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: rgba(28, 28, 30, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: right 0.5s ease;
    z-index: 999;
    padding-left: 60px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.menu.open {
    right: 0;
}

.menu .menu-close {
    display: none;
}

.menu-items {
    list-style: none;
    text-align: left;
    width: 100%;
}

.menu-items li {
    margin: 20px 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu.open .menu-items li {
    opacity: 1;
    transform: translateX(0);
}

.menu-items li:nth-child(1) {
    transition-delay: 0.1s;
}

.menu-items li:nth-child(2) {
    transition-delay: 0.2s;
}

.menu-items li:nth-child(3) {
    transition-delay: 0.3s;
}

.menu-items li:nth-child(4) {
    transition-delay: 0.4s;
}

.menu-items li:nth-child(5) {
    transition-delay: 0.5s;
}

.menu-items a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding: 5px 0;
    font-weight: 300;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.menu-items a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {

    .japanese {
        margin-top: 47px;
    }

    .menu-close {
        top: 20px;
        right: 20px;
        width: 25px;
        height: 25px;
    }

    .menu {
        right: 0;
        width: 100%;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        display: flex;
        justify-content: center;
        align-items: baseline;
        box-shadow: none;
    }

    .menu.open {
        opacity: 1;
        visibility: visible;
    }

    .menu-items {
        text-align: left;
        padding: 0 20px;
    }

    .menu-items li {
        margin: 25px 0;
        transform: translateY(15px);
        opacity: 0;
    }

    .menu.open .menu-items li {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-items a {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .category-label {
        padding: 0 20px;
    }
}

.category-label {
    color: #ccc;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transform: rotate(0deg);
    position: relative;
    margin-bottom: 10px;
    margin-left: 2px;
}

body.menu-open::before {
    content: none;
}

.submenu {
    list-style: none;
    margin: 5px 0 5px 20px;
    padding: 0;
    display: none;
    opacity: 0;
    height: auto;
    position: static;
}

.menu.open .submenu {
    display: block;
    opacity: 1;
    transition: opacity 0.4s ease;
    transition-delay: 0.3s;
}

.submenu li {
    margin: 10px 0 !important;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease-out;
}

.menu.open .submenu li {
    opacity: 0.9;
    transform: translateX(0);
}

.with-submenu>a {
    position: relative;
    display: inline-block;
}

.with-submenu>a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-left: 8px;
    transform: rotate(45deg);
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.menu.open .with-submenu>a::after {
    transform: rotate(-135deg);
}

.submenu a {
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    color: #666 !important;
    padding: 3px 0 !important;
}

.submenu a:hover {
    color: #333 !important;
}

.menu.open .submenu li:nth-child(1) {
    transition-delay: 0.35s;
}

.menu.open .submenu li:nth-child(2) {
    transition-delay: 0.4s;
}

.menu.open .submenu li:nth-child(3) {
    transition-delay: 0.45s;
}

.menu.open .submenu li:nth-child(4) {
    transition-delay: 0.5s;
}

.menu.open .submenu li:nth-child(5) {
    transition-delay: 0.55s;
}

.menu.open .submenu li:nth-child(6) {
    transition-delay: 0.6s;
}

.menu.open .menu-items>li:nth-child(2) {
    transition-delay: 0.65s;
}

.menu.open .menu-items>li:nth-child(3) {
    transition-delay: 0.7s;
}

.menu.open .menu-items>li:nth-child(4) {
    transition-delay: 0.75s;
}

.menu.open .menu-items>li:nth-child(5) {
    transition-delay: 0.8s;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instagram-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath fill='%23FFFFFF' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.instagram-link:hover .instagram-icon {
    opacity: 0.8;
}

.social-item {
    margin-top: 40px !important;
}

.main-container {
    padding: 0;
}

.header {
    height: auto;
    display: flex;
    background-color: transparent;
    padding: 80px 0 40px;
}

.works {
    padding: 10vw 0 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 80px;
    text-align: center;
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 100px 20px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 80px 120px;
    position: relative;
}

.portfolio-item {
    position: relative;
    overflow: visible;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    scroll-margin-top: 100px;
}

.portfolio-item.appear {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover img,
.portfolio-item a:hover img {
    transform: scale(0.97);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.portfolio-title {
    position: relative;
    color: #111;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 300;
    margin: 15px 0 0 0;
    padding: 0;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item a:hover .portfolio-title {
    opacity: 1;
    transform: translateY(0);
}

.feature-right {
    grid-column: 4 / span 8;
    margin-top: 0;
}

.medium-left {
    grid-column: 2 / span 4;
    margin-top: 40px;
}

.medium-right {
    grid-column: 7 / span 4;
    margin-top: -20px;
}

.large-middle {
    grid-column: 3 / span 5;
    margin-top: 60px;
}

.small-right {
    grid-column: 9 / span 3;
    margin-top: 20px;
}

.large-left {
    grid-column: 1 / span 5;
    margin-top: 50px;
}

.large-right {
    grid-column: 7 / span 5;
    margin-top: -30px;
}

.medium-middle {
    grid-column: 3 / span 6;
    margin-top: 70px;
}

.small-left {
    grid-column: 2 / span 3;
    margin-top: 10px;
}

.small-middle {
    grid-column: 5 / span 3;
    margin-top: 30px;
}

#refresh-layout {
    position: relative;
    overflow: hidden;
}

#refresh-layout::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #333;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

#refresh-layout:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer {
    padding: 40px;
}

.footer-text {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    opacity: 0.7;
    font-weight: 300;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 20px 28px;
    }

    .logo {
        z-index: 900;
        position: relative;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo h1 span {
        font-size: 1.5rem;
    }

    .menu-toggle {
        width: 25px;
        height: 16px;
        position: relative;
        z-index: 1100;
        top: 8px;
    }

    .menu-toggle span:nth-child(1) {
        margin-bottom: 6px;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
        width: 100%;
        position: absolute;
        top: 26px;
        margin: 0;
    }

    .menu-toggle.open span:nth-child(2) {
        transform: rotate(-45deg);
        width: 100%;
        position: absolute;
        top: 8px;
        margin: 0;
    }

    .menu-close {
        top: 20px;
        right: 20px;
        width: 25px;
        height: 25px;
    }

    .footer {
        padding: 30px;
    }

    .footer-text {
        font-size: 0.6rem;
        opacity: 0.6;
    }

    .menu {
        width: 100%;
        right: -100%;
    }

    .menu-items a {
        font-size: 1.2rem;
    }

    .submenu a {
        font-size: 0.9rem !important;
    }

    .instagram-icon {
        width: 18px;
        height: 18px;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px 40px;
        padding: 40px 25px 100px;
    }

    .portfolio-item,
    .feature-right,
    .medium-left,
    .medium-right,
    .large-middle,
    .small-right,
    .large-left,
    .large-right,
    .medium-middle,
    .small-left,
    .small-middle {
        width: 100%;
        margin: 0;
        grid-column: auto;
    }

    .portfolio-item:nth-child(4n+1) {
        margin: 0 10% 0 5%;
    }

    .portfolio-item:nth-child(4n+2) {
        margin: 60px 5% 0 10%;
    }

    .portfolio-item:nth-child(4n+3) {
        margin: 20px 15% 0 0;
    }

    .portfolio-item:nth-child(4n+4) {
        margin: 100px 0 0 15%;
    }

    .portfolio-item:nth-child(odd) {
        width: 85%;
    }

    .portfolio-item:nth-child(even) {
        width: 90%;
    }

    .portfolio-item:nth-child(7n+3) {
        width: 70%;
    }

    .portfolio-item:nth-child(7n+5) {
        width: 100%;
    }

    .portfolio-item {
        transition: transform 0.8s cubic-bezier(0.17, 0.67, 0.35, 0.97),
            opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateY(30px);
        opacity: 0;
    }

    .portfolio-item.appear {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(var(--item-delay, 0) * 1s);
    }

    .mobile-item-1 img {
        aspect-ratio: 1/1.4;
    }

    .mobile-item-2 img {
        aspect-ratio: 1/0.8;
    }

    .mobile-item-3 img {
        aspect-ratio: 1/1.1;
    }

    .mobile-item-4 img {
        aspect-ratio: 1/1.6;
    }

    .mobile-item-5 img {
        aspect-ratio: 1/0.7;
    }

    .mobile-item-6 img {
        aspect-ratio: 1/1.3;
    }

    .mobile-item-7 img {
        aspect-ratio: 1/0.9;
    }

    .mobile-item-8 img {
        aspect-ratio: 1/1.7;
    }

    .portfolio-item {
        border: none;
        box-shadow: none;
    }

    .portfolio-item img {
        box-shadow: none;
    }

    .portfolio-title {
        font-size: 0.7rem;
        margin: 10px 0 0 0;
    }
}

.menu-items li:nth-child(1),
.menu-items li:nth-child(2),
.menu-items li:nth-child(3),
.menu-items li:nth-child(4) {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.menu-items li:nth-child(1) a:hover,
.menu-items li:nth-child(2) a:hover,
.menu-items li:nth-child(3) a:hover,
.menu-items li:nth-child(4) a:hover,
.menu-items li:nth-child(5) a:hover,
.menu-items li:nth-child(6) a:hover,
.menu-items li:nth-child(7) a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.menu-items li a {
    transition: color 0.3s ease;
}

.menu-items li:nth-child(8) {
    margin-top: 25px;
}

.menu.open .menu-items li:nth-child(1) {
    transition-delay: 0.1s;
}

.menu.open .menu-items li:nth-child(2) {
    transition-delay: 0.2s;
}

.menu.open .menu-items li:nth-child(3) {
    transition-delay: 0.3s;
}

.menu.open .menu-items li:nth-child(4) {
    transition-delay: 0.4s;
}

.profile-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title-container {
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: #333;
    margin-bottom: 10px;
}

.title-line {
    width: 40px;
    height: 1px;
    background-color: #333;
    margin: 0 auto;
}

.profile-image-container {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}

.profile-image {
    flex: 0 0 45%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s ease;
}

.profile-image:hover img {
    transform: scale(1.03);
}

.profile-quote {
    flex: 1;
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: #666;
    padding-left: 40px;
    border-left: 1px solid #ddd;
}

.profile-story {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
    margin-bottom: 60px;
}

.story-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.story-title {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.story-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: #333;
}

.story-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.profile-timeline {
    margin-bottom: 60px;
}

.timeline-title,
.clients-title {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.timeline-title::after,
.clients-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #333;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 1px;
    background-color: #ddd;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.timeline-year {
    flex: 0 0 100px;
    font-size: 1.1rem;
    font-weight: 400;
    color: #888;
    padding-right: 20px;
    text-align: right;
}

.timeline-content {
    flex: 1;
    padding-left: 40px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #333;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: #333;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.clients-section {
    margin-bottom: 60px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.client-category {
    text-align: center;
}

.client-category h4 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #555;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.client-category ul {
    list-style: none;
    padding: 0;
}

.client-category li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #777;
}

.contact-prompt {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
}

.contact-prompt p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #555;
}

.contact-prompt a {
    color: #333;
    text-decoration: none;
    position: relative;
    font-weight: 400;
}

.contact-prompt a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease;
}

.contact-prompt a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .profile-header {
        height: 120px;
        justify-content: flex-start;
    }

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

    .profile-content {
        padding: 0 20px 60px;
        gap: 60px;
    }

    .profile-image-container {
        flex-direction: column;
        gap: 30px;
    }

    .profile-image {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .profile-quote {
        padding-left: 20px;
        font-size: 1.3rem;
    }

    .profile-story {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline::before {
        left: 90px;
    }

    .timeline-year {
        flex: 0 0 70px;
    }

    .timeline-content {
        padding-left: 30px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .client-category ul {
        columns: 2;
    }
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.profile-image-container {
    margin-bottom: 60px;
    text-align: center;
}

.profile-name {
    margin-bottom: 40px;
}

.japanese-name {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
}

.english-name {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: #333;
}

.title {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #666;
    text-transform: uppercase;
}

.profile-bio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.bio-section p {
    line-height: 1.8;
    font-size: 0.9rem;
}

.japanese {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.english {
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.contact-prompt {
    text-align: center;
    margin-top: 80px;
    padding: 30px;
    border-top: 1px solid #eee;
}

.contact-prompt p {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.contact-prompt a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.contact-prompt a:hover {
    color: #888;
    border-color: #888;
}

@media (min-width: 768px) {
    .profile-bio {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .japanese-name {
        font-size: 2rem;
    }

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

    .title {
        font-size: 1rem;
    }

    .profile-content {
        padding: 40px 0;
    }
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30vh 40px 80px;
}

@keyframes softFadeIn {
    from {
        opacity: 0;
        filter: blur(1.5px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes softFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(1.5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes softFadeRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
        filter: blur(1px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.profile-title {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    filter: blur(1.5px);
    transform: translateY(25px);
    animation: softFadeUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.1s;
}

.profile-name-container {
    display: flex;
    flex-direction: column;
}

.name-jp {
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
    opacity: 0;
    filter: blur(1.5px);
    transform: translateY(25px);
    animation: softFadeUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.2s;
}

.name-en {
    font-weight: 300;
    letter-spacing: 0.12em;
    margin-bottom: 15px;
    opacity: 0;
    filter: blur(1.5px);
    transform: translateY(25px);
    animation: softFadeUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.3s;
}

.title {
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0;
    filter: blur(1.5px);
    transform: translateY(25px);
    animation: softFadeUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.4s;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.bio-column {
    position: relative;
    opacity: 0;
    filter: blur(1.5px);
    animation: softFadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.5s;
}

.name-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bio-section {
    margin-bottom: 40px;
}

.japanese {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    margin-bottom: 50px;
    opacity: 0;
    filter: blur(1.5px);
    animation: softFadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.6s;
}

.english {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    line-height: 1.9;
    opacity: 0;
    filter: blur(1.5px);
    animation: softFadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.7s;
}

.timeline {
    margin-top: 60px;
    position: relative;
    padding-left: 30px;
    opacity: 0;
    filter: blur(1.5px);
    animation: softFadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.8s;
}

.timeline:before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 0;
    width: 1px;
    background-color: #ddd;
    transform: scaleY(0);
    transform-origin: top;
    animation: lineGrow 1.2s cubic-bezier(0.33, 1, 0.68, 1) forwards 0.9s;
}

@keyframes lineGrow {
    from {
        transform: scaleY(0);
        opacity: 0.3;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: translateX(-10px);
    filter: blur(1px);
}

.timeline-item:nth-child(1) {
    animation: softFadeRight 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.0s;
}

.timeline-item:nth-child(2) {
    animation: softFadeRight 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.1s;
}

.timeline-item:nth-child(3) {
    animation: softFadeRight 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.2s;
}

.timeline-item:nth-child(4) {
    animation: softFadeRight 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.3s;
}

.timeline-item:nth-child(5) {
    animation: softFadeRight 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.4s;
}

.timeline-item:nth-child(n+6) {
    animation: softFadeRight 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.5s;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    transform: scale(0);
    opacity: 0;
    animation: dotAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(1.0s + (var(--index) * 0.1s));
}

@keyframes dotAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.contact-section {
    text-align: center;
    position: relative;
    padding: 60px 0;
    opacity: 0;
    filter: blur(1.5px);
    animation: softFadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.6s;
}

.contact-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #ccc;
    transform: translateX(-50%) scaleX(0);
    animation: lineWidth 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.7s;
}

@keyframes lineWidth {
    from {
        transform: translateX(-50%) scaleX(0);
        opacity: 0.3;
    }
    to {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

.contact-text {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0;
    filter: blur(1.5px);
    transform: translateY(25px);
    animation: softFadeUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.8s;
}

.contact-link {
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    padding: 12px 40px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0;
    filter: blur(1.5px);
    transform: translateY(20px);
    animation: softFadeUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards 1.9s;
}

.contact-link:hover {
    background-color: #333;
    color: #fff;
    letter-spacing: 0.18em;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.scroll-animate {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(1.5px);
    transition: all 0.9s cubic-bezier(0.33, 1, 0.68, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .profile-title,
    .name-jp,
    .name-en,
    .title,
    .bio-column,
    .japanese,
    .english,
    .timeline,
    .timeline-item,
    .timeline:before,
    .timeline-dot,
    .contact-section,
    .contact-section:before,
    .contact-text,
    .contact-link,
    .scroll-animate {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        filter: blur(0) !important;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 200px 30px 60px;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bio-text {
        max-width: 100%;
    }

    .contact-section {
        margin-top: 60px;
        padding: 40px 0;
    }

    .profile-title {
        margin-bottom: 0px;
        font-size: 0.8em;
    }

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

    .bio-section p {
        font-size: 0.7rem;
    }
}

/* 特大サイズの写真用スタイル */
.xlarge-left {
    grid-column: span 3;
    grid-row: span 3;
    margin-right: auto;
}

.xlarge-right {
    grid-column: span 3;
    grid-row: span 3;
    margin-left: auto;
}

.xlarge-middle {
    grid-column: span 3;
    grid-row: span 3;
    margin-left: auto;
    margin-right: auto;
}

/* モバイル向けのスタイル */
@media (max-width: 768px) {
    .xlarge-left, .xlarge-right, .xlarge-middle {
        grid-column: 1 / -1;
        margin: 0;
        width: 100%;
    }
}