﻿@charset "UTF-8";
body {
    font-family: 'Inter', sans-serif;
}
.hero-section {
    min-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    padding-bottom: 10%;
    margin-top:4vh ;/*上端からの位置*/
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%; /* この高さはJSで取得されます */
    object-fit: cover;
    filter: brightness(0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: black;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    /* padding-top は JavaScript で動的に設定されます */
    padding-top: 0; /* 初期値は0に設定 */
}

.hero-content h1, 
.hero-content p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-container a {
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 350px;
}

/* PC用スタイル */
@media (min-width: 1024px) {
    .hero-section {
        min-height: 80vh; 
        padding: 2rem;
    }
    
    .hero-image {
        height: 30%;
    }
    /* hero-contentのpadding-topはJSで制御されるため、ここから削除 */
    
    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 3rem;
    }
    
    .btn-container {
        gap: 1.5rem;
    }
    
    .btn-container a {
        min-width: 280px;
        max-width: 400px;
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
}

/* タブレット用スタイル */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem;
    }
    
    .hero-image {
        height: 32%; /* JSで取得される高さに影響します */
    }
    /* hero-contentのpadding-topはJSで制御されるため、ここから削除 */
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 2.5rem;
    }
    
    .btn-container a {
        min-width: 220px;
        max-width: 300px;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* スマートフォン用スタイル */
@media (max-width: 767px) {
    .hero-section {
        min-height: 55vh;
        padding: 1rem 0.75rem;
    }
    
    .hero-image {
        height: 20%; /* 25% から変更: スマートフォンでの高さをさらに縮小 */
    }
    .hero-content {
        /* JSで設定されるpadding-topがあるため、負のマージンは削除 */
        margin-top: 0; /* -1.5rem から変更 */
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .btn-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-container a {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* 非常に小さな画面用 */
@media (max-width: 480px) {
    .hero-section {
        padding: 0.75rem 0.5rem;
    }
    
    .hero-image {
        height: 18%; /* 22% から変更: 非常に小さな画面での高さをさらに縮小 */
    }
    .hero-content {
        /* JSで設定されるpadding-topがあるため、負のマージンは削除 */
        margin-top: 0; /* -1rem から変更 */
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-container a {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

.gallery-grid {
    display: grid;
    gap: 1.5rem; /* Tailwind's gap-6 */
}

@media (min-width: 640px) { /* sm */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
@media (min-width: 768px) { /* md */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
@media (min-width: 1024px) { /* lg */
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.gallery-item {
    transition: transform 0.3s ease-in-out;
}
.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.section-heading {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
    color: #4338ca; /* indigo-700 */
    text-align: center;
}

@media (max-width: 640px) { /* sm */
    .section-heading {
        font-size: 1.25rem; /* text-4xl */

    }
}

.section-subheading {
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 2.5rem; /* mb-10 */
    text-align: center;
    max-width: 3xl; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem; /* rounded-lg */
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
@media (min-width: 768px) {
    .modal-close {
        top: 10px;
        right: 10px;
    }
}

.tab-button {
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    font-weight: 500; /* font-medium */
    color: #6b7280; /* text-gray-500 */
    border-bottom-width: 2px;
    border-color: transparent;
    transition: all 0.3s ease;
}
.tab-button:hover {
    color: #4f46e5; /* indigo-600 */
}
.tab-button.active-tab {
    border-bottom-width: 2px;
    border-color: #4f46e5; /* indigo-600 */
    color: #4f46e5; /* indigo-600 */
    font-weight: 600; /* font-semibold */
}

.tab-content {
    display: none;
    padding-top: 1.5rem; /* pt-6 */
}
.tab-content.active-content {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.feature-card, .usecase-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.feature-card:hover, .usecase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-xl */
}

.spinner {
    width: 2rem; /* w-8 */
    height: 2rem; /* h-8 */
    border: 4px solid rgba(129, 140, 248, 0.2); /* border-indigo-300 opacity 20% */
    border-left-color: #6366f1; /* border-l-indigo-500 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.75rem; /* mr-3 */
}

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

.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 300px;
}
@media (min-width: 768px) {
    .chart-container {
        height: 350px;
        width: 350px;
    }
}

#prompt-selector button {
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#prompt-selector button:hover {
    transform: translateY(-2px);
}

#generation-result {
    min-height: 200px; /* Ensure space for text or image */
}
#generation-result img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    height: auto;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* shadow-md */
}

.usecase-item .usecase-example {
    display: none;
    margin-top: 0.75rem; /* mt-3 */
    padding: 0.75rem; /* p-3 */
    background-color: #f3f4f6; /* bg-gray-100 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
}
.usecase-item:hover .usecase-example {
    display: block;
}

/*拡大画像の調整*/
#imageModal {
    display: none; /* 初期は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒背景 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#imageModal.active {
    display: flex; /* アクティブ時に中央に表示 */
}

#modalImage {
    max-width: 90vw;  /* 画面幅の90%以内 */
    max-height: 90vh; /* 画面高さの90%以内 */
    object-fit: contain; /* アスペクト比を保ちつつ表示 */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
