:root {
    --primary-color: #356748;
    --primary-hover: #274f37;
    --accent-color: #427c59;
    --accent-light: #eef5f0;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-color: #f4f7f5;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
}

img {
    max-width: 100%;
}

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

.site-nav {
    background: #1e412c;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
}

.nav-brand {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 8px;
    list-style: none;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.header {
    background: linear-gradient(135deg, #356748 0%, #1e412c 100%);
    color: #ffffff;
    padding: 2.5rem 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.05rem;
    color: #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.page-header {
    padding: 2rem 0 1.6rem;
}

.page-header .logo {
    font-size: 1.7rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.breadcrumb a {
    color: #e2e8f0;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.news-section {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.news-item {
    background: var(--accent-light);
    border-left: 4px solid var(--accent-color);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-item:hover {
    background: #dcedc8;
    transform: translateY(-1px);
}

a.news-item {
    text-decoration: none;
    color: inherit;
}

.news-badge {
    font-size: 1.2rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    min-width: 110px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 868px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .site-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .logo {
        font-size: 1.6rem;
    }
}

.card,
.features-card,
.prose-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-text {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 14px 24px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.btn-small {
    flex: 1;
    min-width: 140px;
    font-size: 0.85rem;
    padding: 8px 12px;
    text-align: center;
}

.btn-inline {
    width: auto;
    display: inline-flex;
}

.legacy-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

.legacy-link a {
    color: var(--accent-color);
    text-decoration: underline;
}

.feature-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f1f5f9;
}

.feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-num-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

.faq-section {
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: #f8fafc;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

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

.faq-question::after {
    content: '＋';
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #ffffff;
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 400px;
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    font-size: 0.98rem;
    color: var(--text-color);
    line-height: 1.7;
}

.rules-section {
    background-color: #f1f5f9;
}

.rules-content {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.rules-list {
    list-style: none;
    counter-reset: rules-counter;
    padding-left: 0;
}

.rules-list li {
    counter-increment: rules-counter;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.rules-list li:last-child {
    margin-bottom: 0;
}

.rules-list li::before {
    content: counter(rules-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.prose-card h2,
.prose-card h3 {
    color: var(--primary-color);
    margin: 1.6rem 0 0.6rem;
}

.prose-card h2:first-child,
.prose-card h3:first-child {
    margin-top: 0;
}

.prose-card p,
.prose-card li {
    margin-bottom: 0.8rem;
}

.prose-card ul,
.prose-card ol {
    padding-left: 1.3rem;
    margin-bottom: 1rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.company-table th {
    width: 32%;
    color: var(--primary-color);
    font-weight: 700;
    background: var(--accent-light);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid label {
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font: inherit;
}

.form-grid textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 12px;
}

.footer {
    background-color: #1e412c;
    color: #94a3b8;
    padding: 3rem 0 2.5rem;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-text p {
    margin-bottom: 6px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 1.2rem 0 0.5rem;
}

.modal ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.modal li {
    margin-bottom: 8px;
}

/* ご利用ガイドボタン（背景色：白、枠線：緑） */
.btn-guide {
    background-color: #ffffff;
    color: #2e7d32;             /* 文字色（緑色） */
    border: 2px solid #2e7d32;  /* 枠線（緑色） */
    text-decoration: none;
    display: inline-block;
}

/* ホバー（マウスカーソルを載せた時）の挙動 */
.btn-guide:hover {
    background-color: #f1f8e9; /* うっすらとした緑色の背景（好みで指定） */
    color: #1b5e20;
    border-color: #1b5e20;
}

/* テーブル設定 */
.guide-table {
    width: 100%;
    table-layout: fixed; /* ← これを追加することで指定した幅（%）が固定されます */
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 0.95rem;
}
.guide-table th, .guide-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
    word-wrap: break-word; /* 長い単語や記号の溢れを防止 */
}
/* 1列目（左側：設定項目）の幅を20%に指定 */
.guide-table th:first-child,
.guide-table td:first-child {
    width: 20%;
    background-color: var(--guide-brand-soft);
    color: var(--guide-brand-dark);
    font-weight: bold;
}
/* 2列目（右側：説明）の幅を80%に指定 */
.guide-table th:nth-child(2),
.guide-table td:nth-child(2) {
    width: 80%;
    background-color: #fff;
    color: #374151;
}