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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Shippori Mincho", serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    min-height: 100vh;
}

.left-column,
.right-column {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

body.loaded .left-column,
body.loaded .right-column {
    opacity: 1;
    visibility: visible;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: auto;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -999;
}

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

.loading-image {
    max-width: 400px;
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* Opening Animation */
.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    background-color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: auto;
}

.opening-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 9999;
}

.opening-screen.finished {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -999;
    transition: opacity 0.8s ease, visibility 0.8s ease, z-index 0s 0.8s;
}

/* オープニングコンテンツ */
.opening-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    z-index: 1;
}

/* カーテン */
.curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #007D7A;
    z-index: 10;
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}

.curtain-top {
    top: 0;
    transform: translateY(0);
}

.curtain-bottom {
    bottom: 0;
    transform: translateY(0);
}

.opening-screen.curtain-open .curtain-top {
    transform: translateY(-100%);
}

.opening-screen.curtain-open .curtain-bottom {
    transform: translateY(100%);
}

.opening-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.opening-screen.show-content .opening-title {
    opacity: 1;
    transform: translateY(0);
}

.opening-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 1.1s, transform 0.8s ease 1.1s;
}

.opening-screen.show-content .opening-image {
    opacity: 1;
    transform: translateY(0);
}

.opening-image img {
    max-width: 500px;
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-column {
    width: 50%;
    overflow-y: auto;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    background-color: transparent;
    z-index: 100;
    padding: 20px 60px;
    transition: background-color 0.5s ease;
}


.nav {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

.right-column {
    width: 50%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.8s ease;
    z-index: 1;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-placeholder.active {
    opacity: 1;
    z-index: 2;
}

.animation-fade_in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animation-fade_in.active {
    opacity: 1;
    transform: translateY(0);
}

/* PC/SP表示制御 */
.pc-view {
    display: block;
}

.sp-view {
    display: none;
}

/* セクションサムネイル */
.section-thumbnail {
    width: 100%;
    margin: 1.5rem 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.section-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* モバイル用Hero */
.hero-mobile {
    position: absolute;
    top: 40px;
    left: 24px;
    z-index: 20;
    text-align: left;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title-mobile {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle-mobile {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-top: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInScroll 1s ease-in-out 1.5s forwards;
}

/* Scroll Indicator - PC */
.scroll-indicator-pc {
    left: 25%;
    transform: translateX(-50%);
    z-index: 10;
    color: #2c3e50;
    display: flex;
}

/* Scroll Indicator - SP */
.scroll-indicator-sp {
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: white;
    display: none;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.scroll-indicator-sp .scroll-text {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-icon {
    animation: bounceDown 2s ease-in-out infinite;
    text-align: center;
}

.scroll-indicator-pc .scroll-icon svg {
    stroke: #2c3e50;
}

.scroll-indicator-sp .scroll-icon svg {
    stroke: white;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

@keyframes fadeInScroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 60px 80px 60px;
}


.section-inner {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    background: #fff;
}

.hero-inner {
    max-width: 600px;
    width: 100%;
    display: flex;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.7;
    display: block;
    margin-top: 1rem;
}

.about {
    background-color: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    letter-spacing: 0.15em;
}

.about-description p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 2.2;
    color: #444;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.work {
    background-color: #fff;
}

.work-item {
    margin-bottom: 8rem;
}

.work-item h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.work-item p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 2.2;
    color: #444;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.work-item-image {
    position: relative;
    width: 480px;
    height: 400px;
    margin: 1.5rem auto 0;
}

.work-gallery {
    position: relative;
    width: 480px;
    height: 400px;
}

.work-item-image .work-image {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, z-index 0.3s ease;
    top: 0;
    left: 0;
    z-index: 1;
}

.work-item-image .work-image:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.work-item-image .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-images {
    position: relative;
    width: 480px;
    height: 400px;
    margin: 3rem auto 0;
}

.work-image-item {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, z-index 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.work-image-item:nth-child(1) {
    z-index: 1;
    top: 0;
    left: 0;
}

.work-image-item:nth-child(2) {
    z-index: 2;
    top: 30px;
    left: 110px;
}

.work-image-item:nth-child(3) {
    z-index: 3;
    top: 60px;
    left: 220px;
}

.work-image-item.show {
    animation: fadeInCard 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes fadeInCard {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.work-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact {
    background-color: #fff;
    color: #333;
}

.contact .section-title {
    color: #2c3e50;
}

.contact-description p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 2.2;
    color: #444;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    text-decoration: none;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
}

.contact-link:hover {
    background-color: #f8f9fa;
    border-color: #2c3e50;
    transform: translateY(-2px);
}

.contact-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* LINEスタンプボタン */
.line-stamp-button-wrapper {
    margin: 0 0 3rem;
    text-align: center;
}

.line-stamp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(51, 51, 51, 0.3);
}

.line-stamp-button:hover {
    background-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(51, 51, 51, 0.4);
}

.line-stamp-button .button-icon {
    transition: transform 0.3s ease;
}

.line-stamp-button:hover .button-icon {
    transform: translate(2px, -2px);
}

/* Instagramボタン */
.instagram-button-wrapper {
    margin: 0 0 3rem;
    text-align: center;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(51, 51, 51, 0.3);
}

.instagram-button:hover {
    background-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(51, 51, 51, 0.4);
}

.instagram-button .button-icon {
    transition: transform 0.3s ease;
}

.instagram-button:hover .button-icon {
    transform: translate(2px, -2px);
}

/* Instagram Feed */
.instagram-feed-wrapper {
    margin: 2rem 0;
    background-color: #eaeaea;
    position: relative;
}

.instagram-feed-container {
    position: relative;
    display: flex;
    align-items: center;
}

.instagram-feed {
    overflow: hidden;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
}

.instagram-posts {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.instagram-post {
    flex: 0 0 calc((100% - 2rem - (2.5 - 1) * 1rem) / 2.5);
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    text-decoration: none;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-icon {
    width: 48px;
    height: 48px;
    color: white;
}

/* Blog Image */
.blog-image-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.blog-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Blog Button */
.blog-button-wrapper {
    margin: 3rem 0 0;
    text-align: center;
}

.blog-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(51, 51, 51, 0.3);
}

.blog-button:hover {
    background-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(51, 51, 51, 0.4);
}

.blog-button .button-icon {
    transition: transform 0.3s ease;
}

.blog-button:hover .button-icon {
    transform: translate(2px, -2px);
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.slider-btn svg {
    color: #333;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #222;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
    color: white;
}

@media (min-width: 768px) and (max-width: 1200px) {
    .section {
        padding-inline: 32px;
    }

    .work-item-image {
        left: -16px;
    }
}

@media (min-width: 768px) and (max-width: 1000px) {
    .work-item-image {
        width: 360px !important;
        height: 300px !important;
    }

    .work-gallery {
        width: 360px !important;
        height: 300px !important;
    }

    .work-image-item {
        width: 140px !important;
        height: 200px !important;
    }

    .work-image-item:nth-child(1) {
        top: 0 !important;
        left: 10px !important;
    }

    .work-image-item:nth-child(2) {
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .work-image-item:nth-child(3) {
        top: 40px !important;
        right: 10px !important;
        left: auto !important;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .left-column {
        width: 100%;
        position: relative;
    }

    .right-column {
        width: 100%;
        position: relative;
        height: 100vh;
        order: -1;
    }

    .right-column::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 5;
        pointer-events: none;
    }

    /* PC/SP表示制御 */
    .pc-view {
        display: none !important;
    }

    .sp-view {
        display: block;
    }

    .header {
        width: 100%;
        padding: 15px 20px;
    }

    .nav {
        gap: 1.5rem;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .section {
        min-height: auto;
        padding: 60px 20px;
    }

    .section-inner {
        max-width: 100%;
        display: block;
        justify-content: flex-start;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .about-description p,
    .work-description p,
    .contact-description p {
        font-size: 1rem;
    }

    .work-description h3 {
        font-size: 1.2rem;
    }

    .contact-links {
        flex-direction: row;
        justify-content: center;
    }

    .image-placeholder {
        font-size: 1.5rem;
    }

    .work-item-image {
        width: 100% !important;
        max-width: 400px;
        height: 320px !important;
        margin: 2rem auto 0 !important;
    }

    .work-gallery {
        width: 100% !important;
        height: 320px !important;
    }

    .work-image-item {
        width: 160px !important;
        height: 220px !important;
    }

    .work-image-item:nth-child(1) {
        top: 0 !important;
        left: 0 !important;
    }

    .work-image-item:nth-child(2) {
        top: 25px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .work-image-item:nth-child(3) {
        top: 50px !important;
        right: 0 !important;
        left: auto !important;
    }

    /* Instagram Feed Mobile */
    .instagram-post {
        flex: 0 0 calc((100% - 2rem - (1.5 - 1) * 1rem) / 1.5) !important;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    /* Scroll Indicator SP表示 */
    .scroll-indicator-sp {
        display: flex;
    }

    /* Opening Title SP */
    .opening-title {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }
}