/* Background Particles */
#background-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7; /* Slightly increased opacity */
    filter: blur(1.5px); /* Slightly reduced blur */
}

/* Dark theme adjustments for background particles */
html[data-theme="dark"] #background-particles {
    opacity: 0.5; /* Slightly increased opacity for dark theme too */
}

/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #00b3e6;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #23222a;
    --light-bg: #f8f9fa;
    --gray-bg: #f0f2f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-bg: #fff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: var(--dark-bg);
    --footer-text: var(--light-text);
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --primary-color: #4d94ff;
    --secondary-color: #80b3ff;
    --accent-color: #33ccff;
    --text-color: #e0e0e0;
    --light-bg: #2a2a36;
    --gray-bg: #333340;
    --border-color: #444;
    --card-bg: #2d2d3a;
    --header-bg: rgba(35, 34, 42, 0.95);
    --footer-bg: #1a1a24;
    --footer-text: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 4px 0 8px 0;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.theme-toggle i {
    color: var(--text-color);
    font-size: 1.2rem;
}

.theme-toggle .fa-sun {
    color: #f9d71c;
    margin-right: 8px;
}

.theme-toggle .fa-moon {
    color: #5c5c7a;
    margin-left: 8px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    margin: 0 5px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + label:before {
    transform: translateX(26px);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 179, 230, 0.7));
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure hero is above background particles */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 179, 230, 0.7);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    animation: heroTextGlow 3s ease-in-out infinite alternate;
}

@keyframes heroTextGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 179, 230, 0.7);
    }
    100% {
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 179, 230, 0.9), 0 0 40px rgba(0, 102, 204, 0.4);
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.info-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 20px;
}

.service-features {
    text-align: left;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feature i {
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 5px;
}

/* Careers Section */
.careers {
    background-color: var(--light-bg);
}

.careers-content {
    max-width: 800px;
    margin: 0 auto;
}

.career-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.career-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.career-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.detail {
    display: flex;
    align-items: center;
}

.detail i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-info .info-item {
    text-align: center;
}

.contact-info .info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-left: 30px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Email Address Fix */
.email-address {
    word-break: break-all;
}

/* AI Product Section */
.ai-product-container {
    margin-top: 80px;
    text-align: center;
}

.ai-product-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 30px auto 40px;
    max-width: 800px;
    color: var(--text-color);
}

.ai-product-box {
    background-color: #f0f7ff; /* 薄い青色の背景 */
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 900px;
}

.product-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 300px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-divider {
    width: 2px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    margin: 20px 10px;
}

.product-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    text-align: center;
}

.product-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.product-content {
    padding: 20px;
    text-align: center;
}

.product-content p {
    margin-bottom: 20px;
    min-height: 70px;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.95rem;
}

