/* landing-page.css - INDEX.HTML (ランディングページ) 用スタイル */

/* Index ページの body */
.index-page {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

/* Index ページのヘッダー */
.index-page header {
    background-color: #4a5568;
    color: white;
    padding: 15px 0;
    position: relative;
}

.index-page .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.index-page .logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    z-index: 2;
    color: white;
}

.index-page .logo i {
    margin-right: 10px;
}

.index-page .nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.index-page .nav-links li {
    margin: 5px 10px;
}

.index-page .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
}

.index-page .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.index-page .nav-links .login-link {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.index-page .nav-links .login-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.index-page .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 60px 20px;
    text-align: left;
}

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

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 0 30px;
    line-height: 1.6;
}

.hero-image {
    margin: 30px 0;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ボタンスタイル */
.index-page .btn-primary {
    background-color: var(--color-success-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

.index-page .btn-primary:hover {
    background-color: #5ab885;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 199, 153, 0.3);
}

.index-page .btn-secondary {
    background-color: white;
    color: #4a5568;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

.index-page .btn-secondary:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.index-page .btn-cancel {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.index-page .btn-cancel:hover {
    background-color: #cbd5e0;
}

/* Features Section */
.features {
    padding: 60px 20px;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    color: #2d3748;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-info-dark);
    margin: 20px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--color-info-dark);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2d3748;
}

/* ダークモード対応: カード背景を暗く、テキストを明るく */
@media (prefers-color-scheme: dark) {
    .feature-card {
        background-color: #2d2d2d;
    }

    .feature-card h3 {
        color: #ffffff;
    }

    .feature-card p {
        color: #b0b0b0;
    }
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 60px 20px;
    background-color: #f0f2f5;
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: white;
    padding: 15px;
}

.screenshot p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #4a5568;
}

.screenshot img {
    width: 100%;
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.screenshot-caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
}

/* Pricing Section */
.pricing {
    padding: 60px 20px;
    background-color: white;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    margin-bottom: 20px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #805ad5;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.pricing-card h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 15px;
    color: #2d3748;
}

.pricing-card p {
    color: #4a5568;
    text-align: center;
    margin-bottom: 10px;
}

.price {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2d3748;
}

.price span {
    font-size: 16px;
    color: #718096;
    font-weight: normal;
}

.subscription-note {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

.features-list {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
}

.features-list li::before {
    content: '✓';
    color: var(--color-success-dark);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card .btn {
    display: block;
    text-align: center;
    width: 100%;
}

.discount-tag {
    position: absolute;
    top: 20px;
    right: -5px;
    background-color: var(--color-error-dark);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    transform: rotate(5deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.discount-tag::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-top: 5px solid #c53030;
}

.annual-savings {
    text-align: center;
    background-color: #ebf8ff;
    color: #2d3748;
    padding: 8px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 13px;
}

/* Testimonials */
.testimonials {
    padding: 60px 20px;
    background-color: #f0f2f5;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    color: #4a5568;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 40px;
    color: #e2e8f0;
    position: absolute;
    line-height: 0.1;
}

.testimonial-content::before {
    top: 0;
    left: -10px;
}

.testimonial-content::after {
    bottom: 0;
    right: -10px;
    transform: rotate(180deg);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2d3748;
}

.author-info p {
    font-size: 14px;
    color: #718096;
}

/* FAQ Section */
.faq {
    padding: 60px 20px;
    background-color: white;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: #f7fafc;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2d3748;
}

/* Font Awesomeアイコン（fa-chevron-down）のスタイル */
.faq-question .faq-icon {
    transition: transform 0.3s;
    font-size: 16px;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(180deg);
}

/* 古い::after疑似要素を無効化 */
.faq-question::after {
    content: none !important;
    display: none !important;
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 500px;
}

.faq-answer p {
    color: #4a5568;
}

/* CTA Section */
.cta {
    padding: 60px 20px;
    background: linear-gradient(135deg, #e6f2ff 0%, #d4e9ff 100%);
    color: #2d3748;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 25px;
}

.free-trial-badge {
    display: inline-block;
    background-color: white;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    margin: 20px 0;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Modal Styles for Index */
.index-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.index-page .modal-content {
    background: white;
    border-radius: 12px;
    padding: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.index-page .modal-content h3 {
    margin-top: 0;
    color: #2d3748;
    text-align: center;
}

.index-page .modal-content label {
    display: block;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 600;
}

.index-page .modal-content input,
.index-page .modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

/* Footer for Index */
.index-page footer {
    background-color: #2d3748;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: white;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-info-dark);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid #4a5568;
    font-size: 14px;
    color: #a0aec0;
}