@charset "UTF-8";

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

html {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    /* Reserve space for scrollbar to prevent layout shift */
    scrollbar-gutter: stable;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden !important;
    font-family: 'ヒラギノ角ゴ pro w3', 'hiragino kaku gothic pro', 'メイリオ', 'meiryo', 'ｍｓ ｐゴシック', sans-serif;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
}

/* Hide scrollbar and prevent scrolling */
body::-webkit-scrollbar {
    display: none !important;
}
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: none; /* Disable touch scrolling */
}

/* Additional scroll prevention */
html, body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
}

/* Base Structure */
#pagetop {
    width: 100%;
    position: relative;
}

#base {
    width: 100%;
    position: relative;
    height: auto;
}

#main {
    width: 100%;
    height: auto;
    position: relative;
}

#contents {
    width: 100%;
    height: auto;
    position: relative;
}

/* Panel System - Overlay Style */
section[data-id='panel'] {
    width: 100% !important;
    height: 100vh !important;
    background-repeat: no-repeat;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    visibility: hidden;
}

/* Active panel visible */
section[data-id='panel'].active {
    visibility: visible;
    z-index: 10;
}

/* Show main content with transition after loading */
#main.show {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide all panel content initially to prevent flash on first visit */
section .panel-title,
section .panel-description {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease;
}

/* Panel container */
#contents {
    height: 100vh;
    position: relative;
    overflow: hidden;
}


/* Home panel is first in scroll order */


/* Panel Content Structure */
.box {
    width: 100%;
    height: 100%;
    position: relative;
}

.block {
    width: 100%;
    height: 100%;
    position: relative;
}

.plate {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Panel Title & Description */
.panel-title {
    color: #333;
    font-weight: normal;
    z-index: 10;
}

.panel-description {
    color: #333;
    z-index: 1000;
    position: relative;
}

/* Panel 0 - Home */
#id0 {
    background-image: url(https://tairadesign.com/wp-content/themes/tairadesign/assets/images/25.jpg);
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: left 0px;
    background-attachment: scroll;
    background-size: cover;
}

#id0 .panel-title {
    line-height: 0.8;
    padding: 200px 0px 0px 180px;
    margin-bottom: 30px;
    opacity: 1;
    z-index: 10;
}

#id0 .panel-description {
    line-height: 2;
    padding: 50px 0px 0px 180px;
    opacity: 1;
    z-index: 10;
}

/* Logo image sizing - responsive to screen */
#id0 .panel-title img {
    width: 700px;
    max-width: calc(100vw - 200px);
    height: auto;
    display: block;
}

/* Panel 104 - Concept */
#id104 {
    background-image: url('https://tairadesign.com/wp-content/themes/tairadesign/assets/images/37.jpg');
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: left 0px;
    background-attachment: scroll;
    background-size: cover;
}

#id104 .panel-title {
    padding: 190px 0px 0px 180px;
    line-height: 1;
    font-size: 12px;
    letter-spacing: 0.3em;
}

#id104 .panel-description {
    padding: 40px 0px 0px 180px;
    line-height: 2;
}

/* Panel 107 - Portfolio */
#id107 {
    background-image: url('https://tairadesign.com/wp-content/themes/tairadesign/assets/images/42.jpg');
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: left 0px;
    background-attachment: scroll;
    background-size: cover;
}

#id107 .panel-title {
    padding: 200px 0px 0px 180px;
    line-height: 1;
}

#id107 .panel-description {
    padding: 30px 0px 0px 180px;
    line-height: 2;
}

/* Panel 111 - About */
#id111 {
    background-image: url('https://tairadesign.com/wp-content/themes/tairadesign/assets/images/52.jpg');
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: left 0px;
    background-attachment: scroll;
    background-size: cover;
	touch-action: pan-y !important;
}

#id111 .panel-title {
    padding: 120px 0px 0px 180px;
    line-height: 1;
}

#id111 .panel-description {
/*     line-height: 2.3; */
    padding: 120px 0px 0px 180px;
    opacity: 1;
}

/* Links */
a {
    color: #333;
    text-decoration: none;
}

/* Widget System */
#widget {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.balloon {
    position: fixed;
    pointer-events: auto;
    cursor: pointer;
}


/* Widget Positions */
#id113 {
    top: 92px;
    left: 454px;
    width: 90px;
    height: 90px;
    z-index: 6;
}

#id114 {
    top: 475px;
    left: 579px;
    width: 100px;
    height: 99px;
    z-index: 9;
}

#id117 {
    top: 423px;
    left: 627px;
    width: 110px;
    height: 73px;
    z-index: 9;
}

