@import 'variables.css';
@import 'default.css';

.section-navigation {
    padding: 64px 64px 72px 64px;
    position: fixed;
    top: 150px;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.section-navigation.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.section-navigation-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.section-nav-item {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-family-display);
    font-size: 20px;
    color: var(--accent-color);
    line-height: 100%;
    position: relative;
    --active-color: var(--accent-color);
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    will-change: color;
    backface-visibility: hidden;
    padding-bottom: 8px;
}

.section-nav-item:first-child {
    margin-left: 0;
    padding-left: 0;
}

.section-nav-item:last-child {
    margin-right: 0;
    padding-right: 0;
}

/* Animated underline indicator */
.section-navigation-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    -webkit-transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        background-color 0.3s ease;
    will-change: left, width, background-color;
}

.section-nav-item:hover,
.section-nav-item.active {
    color: var(--active-color);
}

.about-section {
    padding: 300px 63px 200px 63px;
    gap: 32px;
    flex-direction: column;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    width: 100%;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
}

.section-details {
    display: flex;
    align-items: center;
    gap: 184px;
    width: 100%;
    max-height: 145px;
}

.section-title {
    font-family: var(--font-family-mincho);
    font-size: 20px;
    color: var(--accent-color);
    font-weight: 400;
    text-align: left;
    line-height: 100%;
}

.section-subtitle {
    font-family: var(--font-family-display);
    font-size: 64px;
    color: var(--primary-color);
    font-weight: 400;
    line-height: 100%;
    font-style: normal;
    text-align: left;
    letter-spacing: 0;
    padding: 9.5px 0;
    width: max-content;
}

.section-text {
    display: flex;
    padding: 9.5px 0;
    flex-direction: column;
    gap: 20px;
    font-family: var(--font-family-mincho);
    font-size: 62px;
    line-height: 100%;
    color: var(--primary-color);
    font-weight: 400;
    text-align: left;
    width: max-content;
    flex-wrap: wrap;
    margin-left: 8vw;
}

.section-text--mobile {
    display: none;
    padding: 9.5px 0;
    flex-direction: column;
    gap: 20px;
    font-family: var(--font-family-mincho);
    font-size: 64px;
    line-height: 100%;
    color: var(--primary-color);
    font-weight: 400;
    text-align: left;
    width: max-content;
}

/* Vision Section */
.vision-section {
    padding: 300px 63px 200px 63px;
    gap: 4vh;
}

.vision-section .image-container {
    position: relative;
    width: 424px;
    height: 145px;
    flex-shrink: 0;
    overflow: hidden;
}

.vision-section .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: none;
    border-radius: 8px !important;
    object-fit: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.vision-section .image-container img:hover {
    border-radius: 8px !important;
}

.vision-section .image-container img:active,
.vision-section .image-container img:focus {
    border-radius: 8px !important;
}

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

/* Mission Section */
.mission-section {
    margin-bottom: 4rem;
}

.mission-section .image-container {
    position: relative;
    width: 424px;
    height: 145px;
    flex-shrink: 0;
}

.mission-section .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.greet-section {
    width: 100%;
    height: 500px;
    position: relative;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    justify-content: space-between;
}

.greet-header {
    position: absolute;
    left: 63px;
    width: max-content;
    gap: 4px;
}

.greet-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    color: var(--primary-color);
    font-family: var(--font-family-mincho);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    width: max-content;
    margin-top: 5vh;
}

.greet-content--mobile {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    color: var(--primary-color);
    font-family: var(--font-family-mincho);
    font-weight: 400;
    line-height: 2;
    width: max-content;
}

.signature {
    position: absolute;
    right: 63px;
    bottom: 14%;
    text-align: right;
    font-family: var(--font-family-mincho);
    color: var(--primary-color);
    font-size: 18px;
    line-height: 1.8;
}

.greeting-content p {
    margin: 0;
}

.greeting-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.outline-section {
    padding: 300px 63px 200px 63px;
    gap: 168px;
    display: flex;
    flex-direction: row;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.outline-grid {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 72px;
    width: 100%;
    flex: 1;
    position: relative;
    max-width: 900px;
}

.outline-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
}

