/* ===== ホームページ専用スタイル ===== */

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-shape {
    position: absolute;
    border-radius: 50% 30% 50% 40%;
    filter: blur(1px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.gradient-shape-1 {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.gradient-shape-2 {
    width: 250px;
    height: 180px;
    background: linear-gradient(135deg, #48dbfb, #ff9ff3);
    bottom: 20%;
    left: 5%;
    animation-delay: -4s;
}

.gradient-shape-3 {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #54a0ff, #5f27cd);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        border-radius: 50% 30% 50% 40%;
    }
    33% { 
        transform: translateY(-20px) rotate(120deg);
        border-radius: 30% 50% 40% 50%;
    }
    66% { 
        transform: translateY(20px) rotate(240deg);
        border-radius: 40% 50% 30% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
}

.title-line {
    display: block;
    margin-bottom: 10px;
}

.highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 1s ease 0.7s forwards;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: slideUp 1s ease 0.9s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* サービスセクション */
.services {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.service-description {
    color: #666;
    line-height: 1.7;
}

/* 会社情報セクション */
.about-content {
    display: flex;
    width: 80%;
    margin: 0 auto;
    flex-direction: column;
    gap: 60px;
}

.about-text {
    width: 100%;
}

.about-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-description {
    margin-bottom: 40px;
}

.about-description p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.company-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* 会社情報リンク */
.company-links {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.company-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 280px;
}

.company-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.company-link:hover::before {
    left: 100%;
}

.company-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.company-link:hover .link-icon {
    transform: scale(1.1);
}

.link-icon svg {
    width: 18px;
    height: 18px;
}

.link-content {
    flex: 1;
}

.link-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.link-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.link-arrow {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: bold;
    transition: all 0.3s ease;
}

.company-link:hover .link-arrow {
    transform: translateX(5px);
    color: #e74c3c;
}

.about-visual {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    right: 0;
    top: -50%;
    z-index: 10;
    max-width: calc(50% - 30px);
    overflow: hidden;
}

.mark-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    padding: 40px;
}

.headon-mark {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    animation: markFloatAdvanced 6s ease-in-out infinite;
    position: relative;
    box-sizing: border-box;
}

@keyframes markFloatAdvanced {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: translateY(-15px) rotate(2deg) scale(1.02);
        filter: hue-rotate(5deg);
    }
    50% { 
        transform: translateY(-20px) rotate(-1deg) scale(1);
        filter: hue-rotate(10deg);
    }
    75% { 
        transform: translateY(-10px) rotate(3deg) scale(0.98);
        filter: hue-rotate(5deg);
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    pointer-events: none;
    overflow: hidden;
    box-sizing: border-box;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    animation: floatAroundAdvanced 12s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.circle-1 {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
    filter: blur(0.5px);
}

.circle-2 {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #48dbfb, #ff9ff3);
    bottom: 25%;
    left: 15%;
    animation-delay: -4s;
    filter: blur(0.3px);
}

.circle-3 {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #54a0ff, #5f27cd);
    top: 60%;
    right: 20%;
    animation-delay: -8s;
    filter: blur(0.7px);
}

.circle-4 {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    top: 30%;
    left: 5%;
    animation-delay: -2s;
    filter: blur(0.2px);
}

.circle-5 {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    bottom: 10%;
    right: 35%;
    animation-delay: -6s;
    filter: blur(0.4px);
}

@keyframes floatAroundAdvanced {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
        opacity: 0.8;
        filter: blur(0.5px);
    }
    20% { 
        transform: translateY(-30px) translateX(15px) scale(1.2) rotate(90deg);
        opacity: 1;
        filter: blur(0.2px);
    }
    40% { 
        transform: translateY(-20px) translateX(-25px) scale(0.8) rotate(180deg);
        opacity: 0.6;
        filter: blur(0.8px);
    }
    60% { 
        transform: translateY(25px) translateX(10px) scale(1.1) rotate(270deg);
        opacity: 0.9;
        filter: blur(0.3px);
    }
    80% { 
        transform: translateY(15px) translateX(-15px) scale(0.9) rotate(360deg);
        opacity: 0.7;
        filter: blur(0.6px);
    }
}

/* お問い合わせセクション */
.contact {
    background: #f8f9fa;
}

.contact-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b6b;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    margin-bottom: 5px;
    color: #333;
}

.contact-details p {
    color: #666;
}

/* Googleマップ */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f8f9fa;
    height: 100%;
    min-height: 280px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: all 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-link:hover {
    background: rgba(255, 107, 107, 0.9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.map-icon {
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* ホームページレスポンシブデザイン */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 80px 0 40px;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
        word-break: break-word;
    }
    
    .highlight {
        font-size: 2.8rem;
        word-break: break-word;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 35px;
        padding: 0 20px;
        word-break: break-word;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 35px 25px;
        word-break: break-word;
    }
    
    .about-content {
        width: 100%;
        gap: 40px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .about-bottom {
        grid-template-columns: 1fr;
        gap: 40px;
        position: relative;
        overflow: hidden;
    }
    
    .about-visual {
        position: static;
        right: auto;
        top: auto;
        justify-content: center;
        order: -1;
        max-width: 100%;
        overflow: hidden;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1.2s ease 0.5s forwards;
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mark-container {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .headon-mark {
        max-width: 200px;
        width: 100%;
    }
    
    .about-left {
        gap: 30px;
    }
    
    .company-stats {
        text-align: center;
        gap: 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .company-links {
        margin-top: 20px;
        gap: 12px;
    }
    
    .company-link {
        padding: 18px 15px;
        gap: 15px;
        min-width: auto;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
    }
    
    .link-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .link-content h4 {
        font-size: 1rem;
    }
    
    .link-content p {
        font-size: 13px;
    }
    
    .contact-info-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        padding: 20px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .map-container {
        min-height: 250px;
    }
    
    .map-link {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .gradient-shape-1,
    .gradient-shape-2,
    .gradient-shape-3 {
        width: 120px;
        height: 80px;
    }
    
    .floating-circle {
        transform: scale(0.5);
        animation: floatAroundMobile 12s ease-in-out infinite;
    }
    
    .circle-4, .circle-5 {
        display: none;
    }
    
    .headon-mark {
        animation: markFloatMobile 6s ease-in-out infinite;
    }
    
    @keyframes markFloatMobile {
        0%, 100% { 
            transform: translateY(0) rotate(0deg) scale(1);
            filter: hue-rotate(0deg);
        }
        25% { 
            transform: translateY(-5px) rotate(1deg) scale(1.01);
            filter: hue-rotate(2deg);
        }
        50% { 
            transform: translateY(-8px) rotate(-0.5deg) scale(1);
            filter: hue-rotate(3deg);
        }
        75% { 
            transform: translateY(-3px) rotate(1.5deg) scale(0.99);
            filter: hue-rotate(2deg);
        }
    }
    
    @keyframes floatAroundMobile {
        0%, 100% { 
            transform: translateY(0px) translateX(0px) scale(0.5) rotate(0deg);
            opacity: 0.6;
            filter: blur(0.3px);
        }
        20% { 
            transform: translateY(-10px) translateX(5px) scale(0.7) rotate(90deg);
            opacity: 0.8;
            filter: blur(0.2px);
        }
        40% { 
            transform: translateY(-6px) translateX(-8px) scale(0.4) rotate(180deg);
            opacity: 0.5;
            filter: blur(0.4px);
        }
        60% { 
            transform: translateY(8px) translateX(3px) scale(0.6) rotate(270deg);
            opacity: 0.7;
            filter: blur(0.2px);
        }
        80% { 
            transform: translateY(5px) translateX(-5px) scale(0.5) rotate(360deg);
            opacity: 0.6;
            filter: blur(0.3px);
        }
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 70px 0 30px;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
        word-break: break-word;
        hyphens: auto;
    }
    
    .highlight {
        font-size: 2.2rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
        line-height: 1.6;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-buttons .btn {
        max-width: 200px;
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .services-grid {
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 20px;
        word-break: break-word;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }
    
    .service-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .service-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        word-break: break-word;
    }
    
    .about-content {
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .about-bottom {
        gap: 30px;
        overflow: hidden;
    }
    
    .about-visual {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUpSmall 1s ease 0.3s forwards;
    }
    
    @keyframes fadeInUpSmall {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .headon-mark {
        max-width: 160px;
        width: 100%;
    }
    
    .mark-container {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .company-links {
        margin-top: 20px;
        gap: 10px;
    }
    
    .company-link {
        padding: 15px 12px;
        gap: 12px;
    }
    
    .link-icon {
        width: 35px;
        height: 35px;
    }
    
    .link-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .link-content h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .link-content p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .contact-item {
        padding: 15px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-details h3 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .map-container {
        min-height: 200px;
    }
    
    .map-overlay {
        bottom: 8px;
        right: 8px;
    }
    
    .map-link {
        padding: 5px 8px;
        font-size: 10px;
        gap: 5px;
    }
    
    .gradient-shape-1,
    .gradient-shape-2,
    .gradient-shape-3 {
        width: 100px;
        height: 60px;
    }
    
    .floating-circle {
        transform: scale(0.4);
        animation: floatAroundMobileSmall 10s ease-in-out infinite;
    }
    
    .headon-mark {
        animation: markFloatMobileSmall 8s ease-in-out infinite;
    }
    
    @keyframes markFloatMobileSmall {
        0%, 100% { 
            transform: translateY(0) rotate(0deg) scale(1);
            filter: hue-rotate(0deg);
        }
        25% { 
            transform: translateY(-3px) rotate(0.5deg) scale(1.005);
            filter: hue-rotate(1deg);
        }
        50% { 
            transform: translateY(-5px) rotate(-0.3deg) scale(1);
            filter: hue-rotate(2deg);
        }
        75% { 
            transform: translateY(-2px) rotate(0.8deg) scale(0.995);
            filter: hue-rotate(1deg);
        }
    }
    
    @keyframes floatAroundMobileSmall {
        0%, 100% { 
            transform: translateY(0px) translateX(0px) scale(0.4) rotate(0deg);
            opacity: 0.5;
            filter: blur(0.2px);
        }
        25% { 
            transform: translateY(-6px) translateX(3px) scale(0.5) rotate(90deg);
            opacity: 0.7;
            filter: blur(0.1px);
        }
        50% { 
            transform: translateY(-4px) translateX(-5px) scale(0.3) rotate(180deg);
            opacity: 0.4;
            filter: blur(0.3px);
        }
        75% { 
            transform: translateY(5px) translateX(2px) scale(0.45) rotate(270deg);
            opacity: 0.6;
            filter: blur(0.1px);
        }
    }
}