/* ベーススタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    color: #1a3168;
    text-align: center;
}
h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a3168;
    font-size: 16px;
}

/* --- ヘッダースタイル --- */
header {
    background-color: #1a3168;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}
.logo-title h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: normal;
}
.member-badge {
    background-color: #fff;
    color: #1a3168;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}
.process-steps ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.process-steps li {
    position: relative;
    text-align: center;
}
.process-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}
.process-steps a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    background-color: #1a3168;
}
.step-circle {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: bold;
    transition: all 0.3s;
}
.step-label {
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s;
}
.process-steps a:hover .step-circle, .process-steps a:hover .step-label {
    border-color: #fff;
    opacity: 1;
}
.process-steps li.active .step-circle {
    border-color: #008ca5;
    background-color: #008ca5;
}
.process-steps li.active .step-label {
    opacity: 1;
    font-weight: bold;
}
.process-steps li.active::after {
    background-color: #008ca5;
}
.manual-link a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 18px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}
.manual-link a:hover {
    background-color: #fff;
    color: #1a3168;
}

/* --- ステップ2 フォームパネル --- */
.form-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.form-panel p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}
.form-panel input, .form-panel textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-panel textarea {
    resize: vertical;
    min-height: 150px;
}
.form-panel button {
    display: block;
    width: 100%;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #008ca5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.form-panel button:hover {
    background-color: #006c82;
}
.note {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #008ca5;
}
.note ul {
    padding-left: 20px;
    margin: 0;
    color: #555;
}
.note li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* --- ステップ2 結果パネル --- */
.result-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.user-name {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.summary-item {
    text-align: center;
}
.summary-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.summary-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #1a3168;
}
.download-section {
    text-align: center;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}
.download-section p {
    margin: 0 0 15px 0;
    color: #333;
}
.button-copy {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #008ca5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.button-copy:hover {
    background-color: #006c82;
}
.filename-display {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    word-break: break-all;
}

/* ▼▼▼ ここから追加・修正 ▼▼▼ */
.next-step-section {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px dashed #ccc;
}
.next-step-section p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}
.button-next {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #28a745; /* 成功・進むイメージの緑 */
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.button-next:hover {
    background-color: #218838;
}

.details-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.info-section {
    margin-bottom: 20px;
}
.info-section:last-child {
    margin-bottom: 0;
}
.id-list {
    list-style: none;
    padding: 0;
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
}
.id-list li {
    padding: 4px 0;
    font-size: 14px;
    color: #555;
}
.message-error {
    text-align: center;
    color: #d9534f;
    font-weight: bold;
    padding: 20px;
}
.button-back {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 25px;
    font-size: 14px;
    color: #fff;
    background-color: #6c757d;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.button-back:hover {
    background-color: #5a6268;
}

/* --- フッタースタイル --- */
footer {
    text-align: center;
    padding: 40px 20px 20px 20px;
    font-size: 12px;
    color: #888;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 960px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    .process-steps { order: 2; }
    .manual-link { order: 3; }
}
@media (max-width: 768px) {
    .logo-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .logo-title h2 {
        font-size: 14px;
    }
    .main-container {
        padding: 20px 15px;
    }
    .form-panel, .result-panel {
        padding: 20px;
    }
    .summary-grid {
        grid-template-columns: 1fr;
    }
    .id-list {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }
}