.outline-content {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.outline-info {
    position: relative;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: auto;
    overflow-y: auto;
    height: 400px;
    flex: 1;
    padding-right: 10px;
    padding-bottom: 10px;
}

.outline-toggle-indicator {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none;
    height: auto;
    z-index: 1000;
    pointer-events: none;
}

.outline-toggle-track {
    width: 3px;
    height: 100%;
    background: rgba(162, 146, 129, 0.2);
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.outline-indicator-thumb {
    position: absolute;
    width: 3px;
    height: 20%;
    background: var(--accent-color);
    left: 0;
    top: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
    pointer-events: none;
    opacity: 1;
}

.outline-info::-webkit-scrollbar {
    display: none;
}

.outline-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 1058px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.outline-content--mobile {
    display: none;
}

.outline-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.outline-row:last-of-type {
    border-bottom: none;
}

.outline-row:hover {
    background: rgba(255, 255, 255, 0.8);
}

.outline-row:last-child {
    border-bottom: none;
}

.outline-cell {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 40px;
    flex: 1;
}

.outline-label {
    padding: 20px 0;
    width: 100%;
    white-space: nowrap;
    flex: 0 0 25%;
}

.outline-label,
.outline-label a,
.outline-label a[x-apple-data-detectors] {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-family: var(--font-family-mincho) !important;
    font-size: 20px;
    font-weight: 400 !important;
    line-height: 100% !important;
}

.outline-value {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-family-mincho);
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 400;
    line-height: 100%;
    width: 100%;
    word-break: break-word;
}

.outline-value span {
    display: block;
    margin-bottom: 4px;
}

.outline-value span:last-child {
    margin-bottom: 0;
}

.outline-section .outline-image {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: 0;
}

.outline-section .outline-image iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.outline-section .outline-image img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

/* Image Container */
.outline-section .image-container {
    position: relative;
    width: 424px;
    height: 145px;
    flex-shrink: 0;
}

.outline-section .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.section-description {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    flex: 1;
    align-content: left;
    flex-wrap: wrap;
    margin-left: 8vw;
    width: max-content;
}

.section-description span {
    font-family: var(--font-family-mincho);
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    color: var(--primary-color);
    text-align: flex-start;
}

.section-description .line-break {
    display: block;
    height: 0.5em;
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-description--mobile {
    display: none;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    font-family: var(--font-family-mincho);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: var(--primary-color);
    text-align: left;
}

.code-section {
    padding: 300px 63px 0 63px;
    gap: 6vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.code-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 45%;
    width: 425px;
    gap: 4px;
}

.code-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100vw;
}
  
.code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-left: 20vw;
}

.english {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-family-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    width: 30vw;
}

.dot {
    display: inline-block;
    margin-right: 8px;
    color: #1f3a4d;
}

.japanese {
    display: flex;
    font-family: var(--font-family-mincho);
    justify-content: flex-start;
    font-size: 20px;
    color: var(--primary-color);
    text-align: left;
    width: max-content;
}

.japanese.sign {
    margin-left: 120px;
}

.bottom-line {
    margin-top: 24px;
    text-align: center;
    font-size: 20px;
    font-family: var(--font-family-mincho);
    color: var(--primary-color);
}

.code-slider-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    max-width: 1185px;
    will-change: transform;
    transform: translateZ(0);
    justify-content: space-between;
}

.code-toggle-indicator {
    position: relative;
    margin-top: auto;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 3px;
    cursor: pointer;
}

.code-toggle-track {
    position: relative;
    display: flex;
    gap: 20px;
    background-color: rgba(209, 189, 160, 0.2);
    height: 100%;
    width: 100%;
}

.code-indicator-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: var(--accent-color);
    transform: translateY(-50%);
    transition: left 0.3s ease;
    -webkit-transition: left 0.3s ease;
    z-index: 1;
    transform: translateY(-50%) translateX(0);
}

.code-indicator-thumb:active {
    transform: translateY(-50%) scaleY(1.2);
    transition: transform 0.15s ease-out;
    -webkit-transition: transform 0.15s ease-out;
}

.code-slider-track {
    display: flex;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    padding-bottom: 40px;
    will-change: transform;
    backface-visibility: hidden;
}

