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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 280px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
        max-width: 200px;
    }
}

/* 旧スタイルは削除または非表示 */
.logo {
    display: none;
}

.tagline {
    display: none;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 作成中リボン */
.development-ribbon {
    position: absolute;
    top: 110px; /* ヘッダーの高さ分下げる（精密調整） */
    left: -115px; /* 長さ拡大に合わせて位置調整 */
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 25px 157px; /* 長さを1.5倍に拡大 */
    font-size: 1.5rem; /* さらに拡大 */
    font-weight: 600;
    transform: rotate(-45deg);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4); /* シャドウもさらに強化 */
    z-index: 10;
    text-align: center;
    border: 4px solid rgba(255, 255, 255, 0.3); /* ボーダーもさらに太く */
    backdrop-filter: blur(10px);
    animation: ribbonPulse 2.5s ease-in-out infinite;
}

@keyframes ribbonPulse {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    }
    50% {
        transform: rotate(-45deg) scale(1.03);
        box-shadow: 0 6px 18px rgba(231, 76, 60, 0.45);
    }
}

.development-ribbon::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #c0392b, #a93226);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .development-ribbon {
        top: 75px; /* モバイルでのヘッダー高さ分調整 */
        left: -92px; /* 長さ拡大に合わせて調整 */
        padding: 11px 127px; /* 長さを1.5倍に調整 */
        font-size: 1.3rem; /* さらに調整 */
    }
}

@media (max-width: 480px) {
    .development-ribbon {
        top: 70px; /* 小さなスクリーンでの調整 */
        left: -82px; /* 長さ拡大に合わせて調整 */
        padding: 9px 112px; /* 長さを1.5倍に調整 */
        font-size: 1.2rem; /* さらに調整 */
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* API Demo Visualization */
.api-demo {
    perspective: 1000px;
}

.code-window {
    background: #2d3748;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: rotateY(-10deg) rotateX(5deg);
}

.window-header {
    background: #4a5568;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-buttons {
    display: flex;
    gap: 0.5rem;
}

.window-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27ca3f; }

.window-title {
    color: #e2e8f0;
    font-weight: 500;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-content pre {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2d3748;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    line-height: 1.8;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: #f7fafc;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.demo-input,
.demo-output {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.demo-input h3,
.demo-output h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.3rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.json-output {
    background: #2d3748;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.json-output pre {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 650px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: #667eea;
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.pricing-card.enterprise {
    border-color: #764ba2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-card.enterprise .plan-name,
.pricing-card.enterprise .plan-subtitle,
.pricing-card.enterprise .plan-price {
    color: white;
}

.pricing-card.enterprise .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.enterprise .plan-target {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.pricing-card.enterprise .plan-target strong {
    color: white;
}

.pricing-card.enterprise .plan-target p {
    color: white;
}

.pricing-card.enterprise .plan-features li::before {
    color: #ffd700;
}

.pricing-card.enterprise .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.pricing-card.enterprise .btn-outline:hover {
    background: white;
    color: #667eea;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.plan-price span {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: 700;
}

.plan-target {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.plan-target strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.plan-target p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f7fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    space-y: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
    color: #4a5568;
}

.contact-item strong {
    color: #2d3748;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23667eea'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.form-group select:hover {
    border-color: #a5b4fc;
    background-color: #f7f8ff;
}

.form-group select option {
    padding: 0.5rem;
    background-color: white;
    color: #333;
}

.form-group select option:hover {
    background-color: #f7f8ff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #f7f8ff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

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

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* デスクトップ認証ボタン */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-buttons .btn-login, 
.auth-buttons .btn-dashboard {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.auth-buttons .btn-login:hover, 
.auth-buttons .btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

/* モバイル認証ボタンはデスクトップでは非表示 */
.mobile-auth-buttons {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .auth-buttons {
        display: none !important;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    /* モバイル用認証ボタンを表示 */
    .mobile-auth-buttons {
        display: block;
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        margin-top: 1rem;
    }
    
    /* モバイルメニュー内のボタンスタイル */
    .nav-menu .btn-login,
    .nav-menu .btn-dashboard {
        display: inline-block;
        padding: 0.75rem 2rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        margin: 0.5rem;
    }
    
    .nav-menu .btn-login {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
    }
    
    .nav-menu .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }
    
    .nav-menu .btn-dashboard {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
    }
    
    .nav-menu .btn-dashboard:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .plan-target {
        padding: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .demo-input,
    .demo-output,
    .contact-form {
        padding: 1.5rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }