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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-color: hsl(157, 74%, 31%);
    --secondary-color: #c04c2b;
    --accent-color: #3498db;
    --business-title-color: #2c3e50;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f7f7f7;
    --white: #fff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* 日本語テキストの適切な改行設定 */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: auto;
    opacity: 0.8;
    object-fit: contain;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.4rem;
    transition: var(--transition);
}

.logo img {
    height: 45px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #667eea 0%, #37b258 100%);
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    border-radius: 50%;
    filter: blur(80px);
}

.hero-particles::before {
    background: rgba(255, 255, 255, 0.2);
    top: min(-200px, -20vw);
    right: min(-200px, -20vw);
    animation: float 20s ease-in-out infinite;
}

.hero-particles::after {
    background: rgba(255, 255, 255, 0.2);
    bottom: min(-200px, -20vw);
    left: min(-200px, -20vw);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.title-line-1 { animation-delay: 0.2s; }
.title-line-2 { animation-delay: 0.4s; }
.title-line-3 { animation-delay: 0.6s; }

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

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1.2rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
    overflow: hidden;
    position: relative;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Section Base Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

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

.section-title .title-main {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.section-title .title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--secondary-color);
    background-color: rgba(192, 76, 43, 0.05);
    border-radius: 0 8px 8px 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.mission-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.mission-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.3rem;
}

/* Business Section */
.business-section {
    background: var(--white);
    padding: 4rem 0;
}

.business-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.business-image {
    position: relative;
    width: 100%;
}

.business-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: block;
    position: relative;
    z-index: 2;
}

.image-decoration {
    display: none;
}

.business-text {
    width: 100%;
    overflow: hidden;
}

.business-text h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--business-title-color);
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    font-weight: 600;
}

.business-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.business-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.stat-label {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 5px;
}

.stat-desc {
    color: var(--text-light);
    margin-top: 0.5rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.feature-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: rotate(45deg) scale(1.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(108, 69, 169, 0.1));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

/* Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 1s;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .business-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .business-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .business-text {
        max-width: 100%;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .business-content {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .business-text h3 {
        font-size: 1.5rem;
    }
    
    .business-text p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .business-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title .title-main {
        font-size: 2rem;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: nowrap;
    }
    
    .section-title .title-sub {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* iPhone 12 Pro specific fixes */
@media (max-width: 390px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .header-container {
        padding: 0.8rem 1rem;
        max-width: 100%;
    }
    
    .hero-content {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .business-content {
        padding: 0 1rem;
        gap: 2rem;
        max-width: 100%;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .business-text h3 {
        font-size: 1.4rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .business-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-title .title-main {
        font-size: 1.8rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .section-title .title-sub {
        font-size: 1rem;
        padding: 0.5rem 0.5rem;
    }
}

/* Mobile Extra Small Screens */
@media (max-width: 360px) {
    .header-container {
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .mouse {
        width: 25px;
        height: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title .title-main {
        font-size: 1.5rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .section-title .title-sub {
        font-size: 0.9rem;
    }
    
    .mission-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .business-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .business-text h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .business-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .business-image {
        padding: 0 0.5rem;
    }
}