.nav-arrow {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 10%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.arrow-right {
    right: 10px;
    justify-content: flex-end;
}

.arrow-left {
    left: 10px;
    justify-content: flex-start;
}

.arrow-left .chevron {
    transform: rotate(-135deg);
}

.arrow-right .chevron {
    transform: rotate(45deg);
}

.chevron {
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transition: border-color 0.3s ease;
}

.nav-arrow::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active .chevron,
.nav-arrow:focus .chevron {
    border-color: #333;
}

.nav-arrow:hover .chevron {
    border-color: #666;
}

.nav-arrow:active,
.nav-arrow:focus {
    transform: translateY(-50%) scale(0.95);
    outline: none;
}

/* Reset the background when not hovered or active */
.nav-arrow:not(:hover):not(:active):not(:focus) {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Fix for mobile devices */
@media (hover: none) and (pointer: coarse) {
    .nav-arrow .chevron {
        border-color: var(--accent-color) !important;
    }
    
    .nav-arrow:active .chevron {
        border-color: #333 !important;
    }
}

.nav-arrow.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.code-container {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    box-sizing: border-box;
    position: relative;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.code-content {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 400px;
    max-width: 400px;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    gap: 20px;
    height: 100%;
}

.code-container .code-content {
    opacity: 1;
    transition: opacity 0.8s ease;
    -webkit-transition: opacity 0.8s ease;
    padding-top: 29px;
}

.code-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-number .number {
    font-family: var(--font-family-display);
    line-height: 100%;
    font-size: 64px;
    color: var(--primary-color);
    font-weight: 400;
    will-change: transform, opacity;
}

.code-number .total {
    font-family: var(--font-family-display);
    line-height: 100%;
    font-size: 64px;
    color: var(--accent-color);
    font-weight: 400;
}

.code-title {
    font-family: var(--font-family-display);
    line-height: 100%;
    font-size: 48px;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 30px;
}

.code-subtitle {
    font-family: var(--font-family-mincho);
    line-height: 100%;
    font-size: 20px;
    font-weight: 400;
    color: var(--accent-color);
}

.code-description {
    font-family: var(--font-family-mincho);
    line-height: 100%;
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--detail-gap, 130px);
}

.code-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 150%;
}

.code-details div {
    font-family: var(--font-family-mincho);
    font-size: 20px;
    font-weight: 400;
    color: var(--accent-color);
    line-height: 100%;
    display: flex;
    position: relative;
    min-height: 29px;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    cursor: pointer;
    background: transparent;
    gap: 10px;
}

.code-details div::before,
.code-details div::after {
    position: absolute;
    left: 0;
    width: 100%;
    color: inherit;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-details div::before {
    content: attr(data-view);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 100%;
    text-align: left;
    opacity: 1;
}

.code-details div::after {
    content: attr(data-hidden);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 100%;
    text-align: left;
    opacity: 0;
}

.code-details div:hover {
    color: var(--color-primary);
}

.code-details div:hover::before {
    transform: translateY(-100%);
    opacity: 0;
}

.code-details div:hover::after {
    transform: translateY(-100%);
    opacity: 1;
}

.code-details--mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.code-details--mobile div {
    font-family: var(--font-family-mincho);
    font-size: 20px;
    font-weight: 400;
    color: var(--accent-color);
    line-height: 100%;
    display: none;
    position: relative;
    min-height: 29px;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    cursor: pointer;
    background: transparent;
    gap: 10px;
    width: 100%;
    white-space: normal;
}

.code-details--mobile div::before,
.code-details--mobile div::after {
    position: absolute;
    left: 0;
    width: 100%;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-details--mobile div::before {
    content: attr(data-view);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 100%;
    text-align: left;
    opacity: 1;
}

.code-details--mobile div::after {
    content: attr(data-hidden);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
}

.code-details--mobile div:hover::before {
    transform: translateY(-100%);
    opacity: 0;
}

.code-details--mobile div:hover::after {
    transform: translateY(-100%);
    opacity: 1;
}

.drag-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    position: relative;
    flex: 0 0 auto;
    align-self: center;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.drag-button span {
    font-family: var(--font-family-display);
    line-height: 100%;
    font-size: 20px;
    font-weight: 400;
    width: 100px;
    height: 100px;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); */
    border-radius: 50%;
    position: relative;
    z-index: 2;
    will-change: transform, border-color, color;
    transform: translateZ(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                color 0.3s ease;
    -webkit-transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                color 0.3s ease;
    backface-visibility: hidden;
}

.drag-button:hover span {
    transform: translateX(5px) scale(1.1);
}

.drag-button::after {
    font-size: 18px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.drag-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.drag-button:hover::after {
    transform: translateX(5px) scale(1.1);
}

.code-container .image-container {
    position: relative;
    width: 400px;
    height: 500px;
    flex: 0 0 auto;
    transform-origin: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.code-container .image-container img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    border-radius: 8px !important;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.code-container .image-container:hover img {
    transform: scale(1.02);
}

.code-container.active .code-number { transition-delay: 0.1s; }
.code-container.active .code-title { transition-delay: 0.2s; }
.code-container.active .code-subtitle { transition-delay: 0.3s; }
.code-container.active .code-description { transition-delay: 0.4s; }
.code-container.active .code-details { transition-delay: 0.5s; }

.about-contacts-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-contacts-section .go-to-top-button {
    display: none;
}

/* 4K and Ultra-wide (2560px+) */
@media (min-width: 2560px) {
    .section-navigation {
        padding: 80px 120px;
        top: 200px;
    }
    
    .section-nav-item {
        font-size: 24px;
    }
    
    .about-section,
    .vision-section,
    .outline-section {
        padding: 400px 120px 300px 120px;
    }
    
    .section-subtitle {
        font-size: 80px;
    }
    
    .section-text {
        font-size: 78px;
    }
    
    .code-section {
        padding: 400px 120px 0 120px;
        gap: 300px;
    }
    
    .greet-section {
        height: 600px;
    }
    
    .greet-content {
        font-size: 18px;
        max-width: 100%;
    }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    .vision-section {
        padding: 250px 63px 200px 63px;
    }

    .section-navigation {
        padding: 32px 64px 40px 64px;
    }

    .greet-section {
        padding: 250px 63px 200px 63px;
    }

    .code-section {
        padding: 250px 63px 0 63px
    }

    .code-toggle-indicator {
        bottom: 15%;
    }

    .outline-section {
        padding: 250px 63px 200px 63px;
    }
    
    .section-text {
        padding-bottom: 2vh;
    }

    .outline-section .outline-image {
        height: 100%;
        width: 35%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .section-navigation {
        padding: 40px 64px;
        top: 15vh;
    }
    
    .section-nav-item {
        font-size: 18px;
    }
    
    .about-section,
    .vision-section,
    .outline-section,
    .code-section {
        padding: 30vh 64px 100px 64px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-subtitle {
        font-size: 42px;
    }
    
    .section-text {
        font-size: 38px;
        gap: 12px;
        padding-bottom: 2vh;
    }

    .section-description {
        font-size: 16px;
    }

    .code-toggle-indicator {
        bottom: 1px;
    }
    
    .outline-grid {
        gap: 42px;
    }

    .outline-content {
        height: 100%;
    }
    .code-section {
        gap: 50px;
    }

    .code-number .number,
    .code-number .total {
        font-size: 42px;
    }

    .code-content {
        gap: 14px
    }
    
    .code-title {
        font-size: 36px;
        margin-bottom: 20px
    }
    
    .code-container {
        gap: 100px;
        height: 350px;
    }
    
    .code-content {
        width: 350px;
        max-width: 350px;
    }

    .code-details {
        gap: 12px;
    }

    .code-subtitle,
    .code-description,
    .code-details div {
        font-size: 16px;
    }
    
    .code-container .image-container {
        width: 350px;
        height: 380px;
        margin-top: auto;
    }
    
    .section-details {
        gap: 120px;
    }

    .outline-label,
    .outline-value {
        padding: 16px 0;
        font-size: 18px;
    }

    .outline-value {
        padding: 16px;
    }
    
    .vision-section .image-container,
    .mission-section .image-container,
    .outline-section .image-container {
        width: 350px;
        height: 120px;
    }

    .outline-section {
        gap: 150px;
    }

    .outline-info,
    .outline-toggle-indicator {
        height: 90%;
    }

    .outline-image {
        height: 100%;
        width: 35%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .outline-image iframe {
        height: 98%;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .section-navigation {
        padding: 10px 40px;
        top: 100px;
    }
    
    .section-nav-item {
        font-size: 16px;
    }
    
    .about-section,
    .vision-section {
        padding: 200px 40px 150px 40px;
    }
    
    .section-subtitle {
        font-size: 40px;
    }
    
    .section-text {
        font-size: 48px;
    }
    
    .section-details {
        gap: 60px;
    }
    
    .code-section {
        padding: 180px 40px 100px 40px;
        flex-direction: column;
    }

    .code-text {
        width: 100%;
        max-width: 100vw;
    }
    
    .code-toggle-indicator {
        bottom: 5%;
    }

    .code-slider-track {
        height: 100%;
    }

    .code-slider-container {
        max-width: 100%;
    }

    .code-header {
        width: 50%;
    }

    .code-title {
        margin-bottom: 15px;
    }
    
    .code-container {
        display: -webkit-box;
        gap: 300px;
    }

    .code-number .number,
    .code-number .total,
    .code-title {
        font-size: 36px;
    }
    
    .code-content {
        padding-left: 50px;
    }

    .code-container .code-content {
        padding-top: 10px;
    }

    .code-container .image-container {
        width: 90%;
        box-shadow: unset;
    }

    .code-container .image-container img {
        width: 36%;
        height: 80%;
    }
    
    .vision-section .image-container,
    .mission-section .image-container,
    .outline-section .image-container {
        width: 300px;
        height: 100px;
    }
    
    .outline-section {
        padding: 200px 40px 80px 40px;
        gap: 80px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .outline-grid {
        gap: 40px;
        flex: 1;
        min-width: 0;
        height: 100%;
    }

    .outline-toggle-indicator {
        height: 70%;
    }

    .outline-image {
        flex: 1;
        min-width: 0;
        position: sticky;
        align-self: flex-start;
        height: 95%;
    }

    .outline-image iframe {
        width: 100%;
        height: 100%;
    }
    
    .outline-info {
        height: 70%;
    }
    
    .greet-section {
        height: 100%;
    }
    
    .greet-content {
        font-size: 18px;
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section-navigation {
        padding: 20px 30px;
        top: 80px;
        position: relative;
    }
    
    .section-navigation-list {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .section-nav-item {
        font-size: 14px;
        flex: 0 0 auto;
    }
    
    .about-section,
    .vision-section {
        padding: 150px 30px 100px 30px;
    }
    
    .outline-section {
        padding: 150px 30px 100px 30px;
        gap: 40px;
        flex-direction: column;
        min-height: auto;
    }
    
    .section-subtitle {
        font-size: 36px;
    }
    
    .section-text {
        font-size: 36px;
        padding-bottom: 60px;
    }
    
    .section-details {
        flex-direction: column;
        gap: 30px;
        max-height: none;
    }
    
    .code-section {
        padding: 150px 30px 0 30px;
        flex-direction: column;
    }
    
    .code-header {
        width: 100%;
    }
    
    .code-slider-container {
        max-width: 100%;
    }
    
    .japanese.sign {
        margin-left: 20px;
    }

    .code-container {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    .code-content {
        width: 100%;
        max-width: 400px;
        height: fit-content;
    }
    
    .code-number .number,
    .code-number .total {
        font-size: 48px;
    }
    
    .code-title {
        font-size: 32px;
    }
    
    .code-container .image-container {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
    
    .vision-section .image-container,
    .mission-section .image-container,
    .outline-section .image-container {
        width: 250px;
        height: 80px;
    }
    
    .outline-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .outline-label {
        padding: 15px 0 5px 0;
        white-space: normal;
    }
    
    .outline-value {
        padding: 5px 0 15px 0;
    }
    
    .greet-section {
        height: 350px;
    }
    
    .greet-content {
        font-size: 16px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .drag-button span {
        width: 80px;
        height: 80px;
        font-size: 16px;
    }

    .outline-header {
        align-content: center;
    }

    .outline-header .section-title,
    .outline-header .section-subtitle {
        align-content: center;
    }
}

@media (max-width: 767px) {
    .section-navigation {
        display: none;
    }
    
    .vision-section {
        padding: 120px 32px 30px 32px;
        height: 110vh !important;
        gap: 1vh;
    }

    .section-content {
        grid-template-columns: none;
    }

    .code-section,
    .greet-section {
        padding: 30px 32px 30px 32px;
        height: 100vh !important;
    }

    .greet-section {
        height: 75vh !important;
        gap: 30px;
        justify-content: unset;
    }

    .signature {
        font-size: 14px;
        flex: 0 1 auto;
        position: static;
        text-align: center;
    }
    
    .outline-section {
        padding: 30px 0 80px 0;
        height: 240vh !important;
        gap: 20px;
        flex-direction: column;
        min-height: auto;
    }
    
    .outline-header {
        align-items: center;
    }

    .arrow-right {
        right: 5px;
    }
    
    .arrow-left {
        left: 5px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-subtitle {
        font-size: 32px;
    }
    
    .section-text {
        display: none;
    }
    
    .section-text--mobile {
        display: flex;
        font-size: 24px;
        gap: 10px;
    }
    
    .section-details {
        flex-direction: column;
        gap: 32px;
        max-height: none;
    }

    .section-description {
        display: none;
    }

    .section-description--mobile {
        display: flex;
        font-size: 14px;
    }

    .code-section {
        flex-direction: column;
        height: 100% !important;
    }

    .code-item {
        margin-left: 0;
    }
    
    .japanese {
        margin-left: auto;
    }

    .japanese.sign {
        margin-left: auto;
    }
    
    .code-header {
        width: 100%;
    }

    .code-text {
        width: 100%;
    }
    
    .code-slider-container {
        display: block;
        max-width: 100%;
    }
    
    .code-container {
        gap: 48px;
        flex-direction: column;
        align-items: center;
        height: 100%;
    }

    .code-content {
        width: 100%;
        gap: 0;
    }
    
    .code-number {
        margin-bottom: 10px;
    }

    .code-number .number,
    .code-number .total {
        font-size: 24px;
    }
    
    .code-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .code-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .code-description {
        font-size: 16px;
        margin-bottom: 0;
    }

    
    .container--1 .image-container {
        width: 297px;
        height: 350px;
    }
    
    .container--2 .image-container {
        width: 297px;
        /* height: 290px; */
        height: 350px;
    }
    
    .container--3 .image-container {
        width: 297px;
        height: 250px;
    }

    .container--3 .nav-arrow {
        top: 42%;
    }
    
    .container--4 .image-container {
        width: 297px;
        /* height: 290px; */
        height: 350px;

    }
    
    .vision-section .image-container,
    .mission-section .image-container,
    .outline-section .image-container {
        width: 297px;
        height: 162px;
        margin-left: auto;
        margin-right: 0;
    }
    
    .outline-content {
        display: none;
    }

    .outline-content--mobile {
        width: 100%;
        height: 100%;
        display: block;
        text-align: center;
    }
    
    .outline-content--mobile div {
        font-weight: bold;
        text-align: center;
        color: rgba(31, 58, 77, 0.5);
        font-size: 14px;
        font-family: var(--font-family-mincho), serif;
        line-height: 100%;
    }
    
    .outline-content--mobile span {
        display: block;
        text-align: center;
        margin-top: 10px;
    }

    .outline-content--mobile span,
    .outline-content--mobile span a,
    .outline-content--mobile span a[x-apple-data-detectors] {
        color: var(--primary-color) !important;
        text-decoration: none !important;
        font-family: var(--font-family-mincho) !important;
        font-size: 14px;
        font-weight: 400 !important;
        line-height: 100% !important;
    }
    
    .divider {
        border-top: 1px solid #ddd;
        margin: 20px auto;
        width: 60%;
    }

    .outline-toggle-indicator {
        display: none;
    }

    .outline-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .outline-label {
        padding: 8px 0 3px 0;
        font-size: 14px;
        white-space: normal;
    }
    
    .outline-value {
        padding: 3px 0 8px 0;
        font-size: 14px;
    }
    
    .outline-grid {
        gap: 40px;
    }
    
    .outline-info {
        height: 200px;
    }
    
    .greet-section {
        height: 250px;
    }

    .contact-text {
        font-size: 18px;
    }

    .greet-header {
        position: relative;
        left: 0;
        width: auto;
    }

    .greet-header .section-title {
        text-align: center;
    }

    .greet-header .section-subtitle {
        align-content: center;
        text-align: center;
        line-height: 1.2;
    }
    
    .greet-content {
        font-size: 14px;
        flex: 0 1 auto;
        display: none;
    }

    .code-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: relative;
    }
    
    .english,
    .japanese,
    .bottom-line {
        width: max-content;
        font-size: 14px;
    }

    .bottom-line {
        width: auto !important;
        display: flex;
        justify-content: flex-end;
    }

    .greet-content--mobile {
        display: flex;
        font-size: 14px;
        flex: 0 1 auto;
        width: max-content;
    }

    .drag-button {
        display: none;
    }

    .code-details--mobile {
        display: flex;
        padding-bottom: 27px;
    }
    
    .code-details--mobile div {
        font-size: 14px;
        display: flex;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .code-details {
        display: none;
    }

    .outline-section .outline-image {
        height: 450px;
        margin-left: 0;
    }

    .about-contacts-section {
        height: 10vh !important;
        width: -webkit-fill-available; /* iOS-specific fix for full width */
        width: 100vw; /* Fallback for other browsers */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        box-sizing: border-box;
        /* iOS fix for edge clipping */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }

    .contact-text-container {
        width: 185px;
        margin: 0 auto;
    }

    .code-toggle-indicator {
        left: 0;
        position: absolute;
        bottom: 5%;
    }

    .about-contacts-section .go-to-top-button {
        width: 40px;
        height: 40px;
        display: flex;
    }

    .code-text {
        gap: 3vh;
    }

    .code-details--mobile > div::after {
        color: var(--primary-color) !important;
        pointer-events: none;
    }
}

@media (max-width: 479px) {
    .vision-section {
        height: 100% !important;
    }

    .greet-section {
        height: 100% !important;
    }

    .outline-section {
        height: 100% !important;
    }

    .about-contacts-section {
        height: 10vh !important;
    }
}

@media (min-width: 376px) and (max-width: 400px) {
    .vision-section {
        padding: 100px 32px 50px 32px;
    }

    .code-section,
    .greet-section,
    .outline-section {
        padding: 50px 32px 50px 32px;
    }

    .greet-section {
        height: 100% !important;
    }

    .outline-section {
        height: 100% !important;
    }

    .code-toggle-indicator {
        bottom: 1px;
    }

    .about-contacts-section {
        height: 10vh !important;
    }
}

@media (max-width: 375px) {
    .section-navigation {
        padding: 8px 20px;
        top: 30px;
    }
    
    .section-nav-item {
        font-size: 9px;
    }
    
    .vision-section {
        height: 100% !important;
        padding: 100px 20px 40px 20px;
    }

    .outline-section {
        padding: 60px 20px 40px 20px;
        gap: 15px;
    }
    
    .section-text {
        display: none;
    }
    
    .section-text--mobile {
        display: flex;
        font-size: 16px;
    }
    
    .code-section {
        padding: 60px 20px 0 20px;
    }

    .greet-section {
        height: 100vh !important;
    }
    
    .mission-section .image-container,
    .outline-section .image-container {
        height: 150px;
    }

    .vision-section .image-container {
        height: 150px;
    }
    
    .code-toggle-indicator {
        left: 0;
        bottom: 1px;
    }

    .outline-section {
        height: 320vh !important;
    }
    
    .about-contacts-section {
        height: 10vh !important;
    } 
}

@media (max-width: 375px) and (max-height: 479px) {
    .vision-section {
        height: 100% !important;
    }

    .vision-section .image-container {
        width: 95%;
    }
    
    .code-container .image-container {
        width: 95%;
    }

    .greet-section {
        height: 100% !important;
    }

    .outline-section {
        height: 100% !important;
    }
}

/* =========================
    Mobile Animation
   ========================= */

@media (max-width: 767px) {
    .section-header,
    .code-header,
    .section-text--mobile,
    .code-content,
    .code-details--mobile,
    .code-text
    {
        opacity: 0 !important;
        transform: translateX(-30px) !important;
        -webkit-transform: translateX(-30px) !important;
        will-change: transform, opacity !important;
        transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                    opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        -webkit-transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s, 
                            opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
    }

    .section-header.animate,
    .code-header.animate,
    .section-text--mobile.animate,
    .code-content.animate,
    .code-details--mobile.animate,
    .code-text.animate
    {
        transform: translateX(0) !important; 
        opacity: 1 !important;
    }

    .code-toggle-indicator,
    .image-container,
    .outline-content--mobile,
    .outline-image,
    .nav-arrow
    {
        opacity: 0 !important;
        transition: opacity 1.2s linear !important;
        -webkit-transition: opacity 1.2s linear !important;
        will-change: transform, opacity !important;
        transition-delay: 0.2s;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .code-toggle-indicator.animate,
    .image-container.animate,
    .outline-content--mobile.animate,
    .outline-image.animate
    {
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .section-description--mobile,
    .greet-header,
    .greet-content,
    .signature,
    .outline-header
    {
        opacity: 0 !important;
        transform: translateY(-30px) !important;
        -webkit-transform: translateY(-30px) !important;
        transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                    opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        -webkit-transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                            opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        will-change: transform, opacity !important;
    }

    .section-description--mobile.animate,
    .greet-header.animate,
    .greet-content.animate,
    .signature.animate,
    .outline-header.animate
    {
        opacity: 1 !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }

    .nav-arrow.animate:not(.disabled)
    {
        opacity: 1 !important;
    }
}
