@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #17a2b8;
    --primary-dark: #138496;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.05em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* First View / Hero */
.hero {
    margin-top: 80px;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.4;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #2c3e50 0%, #17a2b8 50%, #2c3e50 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite, fadeInUp 1.2s ease;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: expandWidth 1.5s ease 0.5s forwards;
    transform-origin: center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0%;
    }
    to {
        width: 60%;
    }
}

.hero-logo-wrapper {
    margin-bottom: 4rem;
}

.hero-logo-wrapper img {
    max-width: 140px;
    height: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

.scroll-indicator span {
    font-size: 0.95rem;
    color: var(--text-dark);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Base */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.section-title .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Amis Section */
.about-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 50%;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    opacity: 0.02;
    border-radius: 50%;
}

.about-content {
    display: grid;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.business-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    perspective: 1000px;
}

.business-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    border-radius: 24px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    transform-style: preserve-3d;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(23, 162, 184, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.business-card:hover::before {
    opacity: 1;
}

.business-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(23, 162, 184, 0.25);
    border-color: var(--primary-color);
}

.business-icon {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 280px;
    height: 280px;
    opacity: 0.15;
    transition: all 0.5s ease;
    z-index: 0;
}

.business-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(23, 162, 184, 0.2));
}

.business-card:hover .business-icon {
    transform: scale(1.15) rotate(10deg);
    opacity: 0.25;
}

.business-card:nth-child(1):hover .business-icon {
    transform: scale(1.15) rotate(-10deg);
}

.business-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    width: 100%;
}

.business-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.business-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.business-card:hover h3::after {
    width: 120px;
}

.business-card p {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1rem;
}

.mission-vision {
    max-width: 900px;
    margin: 5rem auto 0;
    padding: 0;
    background: none;
    position: relative;
}

.mv-item {
    margin-bottom: 6rem;
    position: relative;
    padding-left: 5rem;
    border-left: 3px solid var(--primary-color);
}

.mv-item:last-child {
    margin-bottom: 0;
}

.mv-number {
    position: absolute;
    left: -2.5rem;
    top: 0;
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
}

.mv-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.mv-item h4 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
}

.mv-item p {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.05rem;
}

/* Values Section */
.values-section {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
    transition: all 0.3s ease;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-card:hover .value-icon {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.2);
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.value-card .value-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/contact-image.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .section-title h2 {
    color: white;
}

.contact-section .section-title h2::after {
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.contact-section .section-title .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.contact-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.contact-button.line {
    background: #06C755;
}

.contact-button.line:hover {
    background: #05b34c;
}

.contact-button.recruit {
    background: #6c757d;
}

.contact-button.recruit:hover {
    background: #5a6268;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SNS Links */
.sns-links {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.sns-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.sns-link svg {
    width: 24px;
    height: 24px;
}

.sns-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-logo-wrapper img {
        max-width: 100px;
    }

    .logo img {
        height: 32px;
    }

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

    .business-overview,
    .values-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .business-card h3 {
        padding-left: 1.8rem;
    }

    .business-card h3::before {
        height: 30px;
    }

    .mv-item {
        padding-left: 2rem;
    }

    .mission-vision {
        padding: 2.5rem 2rem;
    }
}




/* Footer Links Enhancement */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

















/* Floating Circle Animations for About Section - Dynamic Version */

/* キーフレーム定義 - 円1用（右上の円） - ダイナミック */
@keyframes floatCircle1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(-150px, 80px) scale(1.15) rotate(45deg);
    }
    40% {
        transform: translate(-280px, -50px) scale(0.9) rotate(90deg);
    }
    60% {
        transform: translate(-200px, 120px) scale(1.2) rotate(180deg);
    }
    80% {
        transform: translate(-100px, -80px) scale(0.95) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* キーフレーム定義 - 円2用（左下の円） - ダイナミック */
@keyframes floatCircle2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(200px, -150px) scale(1.25) rotate(-60deg);
    }
    45% {
        transform: translate(350px, 50px) scale(0.85) rotate(-120deg);
    }
    65% {
        transform: translate(250px, -200px) scale(1.15) rotate(-200deg);
    }
    85% {
        transform: translate(150px, 80px) scale(1.05) rotate(-300deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(-360deg);
    }
}

/* アニメーションを適用 */
.about-section::before {
    animation: floatCircle1 25s ease-in-out infinite;
    will-change: transform;
}

.about-section::after {
    animation: floatCircle2 30s ease-in-out infinite;
    will-change: transform;
}

/* パフォーマンス最適化のため */
.about-section {
    overflow: hidden;
}


















/* Loading Animation Styles */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    margin-bottom: 3rem;
    position: relative;
}

.loading-text {
    font-size: 5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
    display: inline-block;
    animation: fadeInScale 1.5s ease-in-out infinite alternate;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 3s ease-in-out infinite, floatText 2s ease-in-out infinite;
}

.loading-text-sub {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
    display: inline-block;
    margin-left: 0.5rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ffffff, var(--primary-color));
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressBar 2s ease-in-out forwards, gradientMove 1.5s linear infinite;
    box-shadow: 0 0 20px var(--primary-color);
}

/* アニメーション定義 */
@keyframes textGradientShift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

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

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes progressBar {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

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

@keyframes fadeInScale {
    from {
        transform: scale(1);
        filter: brightness(1);
    }
    to {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .loading-text {
        font-size: 3rem;
    }
    
    .loading-text-sub {
        font-size: 1.8rem;
    }
    
    .loading-bar {
        width: 250px;
    }
}