/* 見出し */

.c-heading.-md {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 16px;
    border-left: 5px solid #FF6600;
    padding-left: 12px;
}

/* セクション間の余白 */
.section {
    margin-bottom: 48px;
}

/* テーブル共通 */
.c-table {
    overflow-x: auto;
    margin-top: 16px;
    margin-bottom: 32px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.c-table table {
    border-collapse: collapse;
    width: 100%;
    min-width: 320px;
    background-color: #fff;
}

.c-table th,
.c-table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}

.c-table thead th {
    background-color: #003366;
    color: #fff;
    font-weight: 600;
}

.c-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* フロー図 */
.flow-chart {
    background: #f5faff;
    padding: 24px 16px;
    border-radius: 12px;
    box-shadow: inset 0 0 10px #dce9ff;
}

.flow-path {
    margin-bottom: 32px;
}

.path-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-left: 6px solid #333;
    padding-left: 0.75rem;
}


/* 流れのステップリスト */
.flow-chart-steps {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.flow-chart-steps li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.4;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    padding: 12px 16px;
}

/* 縦線 */
.flow-chart-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 100%;
    width: 2px;
    height: 30px;
    background-color: #FF6600;
}

/* 矢印の先端（三角形） */
.flow-chart-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: calc(100% + 30px);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #FF6600;
    width: 0;
    height: 0;
}

/* 最終ステップは矢印なし */
.flow-chart-steps li.final-step::after,
.flow-chart-steps li.final-step::before {
    content: none;
}

.step-title {
    font-weight: 600;
    color: #003366;
    margin-bottom: 6px;
}

.step-description {
    color: #555;
    white-space: pre-line;
}

/* コンテンツテキスト */
.content {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .c-heading.-lg {
        font-size: 1.5rem;
    }

    .c-heading.-md {
        font-size: 1.2rem;
    }

    .flow-chart-steps li {
        padding-left: 16px;
    }
}

/* スクロールバーのスタイル（Webkit系ブラウザ） */
.c-table::-webkit-scrollbar {
    height: 8px;
}

.c-table::-webkit-scrollbar-thumb {
    background-color: #FF6600;
    border-radius: 4px;
}

.c-table::-webkit-scrollbar-track {
    background-color: #eee;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FF6600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 0.3rem;
}

.path-note {
    margin-top: 1em;
    padding: 1em;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
    font-size: 0.95em;
    color: #333;
}

/* 申請書ダウンロードセクション全体 */
.p-entry__section.c-block {
    background-color: #f9f9f9;
    /* 薄いグレー背景 */
    border: 1px solid #ddd;
    /* 薄いボーダー */
    border-radius: 8px;
    padding: 24px 20px;
    margin-top: 40px;
}

/* 見出し */
.p-entry__section.c-block .c-block__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF6600;
    border-bottom: 3px solid #FF6600;
    padding-bottom: 0.5rem;
    margin-bottom: 20px;
}

/* 説明文 */
.p-entry__section.c-block .c-block__body {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ボタンコンテナ余白 */
.p-entry__section.c-block .c-block__footer {
    text-align: center;
}

/* ボタン */
.p-entry__section.c-block .c-btn.c-btn--primary {
    background-color: #FF6600;
    color: #fff;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.p-entry__section.c-block .c-btn.c-btn--primary:hover,
.p-entry__section.c-block .c-btn.c-btn--primary:focus {
    background-color: #e55a00;
    box-shadow: 0 6px 12px rgba(229, 90, 0, 0.6);
    outline: none;
}

.usage-restriction .c-block__body ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.usage-restriction .c-block__body ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-bottom: 1em;
}