:root {
    --primary-color: #1c2a38;
    --accent-color: #bfa37a;
    --accent-hover: #aa8f65;
    --bg-light: #fbfaf8;
    --bg-white: #ffffff;
    --text-dark: #2d3130;
    --text-muted: #666d6a;
    --border-color: #e5e3df;
    --font-family: 'Noto Sans JP', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    z-index: 1000;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 20px;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--bg-white);
    font-weight: bold;
    font-size: 1.3rem;
}

.logo-link img {
    width: 32px;
    height: 32px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover, nav a:focus {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover, .btn:focus {
    background-color: var(--accent-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    background-image: radial-gradient(circle at 20% 30%, rgba(191, 163, 122, 0.15) 1px, transparent 1px), radial-gradient(circle at 75% 60%, rgba(191, 163, 122, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--bg-white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--border-color);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Statistics */
.stats {
    background: var(--bg-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stats-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stats-item p {
    font-weight: 500;
    color: var(--text-muted);
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps (How it works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 15px 0 20px 0;
}

/* Features Block */
.features-block {
    display: flex;
    gap: 50px;
    align-items: center;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-top: 50px;
}

.features-image {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.features-content {
    flex: 12;
    padding: 50px;
}

.features-content ul {
    list-style: none;
    margin-top: 25px;
}

.features-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.features-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Services Page & Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-body {
    padding: 30px;
}

.service-body h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition);
}

.pricing-card.recommended {
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(191,163,122,0.15);
}

.pricing-card.recommended::before {
    content: "おすすめ";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.price span {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
}

.pricing-features li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

/* Form Section */
.form-section {
    background: var(--primary-color);
    color: var(--bg-white);
}

.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-dark);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    width: auto;
    margin-top: 6px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--border-color);
}

.checkbox-group a {
    color: var(--accent-color);
}

/* FAQ (Accordion) */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 22px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-muted);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    padding: 22px 30px;
    max-height: 1000px;
    border-top-color: var(--border-color);
}

/* Trust Layer */
.trust-layer {
    background: #f0ede9;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.trust-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.trust-info a {
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--border-color);
    padding: 50px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo h3 {
    color: var(--bg-white);
}

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

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

.footer-nav a {
    color: var(--border-color);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 25px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

.cookie-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-text a {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* Accessibility settings for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        gap: 15px;
    }
    nav ul.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .features-block {
        flex-direction: column;
    }
    .features-image {
        min-height: 250px;
        width: 100%;
    }
    .form-wrapper {
        padding: 30px 15px;
    }
    .cookie-banner {
        left: 24px;
        right: 24px;
        max-width: none;
    }
}