@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Mochiy+Pop+One&family=M+PLUS+Rounded+1c:wght@400;900&display=swap');

:root {
    --primary: #6C5CE7;
    --secondary: #00B894;
    --accent: #FD79A8;
    --light: #F9F9F9;
    --dark: #2D3436;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

header {
    background: var(--gradient);
    padding: 1.5rem 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container p {
    color: #666;
    text-align: left;
    font-size: 1.1rem;
    margin: 0 auto;
    line-height: 1.6;
}

.container .section-subtitle {
    font-size: 1.1rem;
    margin: 0 auto;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.logo-image img {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
  position: relative;
  font-weight: 700;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.contact-btn {
    background-color: white;
    color: var(--primary) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary) !important;
}

.btn {
    background-color: white;
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section - Specific to index.html */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero > .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.hero-content {
    width: 50%;
    z-index: 1;
    order: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--dark);
    font-family: 'M PLUS Rounded 1c', cursive;
    font-weight: 700;
}

.hero-title span {
    color: var(--primary);
    font-family: 'M PLUS Rounded 1c', cursive;
    font-weight: 900;
}

.hero-desc {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-image {
    width: 45%;
    position: relative;
    z-index: 1;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    height: auto;
    max-height: 40vh;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background-color: rgba(108, 92, 231, 0.1);
    top: 10%;
    right: 5%;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 184, 148, 0.1);
    bottom: 20%;
    left: 10%;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background-color: rgba(253, 121, 168, 0.1);
    bottom: 15%;
    right: 15%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    text-align: left;
    font-size: 1.1rem;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section - Specific to index.html */
.features {
    padding: 6rem 0;
    background-color: white;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: calc(33.333% - 2rem);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: var(--gradient);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Cases Section (Business/Product Intro) - Specific to index.html */
.cases {
    padding: 6rem 0;
    background-color: white;
}

.case-studies {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.case-card {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.case-img {
    width: 100%;
    height: 250px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.case-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.case-link span {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.case-link:hover span {
    margin-left: 1rem;
}

/* CTA Section - Specific to index.html */
.cta {
    padding: 6rem 0;
    background: var(--gradient);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-btn {
    background-color: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Styles (shared with about.html) */
footer {
    padding: 4rem 0;
    background-color: var(--dark);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem; /* Added gap for consistent spacing */
}

.footer-column {
    margin-bottom: 2rem;
    /* Removed padding-right from here, gap handles horizontal spacing */
}

.footer-column:first-child {
    flex-basis: calc((100% / 12 * 6) - 2rem); /* 6/12 = 50% minus gap */
}

.footer-column:nth-child(2),
.footer-column:nth-child(3) {
    flex-basis: calc((100% / 12 * 3) - 2rem); /* 3/12 = 25% minus gap */
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-column p {
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px; /* アイコンの幅 */
    height: 40px; /* アイコンの高さ */
    border-radius: 50%; /* 円形を維持 */
    background-color: rgba(255, 255, 255, 0.1); /* 背景色を維持 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* color: white; /* テキストではなく画像を使うため不要になるが、残しても問題なし */
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent);
}

/* 追加: social-icon 内の画像にスタイルを適用 */
.social-icon img {
    width: 60%; /* 親要素の幅に合わせてサイズ調整 */
    height: 60%; /* 親要素の高さに合わせてサイズ調整 */
    object-fit: contain; /* アスペクト比を保ちつつ、要素内に収める */
}

.copyright {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.copyright p { /* .copyright の中の p タグを指定 */
    text-align: center;
}

/* Responsive adjustments for index.html hero */
@media (max-width: 992px) {
    .hero > .container {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
        height: auto;
    }

    .hero-content {
        width: 100%;
        margin-bottom: 3rem;
        order: unset;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-image {
        width: 100%;
        order: unset;
    }

    .hero-image img {
        max-height: 30vh;
    }

    .feature-card {
        width: calc(50% - 2rem);
    }

    .case-studies {
        flex-direction: column;
    }

    /* Footer responsive for medium screens */
    .footer-column:first-child,
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        flex-basis: calc(50% - 1rem); /* Approximately 50% each for two columns per row */
    }
}

@media (max-width: 768px) {
    .feature-card {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }
    .hero-desc {
        font-size: 0.9rem;
    }
    .hero-image img {
        max-height: 25vh;
    }

    /* Footer responsive for small screens */
    .footer-column:first-child,
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        flex-basis: 100%; /* Full width for single column layout */
    }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.mission-card, .feature-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.mission-card:nth-child(1) { animation-delay: 0.1s; }
.mission-card:nth-child(2) { animation-delay: 0.3s; }