:root {
    --primary-color: #007e41;
    --secondary-color: #6c757d;
    --accent-color: #5BCF60;
    --light-bg: #f0fff0;
    --dark-text: #343a40;
    --white: #ffffff;
    --nav-text-color: #343a40;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    scroll-behavior: smooth;
}

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

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}


@media (min-width: 768px) {
    .header-content {
        justify-content: center;
        text-align: left;
        gap: 20px;
    }

    .header-left {
        flex-shrink: 0;
    }

    .header-right {
        flex-grow: 0;
        padding-left: 0;
        text-align: left;
    }

    .header-logo-img {
        max-width: 200px;
        height: auto;
        margin: 0;
    }

    header p {
        font-size: 1.6em;
        white-space: nowrap;
    }

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-left {
        margin-bottom: 10px;
    }

    .header-logo-img {
        max-width: 150px;
        height: auto;
        margin: 0 auto;
    }

    .header-right {
        padding-left: 0;
    }

    header p {
        font-size: 1.2em;
    }
}

nav {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--dark-text) !important;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: block;
    white-space: nowrap;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.nav-login-btn {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background-color: #36b03b;
    color: var(--white) !important;
}

@media (max-width: 767px) {
    nav ul li {
        margin: 5px 0;
    }
    nav ul li a {
        padding: 8px 0;
    }
    .nav-login-btn {
        padding: 10px 20px;
        margin: 10px auto;
        display: block;
        width: fit-content;
    }
}

.hero-section {
    background: url('../image/01.jpg') no-repeat center center / cover;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    border: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #36b03b;
}

/* ボタンのカラーバリエーションを拡張する */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #36b03b;
    color: var(--white);
}

section {
    padding: 60px 20px;
    text-align: center;
}

section:nth-of-type(even) {
    background-color: var(--light-bg);
}

section h3 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.features-grid, .steps-grid, .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item, .step-item, .faq-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item .feature-icon {
    width: 60px;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
    margin-left: 0;
}

.feature-item h4, .step-item h4, .faq-item h4 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.step-item span.step-number {
    display: block;
    font-size: 3em;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.faq-item p.answer {
    display: none;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.faq-item h4 {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-item h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.faq-item.active h4::after {
    content: '-';
    transform: rotate(180deg);
}

.partner-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.partner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

.partner-link:hover {
    color: inherit;
    text-decoration: none;
}

#contact {
    background-color: var(--primary-color);
    padding: 60px 20px;
}

#contact h3,
#contact p {
    color: var(--white);
}

#contact .btn {
    background-color: var(--accent-color);
    color: var(--white);
}

footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 30px 0;
    font-size: 0.9em;
    /* text-align: center; はFlexboxで中央揃えするため、あってもなくても問題ありません */
}

footer p {
    margin: 0;
}

@media (max-width: 767px) {
    .container {
        padding: 15px;
    }

    .header-logo-img {
        max-width: 150px;
    }

    header p {
        font-size: 1em;
    }

    nav ul {
        flex-direction: column;
        padding: 5px 0;
    }

    nav ul li {
        margin: 5px 0;
        text-align: center;
    }

    nav ul li a {
        padding: 8px 0;
    }

    .hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .hero-section h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .hero-section p {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    section {
        padding: 40px 15px;
    }

    section h3 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .features-grid, .steps-grid, .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item, .step-item, .faq-item {
        padding: 20px;
    }

    .feature-item .feature-icon {
        width: 50px;
        height: auto;
    }

    .feature-item h4, .step-item h4, .faq-item h4 {
        font-size: 1.3em;
    }

    .step-item span.step-number {
        font-size: 2.5em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 25px;
    }

    .header-logo-img {
        max-width: 180px;
    }

    .hero-section {
        padding: 70px 25px;
        min-height: 450px;
    }

    .hero-section h2 {
        font-size: 2.8em;
    }

    .hero-section p {
        font-size: 1.4em;
    }

    section {
        padding: 50px 25px;
    }

    section h3 {
        font-size: 2.2em;
    }

    .features-grid, .steps-grid, .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }

    .feature-item .feature-icon {
        width: 55px;
        height: auto;
    }
}


.document-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .document-container {
        margin: 0;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }
}

/* ドキュメントページのメインセクションの背景とパディング */
.document-page-main {
    background-color: var(--light-bg);
    padding: 20px 0;
}
@media (max-width: 768px) {
    .document-page-main {
        padding: 0;
    }
}


footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 

}

/* プライバシーポリシーと利用規約のフッターリンク用スタイル */
footer .footer-links {
    margin-top: 10px;
    font-size: 0.85em;
    text-align: center;
}

footer .footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

footer .footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
