@charset "UTF-8";

body {
    font-family: 'Noto Sans JP', sans-serif;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Prevent horizontal scroll globally (incl. iOS Safari) */
body, html {
    position: relative;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Keep main wrappers within viewport */
#main,
#app,
.main-wrapper,
.page-wrapper {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Force swiper containers not to exceed viewport */
.swiper,
.swiper-wrapper,
.swiper-slide {
    max-width: 100vw;
    overflow: hidden;
}

.swiper-slide > * {
    max-width: 100vw;
    overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .swiper,
    .swiper-wrapper,
    .swiper-slide,
    .swiper-slide > * {
        max-width: 100vw;
        overflow: hidden;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 日本語の改行改善 */
h1, h2, h3, h4, h5, h6,
p, span, div, li, a, button {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* スマホ向けの改行調整 */
@media (max-width: 640px) {
    h1, h2 {
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    /* CTAボタンのテキスト改行 */
    a.bg-line {
        word-break: keep-all;
        white-space: normal;
        text-align: center;
    }
    /* 見出し内の改行を自然に */
    h2 br {
        display: inline;
    }
    /* 長いテキストの適切な改行 */
    p, span, div {
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    /* レインボーテキストのサイズ調整 */
    .rainbow-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* タブレット向けの調整 */
@media (min-width: 641px) and (max-width: 1024px) {
    .rainbow-text {
        font-size: 4rem;
    }
}

/* PC向けの調整 */
@media (min-width: 1025px) {
    .rainbow-text {
        font-size: 6rem;
    }
}

/* LINE Green Color */
.bg-line {
    background-color: #06C755;
}
.text-line {
    color: #06C755;
}
.hover-bg-line:hover {
    background-color: #05b34c;
}

/* Animation for CTA */
@keyframes pulse-custom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.animate-pulse-custom {
    animation: pulse-custom 2s infinite;
}

/* Subtle Bounce Animation */
@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}
.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-gradient {
    animation: gradient 3s ease infinite;
    background-size: 200% auto;
}

/* Fade In Animation */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #2563EB, #06C755);
}

/* Feature Cards Text Overflow Fix */
.space-y-1.text-xs span.font-bold,
.space-y-1.text-sm span.font-bold {
    line-height: 1.5 !important;
    word-break: keep-all;
    overflow-wrap: break-word;
    display: block;
}

/* Feature Cards Text Wrapping */
.min-w-0 {
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

.min-w-0 h3,
.min-w-0 p {
    word-break: keep-all;
    overflow-wrap: anywhere;
    hyphens: auto;
    max-width: 100%;
}

/* overflow-wrap-anywhere クラスのサポート */
.overflow-wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* PC向けのFeatureカードのテキスト調整 */
@media (min-width: 1024px) {
    .min-w-0 p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

/* Speech Bubble Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

.speech-bubble-float {
    animation: float 3s ease-in-out infinite;
}

.speech-bubble-float-reverse {
    animation: float-reverse 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Cloud Shape Speech Bubble */
.cloud-bubble {
    position: relative;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.cloud-bubble::before,
.cloud-bubble::after {
    content: '';
    position: absolute;
    background: inherit;
    border: inherit;
    border-radius: 50%;
}

.cloud-bubble::before {
    width: 30%;
    height: 30%;
    top: -10%;
    left: 10%;
}

.cloud-bubble::after {
    width: 25%;
    height: 25%;
    top: -8%;
    right: 15%;
}

/* Flow Section Chat Scroll */
.bg-\[#7494C0\] .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.bg-\[#7494C0\] .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.bg-\[#7494C0\] .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

.bg-\[#7494C0\] .overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Swiper Custom Styles */
.workExamplesSwiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 12px;
    position: relative;
}
.workExamplesSwiper.swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.workExamplesSwiper .swiper-wrapper {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 100%;
}
.workExamplesSwiper .swiper-slide {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 0 100%;
    overflow: hidden;
    margin: 0 auto;
}
.workExamplesSwiper .swiper-slide > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 auto;
}
.workExamplesSwiper img {
    width: 100%;
    height: auto;
    display: block;
}

@supports (-webkit-touch-callout: none) {
    /* iOS Safari 横スクロール対策 */
    .workExamplesSwiper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .workExamplesSwiper .swiper-slide {
        width: 100% !important;
        max-width: 100%;
        flex: 1 0 100%;
        overflow: hidden;
    }
    .workExamplesSwiper .swiper-slide > * {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .workExamplesSwiper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .workExamplesSwiper .swiper-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        transform: translate3d(0,0,0) !important;
    }
    .workExamplesSwiper .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100% !important;
        margin: 0 !important;
    }
    .workExamplesSwiper .swiper-slide > * {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}
.workExamplesSwiper .swiper-button-prev,
.workExamplesSwiper .swiper-button-next {
    color: #dc2626;
    font-weight: 900;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    border: 3px solid #1f2937;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.6);
    opacity: 0.45;
    transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    z-index: 30;
}
.workExamplesSwiper .swiper-button-prev {
    left: -32px;
}
.workExamplesSwiper .swiper-button-next {
    right: -32px;
}
.workExamplesSwiper .swiper-button-prev:after,
.workExamplesSwiper .swiper-button-next:after {
    font-size: 1.2rem;
    font-weight: 900;
}
.workExamplesSwiper .swiper-button-prev:hover,
.workExamplesSwiper .swiper-button-next:hover {
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.8);
}
/* Removed individual positioning to allow inline override */
.workExamplesSwiper .swiper-pagination-bullet {
    background: #2563EB;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}
.workExamplesSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #dc2626;
}


html {
    scroll-behavior: smooth;
}

/* CTA button size tweak (PC only) */
@media (min-width: 1024px) {
    .cta-line-btn {
        font-size: 1.2rem;
        padding: 16px 28px;
        gap: 10px;
        border-width: 5px;
    }
    .cta-line-btn i {
        font-size: 1.6rem;
    }
    .cta-line-btn span:last-child {
        font-size: 1.4rem;
    }
}

/* Dorm swiper: enforce slide sizing */
.dorm-swiper .swiper-slide {
    height: auto;
}
.dorm-swiper .swiper-slide img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    #pc-fixed-logo {
        display: block;
        position: fixed;
        left: 16px;
        top: 80px;
        z-index: 60;
        width: 140px;
        padding: 14px 12px;
        background: #f7f7f7;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }
    #pc-fixed-logo a {
        display: block;
        text-align: center;
    }
    #pc-fixed-logo img {
        width: 110px;
        height: auto;
        filter: drop-shadow(0 3px 10px rgba(0,0,0,0.16));
    }
    #pc-fixed-nav {
        display: block;
        position: fixed;
        right: 16px;
        top: 80px;
        z-index: 60;
        width: 160px;
        background: #f7f7f7;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 10px 0;
    }
    #pc-fixed-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    #pc-fixed-nav li + li {
        border-top: 1px solid #e5e7eb;
    }
    #pc-fixed-nav a {
        display: block;
        padding: 10px 14px;
        font-weight: 700;
        font-size: 14px;
        color: #1f2937;
        text-decoration: none;
        line-height: 1.4;
    }
    #pc-fixed-nav a:hover {
        background: #36b44b;
        color: #fff;
    }
}

/* Rainbow Text Effect */
.rainbow-text {
    background: linear-gradient(
        90deg,
        #FF0000 0%,
        #FF7F00 14%,
        #FFFF00 28%,
        #00FF00 42%,
        #0000FF 56%,
        #4B0082 70%,
        #9400D3 84%,
        #FF0000 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block;
    animation: rainbow-shift 3s linear infinite;
}

@keyframes rainbow-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Rainbow 3D Text Effect for 即寮 */
.rainbow-text-3d {
    background: linear-gradient(
        135deg,
        #FF0000 0%,
        #FF7F00 8%,
        #FFFF00 16%,
        #00FF00 24%,
        #00FFFF 32%,
        #0000FF 40%,
        #4B0082 48%,
        #9400D3 56%,
        #FF1493 64%,
        #FF7F00 72%,
        #FFFF00 80%,
        #00FF00 88%,
        #0000FF 96%,
        #FF0000 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift-3d 4s linear infinite;
    text-shadow: 
        3px 3px 0px rgba(0,0,0,0.8),
        -1px -1px 0px rgba(255,255,255,0.3),
        0 0 30px rgba(255,255,255,0.5),
        0 0 60px rgba(255,215,0,0.4);
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.6));
    position: relative;
}

@keyframes rainbow-shift-3d {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* Smartphone Frame Styles */
.phone-frame {
    box-shadow: 
        0 0 0 2px #1f2937,
        0 20px 40px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    margin-right: auto;
    max-width: 430px;
}

.phone-screen {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow-x: hidden;
    max-width: 430px;
}

.phone-screen .overflow-y-auto,
.phone-screen .flex-1 {
    overflow-x: hidden;
}

.phone-screen img {
    max-width: 100%;
    height: auto;
    display: block;
}

.phone-screen .swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.phone-screen .swiper-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Scrollbar styling for phone screen */
.phone-screen .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.phone-screen .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.phone-screen .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

.phone-screen .overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Hero FV size adjustment for desktop */
@media (min-width: 1024px) {
    .hero-fv img {
        max-height: 45vh;
        max-width: 900px;
        width: auto !important;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }
    .hero-fv {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 16px 0;
    }
}


/* Adjust sections for phone frame */
.phone-screen section {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Status bar icons */
.phone-screen .fa-signal,
.phone-screen .fa-wifi,
.phone-screen .fa-battery-three-quarters {
    font-size: 0.75rem;
}

/* Enhanced Speech Bubble Styles */
.bg-gradient-to-br {
    position: relative;
}

.bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* Enhanced shadow for speech bubbles */
.shadow-xl {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Handwritten Text Style */
.handwritten-text {
    font-family: 'Kalam', cursive;
    letter-spacing: 0.5px;
}

/* Chalk Text Style */
.chalk-text {
    font-family: 'Caveat', cursive;
    text-shadow: 
        2px 2px 0px rgba(0,0,0,0.3),
        0 0 10px rgba(255,255,255,0.1),
        0 0 20px rgba(255,255,255,0.05);
    letter-spacing: 1px;
}

.chalk-check {
    font-family: 'Caveat', cursive;
    color: #ff6b6b;
    font-size: 2rem;
    font-weight: 700;
    transform: rotate(-15deg);
    text-shadow: 
        2px 2px 0px rgba(0,0,0,0.3),
        0 0 10px rgba(255,107,107,0.3);
}

.chalk-item {
    position: relative;
}

/* Torn Paper Item - Chalkboard Style */
.torn-paper-item {
    position: relative;
    clip-path: polygon(
        0% 0%, 
        98% 2%, 
        100% 5%, 
        97% 8%, 
        100% 12%, 
        98% 15%, 
        100% 20%, 
        99% 25%, 
        100% 30%, 
        98% 35%, 
        100% 40%, 
        99% 45%, 
        100% 50%, 
        98% 55%, 
        100% 60%, 
        99% 65%, 
        100% 70%, 
        98% 75%, 
        100% 80%, 
        99% 85%, 
        100% 90%, 
        98% 95%, 
        100% 100%, 
        0% 100%
    );
    transform: rotate(-0.5deg);
}

.torn-paper-item-2 {
    clip-path: polygon(
        0% 0%, 
        99% 1%, 
        97% 4%, 
        100% 7%, 
        98% 10%, 
        100% 14%, 
        99% 18%, 
        100% 22%, 
        98% 26%, 
        100% 30%, 
        99% 34%, 
        100% 38%, 
        98% 42%, 
        100% 46%, 
        99% 50%, 
        100% 54%, 
        98% 58%, 
        100% 62%, 
        99% 66%, 
        100% 70%, 
        98% 74%, 
        100% 78%, 
        99% 82%, 
        100% 86%, 
        98% 90%, 
        100% 94%, 
        99% 98%, 
        100% 100%, 
        0% 100%
    );
    transform: rotate(0.3deg);
}

.torn-paper-item-3 {
    clip-path: polygon(
        0% 0%, 
        97% 1%, 
        100% 3%, 
        98% 6%, 
        100% 9%, 
        97% 12%, 
        100% 15%, 
        99% 18%, 
        100% 21%, 
        98% 24%, 
        100% 27%, 
        97% 30%, 
        100% 33%, 
        99% 36%, 
        100% 39%, 
        98% 42%, 
        100% 45%, 
        97% 48%, 
        100% 51%, 
        99% 54%, 
        100% 57%, 
        98% 60%, 
        100% 63%, 
        97% 66%, 
        100% 69%, 
        99% 72%, 
        100% 75%, 
        98% 78%, 
        100% 81%, 
        97% 84%, 
        100% 87%, 
        99% 90%, 
        100% 93%, 
        98% 96%, 
        100% 99%, 
        0% 100%
    );
    transform: rotate(-0.2deg);
}