.product-logo-container {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 15px;
    margin: 0 auto 15px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-card:hover .product-logo-container {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-logo {
    max-width: 90px;
    max-height: 90px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-logo {
    transform: scale(1.05);
}

.product-content h5 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

/* News Section */
.news {
    background-color: var(--light-bg);
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-content {
    margin-bottom: 20px;
}

.news-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.news-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Vision Section */
.vision {
    background-color: var(--gray-bg);
}

.vision-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.vision-block {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.vision-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vision-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vision-block h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vision-block p {
    line-height: 1.8;
}

.vision-founder {
    max-width: 800px;
    margin: 0 auto;
}

.vision-founder blockquote {
    background-color: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    padding: 30px 35px;
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow);
    position: relative;
}

.vision-founder blockquote p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

.vision-founder blockquote cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Info Sub text */
.info-sub {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 5px;
}

/* Timeline */
.timeline-section {
    margin-top: 60px;
}

.timeline-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 13px;
    height: 13px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--light-bg);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* Service Detail sub-sections */
.service-card-wide {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.service-card-wide h3 {
    text-align: center;
}

.service-card-wide > p {
    text-align: center;
    margin-bottom: 30px;
}

.service-detail {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.service-detail h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-detail h4 i {
    margin-right: 8px;
}

.service-detail p {
    line-height: 1.8;
    margin-bottom: 0;
}

/* New Business Section */
.new-business {
    background-color: var(--gray-bg);
}

.new-business-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
}

.new-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.new-biz-card {
    background-color: var(--card-bg);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.new-biz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.new-biz-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.new-biz-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.new-biz-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

a.new-biz-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.new-biz-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

a.new-biz-card:hover .new-biz-more {
    text-decoration: underline;
}

/* Careers Section - Updated */
.careers-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: none;
}

.career-card {
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.career-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.career-card-header i {
    font-size: 1.5rem;
}

.career-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: white;
}

.career-card-body {
    padding: 25px;
}

.career-card-body h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    margin-top: 15px;
}

.career-card-body h4:first-child {
    margin-top: 0;
}

.career-card-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.career-card-body ul li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.career-card-body p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.careers-common {
    margin-top: 40px;
    text-align: center;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.careers-common h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.common-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.common-details .detail {
    display: flex;
    align-items: center;
}

.common-details .detail i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1040px) {
    .header {
        font-size: 0.8rem;
    }
    .logo h1{
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .header {
        font-size: 0.7rem;
    }
    .logo h1{
        font-size: 1.2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.0rem;
    }
}

@media (max-width: 815px) {
    .logo h1{
        font-size: 1.3rem;
    }
    .hero-content p {
        font-size: 0.7rem;
    }
    .menu-toggle {
        display: block;
    }
    
    .theme-toggle {
        margin-left: 20px;
        margin-right: 50px;
    }
    
    .headline h3.Text-Span {
        font-size: 1.8rem;
    }
    
    .section_content {
        font-size: 1rem;
        padding: 30px !important;
    }
    
    .ai-product-box {
        padding: 25px 15px;
    }
    
    .product-cards {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .product-divider {
        width: 80%;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--primary-color), transparent);
        margin: 10px auto;
    }
    
    .product-card {
        width: 100%;
        max-width: 300px;
    }
    
    .ai-product-description {
        font-size: 1.1rem;
        margin: 20px auto 30px;
        padding: 0 15px;
    }
    
    .product-logo-container {
        width: 110px;
        height: 110px;
    }
    
    .product-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--card-bg);
        flex-direction: column;
        transition: var(--transition);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .vision-content {
        grid-template-columns: 1fr;
    }

    .new-business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .careers-content {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .footer-links ul li {
        margin: 0 15px;
        margin-bottom: 10px;
    }
}
@media (max-height: 850px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.8rem;
    }
    .hero-content {
        max-width: 80%;
    }
}
@media (max-height: 760px) {
    .hero-content {
        max-width: 70%;
    }
    .hero-content a{
        font-size: 0.8rem;
    }
}

@media (max-height: 680px) {
    .hero-content {
        max-width: 50%;
    }
    .hero-content a{
        font-size: 0.7rem;
    }
}
@media (max-height: 680px) {
    .hero-content img{
        display: none;
    }
}

@media (max-width: 576px) {
    section {
        padding: 70px 0;
    }

    .theme-toggle {
        margin-left: 20px;
        margin-right: 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .info-item, .service-card, .contact-form {
        padding: 20px;
    }

    .career-card {
        padding: 0;
    }

    .new-business-grid {
        grid-template-columns: 1fr;
    }

    .vision-founder blockquote {
        padding: 20px 25px;
    }

    .careers-common {
        padding: 25px;
    }

    .common-details {
        flex-direction: column;
        align-items: center;
    }

    .timeline-title {
        font-size: 1.5rem;
    }
    
    .headline h3.Text-Span {
        font-size: 1.5rem;
    }
    
    .headline .sm_title {
        font-size: 1rem;
    }
    
    .section_content {
        font-size: 0.9rem;
        padding: 20px !important;
    }
    
    .ai-product-container {
        margin-top: 60px;
    }
    
    .ai-product-box {
        padding: 20px 10px;
        border-radius: 10px;
    }
    
    .ai-product-description {
        font-size: 0.95rem;
        margin: 15px auto 25px;
    }
    
    .product-card {
        max-width: 260px;
    }
    
    .product-header {
        padding: 12px;
    }
    
    .product-header h4 {
        font-size: 1.2rem;
    }
    
    .product-content {
        padding: 15px 12px;
    }
    
    .product-content p {
        font-size: 0.9rem;
        min-height: 80px;
        margin-bottom: 15px;
    }
    
    .product-content h5 {
        font-size: 1rem;
    }
    
    .product-logo-container {
        width: 100px;
        height: 100px;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .product-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    .product-divider {
        width: 70%;
        margin: 5px auto;
    }
}

/* ===== モーダル画像拡大用 ===== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}
.modal.open {
    display: flex;
}
.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.3);
    background: #fff;
    object-fit: contain;
    animation: modal-fadein 0.2s;
}
@keyframes modal-fadein {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}
.modal-close {
    position: absolute;
    top: 24px;
    right: 36px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 0 2px 8px #000;
    user-select: none;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #ff5252;
}
@media (max-width: 600px) {
    .modal-content {
        max-width: 98vw;
        max-height: 60vh;
    }
    .modal-close {
        top: 12px;
        right: 16px;
        font-size: 2rem;
    }
}