#id118 {
    top: 83px;
    left: 558px;
    width: 130px;
    height: 104px;
    z-index: 9;
}

/* General widget styling (for portfolio widgets in #widget div) */
.balloon {
    position: fixed;
    pointer-events: auto;
    cursor: pointer;
    display: none;
}

/* Concept widgets - part of concept page, always visible with the page */
.concept-widget {
    position: absolute !important;
    display: block !important;
    pointer-events: auto;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

/* Portfolio widgets - part of portfolio page, always visible with the page */
.portfolio-widget {
    position: absolute !important;
    display: block !important;
    pointer-events: auto;
    cursor: pointer;
}

/* Smooth transitions for widget images */
.concept-widget img,
.portfolio-widget img {
    transition: opacity 0.8s ease-in-out;
}

.concept-widget img.fade-out,
.portfolio-widget img.fade-out {
    opacity: 0;
}

/* No longer needed - portfolio widgets are now part of portfolio page */


/* Font styling for Japanese text */
.japanese-text {
    font-family: 'ヒラギノ角ゴ pro w3', 'hiragino kaku gothic pro', 'メイリオ', 'meiryo', 'ｍｓ ｐゴシック', sans-serif;
    letter-spacing: 0.3em;
}

.japanese-text span div {
    height: 36px;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-title,
    .panel-description {
        padding-left: 30px !important;
        margin-left: 30px !important;
        max-width: calc(100vw - 60px) !important;
        overflow-wrap: break-word !important;
    }

    #widget {
        transform: scale(0.8);
        transform-origin: left top;
    }

    /* Responsive logo */
    #id0 .panel-title img {
        width: 80% !important;
        max-width: 500px !important;
    }

    /* Portfolio page images responsive */
    #id107 .panel-title img {
        max-width: 90% !important;
        height: auto !important;
        display: block !important;
        margin-bottom: 10px !important;
    }

    /* About page profile images margin adjustment */
/*     #id111 img[src*="46_3.jpg"],
    #id111 img[src*="48_3.jpg"] 
	{
        padding-bottom: 100px !important;
    }
 */
    /* Mobile widget positioning for concept page */
    #id113 {
        left: 50% !important;
        top: 100px !important;
        transform: translateX(-80px) scale(0.8) !important;
    }

    #id114 {
        left: 50% !important;
        top: 350px !important;
        transform: translateX(20px) scale(0.8) !important;
    }

    /* Mobile widget positioning for portfolio page */
    #id117 {
        left: 50% !important;
        top: 350px !important;
        transform: translateX(20px) scale(0.8) !important;
    }

    #id118 {
        left: 50% !important;
        top: 100px !important;
        transform: translateX(-80px) scale(0.8) !important;
    }

}

@media (max-width: 480px) {
    .panel-title,
    .panel-description {
        padding-left: 20px !important;
        margin-left: 20px !important;
        font-size: 90%;
        max-width: calc(100vw - 40px) !important;
        overflow-wrap: break-word !important;
    }

    #widget {
        transform: scale(0.6);
    }

    /* Responsive logo for mobile */
    #id0 .panel-title img {
        width: 90% !important;
        max-width: 350px !important;
    }

    /* Portfolio page images responsive for mobile */
    #id107 .panel-title img {
        max-width: 95% !important;
        height: auto !important;
        display: block !important;
        margin-bottom: 15px !important;
    }

    /* About page profile images margin adjustment for mobile */
/*     #id111 img[src*="46_3.jpg"], 
	#id111 img[src*="48_3.jpg"] {
        padding-bottom: 100px !important;
    }
 */
    /* About page description padding adjustment for mobile */
    #id111 .panel-description {
        padding: 20px 0 200px 0!important;
    }

    /* Mobile widget positioning for concept page - smaller screens */
    #id113 {
        left: 50% !important;
        top: 100px !important;
        transform: translateX(-60px) scale(0.6) !important;
    }

    #id114 {
        left: 50% !important;
        top: 350px !important;
        transform: translateX(10px) scale(0.6) !important;
    }

    /* Mobile widget positioning for portfolio page - smaller screens */
    #id117 {
        left: 50% !important;
        top: 350px !important;
        transform: translateX(10px) scale(0.6) !important;
    }

    #id118 {
        left: 50% !important;
        top: 100px !important;
        transform: translateX(-60px) scale(0.6) !important;
    }

}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.9);
    z-index: 9999;
}

.progress-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
}

.progress-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(128, 128, 128, 0.5);
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: rgba(200, 200, 200, 0.9);
    transition: width 0.1s linear;
}

.progress-text {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 11px;
    color: rgba(200, 200, 200, 0.8);
    font-family: Arial, sans-serif;
    font-weight: normal;
}
