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

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #e6e6fa 0%, #f0f8ff 100%);
    min-height: 100vh;
}

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

/* Note icon utility */
.note-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    border-radius: 3px;
    position: relative;
    margin-right: 8px;
}

.note-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

.note-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 2px;
    right: 4px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

/* Header */
header {
    background: rgba(246, 246, 250, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    min-height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6b46c1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 2rem; /* Adjust based on your logo's aspect ratio */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .note-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center; /* これで垂直中央揃え */
    gap: 2rem;
    list-style: none;
}

.nav-links a:not(.btn-primary) {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem 0; /* 上下のパディングを調整して中央に見えるように */
}

.nav-links li a.btn-primary {
    padding: 0.5rem 1rem !important; /* パディングを小さく */
    font-size: 0.875rem !important; /* フォントサイズを小さく */
    color: white !important; /* 文字色を白に強制 */
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%) !important; /* 背景グラデーションを強制 */
    border-radius: 8px !important; /* 角丸を小さく */
    box-shadow: 0 2px 8px rgba(159, 122, 234, 0.3) !important; /* 影を小さく */
}

.nav-links a:hover {
    color: #6b46c1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 6rem 0 2rem; /* 上下のpaddingを小さくしました */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(159, 122, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .service-name {
    font-size: 2rem;
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(159, 122, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 122, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #6b46c1;
    border: 2px solid #9f7aea;
}

.btn-secondary:hover {
    background: #9f7aea;
    color: white;
}

/* Sections */
.features,
.target-users,
.pricing,
.faq {
    padding: 6rem 0;
}

.features { background: white; }
.target-users { background: #f8fafc; }
.pricing { background: white; }
.faq { background: #f8fafc; }

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
    text-align: center;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

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

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

/* Target Users Section */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.user-card:hover {
    transform: translateY(-5px);
}

.user-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

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

.user-card p {
    color: #4a5568;
    line-height: 1.7;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch; /* Stretch cards to be equal height */
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border: 2px solid #9f7aea;
    position: relative;
}

.premium-overlay {
    position: relative;
}

.premium-overlay::before {
    content: '準備中';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(100, 100, 100, 0.5); /* 少し濃い半透明のグレー */
    border-radius: 16px; /* カードの角丸に合わせる */
    z-index: 1; /* コンテンツの上に表示 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2em; /* 文字間を広げて見やすく */
}

.premium-overlay .pricing-card-content {
    position: relative; /* オーバーレイより手前に表示するため */
    z-index: 2;
}

.btn-disabled {
    background: #cccccc !important; /* グレーアウト */
    color: #666666 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.price {
    margin-bottom: 2rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: #6b46c1;
}

.price .period {
    font-size: 1rem;
    color: #4a5568;
    margin-left: 0.5rem;
}

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

.features-list li {
    margin-bottom: 0.75rem;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: '•';
    color: #9f7aea;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2em;
    line-height: 1;
}

.pricing-card .btn {
    margin-top: auto;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    background: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2d3748;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #6b46c1;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: #4a5568;
    background: white;
}

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

/* Footer */
footer {
    background: #1a202c;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Floating Notes Animation */
.floating-notes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-note {
    position: absolute;
    background: rgba(159, 122, 234, 0.2);
    border-radius: 4px;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .nav-links {
        display: none; /* This will be handled by JS for a mobile menu later */
    }
    
    .features-grid,
    .users-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1); /* Disable scaling on mobile */
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 122, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #6b46c1;
    border: 2px solid #9f7aea;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

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

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

/* Target Users Section */
.target-users {
    padding: 6rem 0;
    background: #f8fafc;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.user-card:hover {
    transform: translateY(-5px);
}

.user-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9f7aea 0%, #667eea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

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

.user-card p {
    color: #4a5568;
    line-height: 1.7;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: white;
}

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

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    background: #f8fafc;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2d3748;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #6b46c1;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: #4a5568;
}

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

/* Legal Pages (Privacy Policy, Terms of Service) */
.legal-page {
    padding-top: 6rem; /* Consistent with other main sections, ensures content is below fixed header */
    padding-bottom: 6rem; /* Consistent spacing before footer */
}

.legal-page article {
    background-color: #ffffff; /* White background for the article content */
    padding: 2.5rem; /* Padding inside the article box */
    border-radius: 12px; /* Rounded corners for the article box */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07); /* Subtle shadow */
    max-width: 800px; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

.legal-page h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    text-align: center;
}

.legal-page h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.legal-page p,
.legal-page ul,
.legal-page ol {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #374151;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.75rem;
}

.legal-page li {
    margin-bottom: 0.6rem;
}

.legal-page em { /* For dates or emphasis */
    color: #6b7280;
    display: block;
    margin-bottom: 2rem;
    text-align: center;
    font-style: normal;
}
/* End Legal Pages */

/* Notices Page Styles */
.notices-list {
    margin-top: 2rem;
}

.notice-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.notice-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.notice-date {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
}

.notice-content {
    color: #4a5568;
    line-height: 1.7;
}

.notice-content a {
    color: #6b46c1;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.notice-content a:hover {
    border-bottom-color: #6b46c1;
}
/* End Notices Page Styles */

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568; /* Slightly lighter than main text for labels */
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #4299e1; /* Blue border on focus */
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical; /* Allow vertical resize only */
}

.contact-form .required-mark {
    color: #e53e3e; /* Red for required mark */
    margin-left: 0.25rem;
}

.contact-form .form-actions {
    text-align: right; /* Align button to the right */
    margin-top: 2rem;
}

.contact-form .submit-button {
    background-color: #4299e1; /* Primary blue */
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.contact-form .submit-button:hover {
    background-color: #3182ce; /* Darker blue on hover */
}
/* End Contact Form Styles */

/* Footer */
footer {
    background: #1a202c;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

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

.footer-links a::before {
    content: '•';
    margin-right: 8px;
    color: #9f7aea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Floating Notes Animation */
.floating-notes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-note {
    position: absolute;
    background: white;
    opacity: 0.4;
    border-radius: 4px;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero .service-name {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .features-grid,
    .users-grid {
        grid-template-columns: 1fr;
    }
}

/* Social Share Button */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.x-logo, .facebook-logo {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.x-logo {
    filter: brightness(0) invert(1);
}

.facebook-logo {
    /* No filter applied to preserve original colors */
}

.social-links a:hover .x-logo {
    /* Keep white color on hover */
}

.social-links a:hover .facebook-logo {
    /* Keep original colors on hover */
}
