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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007aff;
    margin: 0;
}

.logo-image {
    width: 200px;
    height: 30px;
    margin-top: 10px;
}

.logo-image-white {
    width: 400px;
    max-width: 90%;
    margin-top: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007aff;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Hero Section */
/* Start of Selection */
.hero {
    text-align: center;
    padding: 4rem 20px;
    background: linear-gradient(135deg, #667eea 30%, #8d83e6 50%, #764ba2 90%);
    color: white;
    border-radius: 10px;
    margin: 0 auto 3rem auto;
    max-width: calc(1200px - 40px);
    width: calc(100% - 40px);
}
/* End of Selection */

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.app-download {
    margin-top: 2rem;
}

.app-store-badge img {
    height: 60px;
}

/* Features Section */
.features {
    margin-bottom: 3rem;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: #007aff;
    margin-bottom: 1rem;
}

/* Screenshots Section */
.screenshots {
    text-align: center;
}

.screenshots h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.screenshot-grid img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Page Content */
.page-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    color: #007aff;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.page-content h2 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content section {
    margin-bottom: 2rem;
}

.page-content ul,
.page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Support Form */
.support-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: #e74c3c;
}

.submit-btn {
    background-color: #007aff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.contact-info {
    font-size: 1.1rem;
    font-weight: 500;
    color: #007aff;
}

/* FAQ Sections */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-link {
    background: #007aff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.category-link:hover {
    background-color: #0056b3;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.faq-item h3 {
    color: #007aff;
    margin-bottom: 0.5rem;
}

/* 特定商取引法テーブル */
.tokutei-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.tokutei-table th,
.tokutei-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tokutei-table th {
    background-color: #f8f9fa;
    width: 30%;
    font-weight: 600;
}

.tokutei-table ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer .container {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .nav-links.active {
        display: flex;
        max-height: 400px;
        transition: max-height 0.3s ease-in;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .page-content {
        padding: 2rem;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .tokutei-table th,
    .tokutei-table td {
        display: block;
        width: 100%;
    }

    .tokutei-table th {
        background-color: #007aff;
        color: white;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Additional Utility Classes */
.signature {
    text-align: right;
    font-style: italic;
    margin-top: 3rem;
}

.contact-section {
    background: #f0f8ff;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

/* App Showcase Styles */
.apps-section {
    padding: 3rem 0;
}

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

.app-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    font-size: 12px;
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.app-icon.placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #999;
}

.app-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.app-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: #007aff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.app-store-link img {
    height: 60px;
}

.coming-soon {
    opacity: 0.6;
}

/* About Section */
.about {
    background: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

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

.value-item {
    text-align: center;
}

.value-item h3 {
    color: #007aff;
    margin-bottom: 0.5rem;
}

/* App Detail Page Styles */
.app-hero {
    background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
    color: white;
    padding: 3rem 0;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.app-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.app-description {
    background: white;
    padding: 3rem 0;
}

.app-info-table {
    width: 100%;
    margin-top: 1rem;
}

.app-info-table th,
.app-info-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.app-info-table th {
    width: 30%;
    color: #666;
}

.cta-section {
    background: #f8f9fa;
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
}