.ymsh-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

.ymsh-card {
    background: #fffaf0;
    border: 1px solid rgba(80, 60, 30, 0.18);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(60, 45, 20, 0.08);
    color: #2f2618;
}


.ymsh-top-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.ymsh-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #efe3cc;
    color: #3b2b15;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ymsh-back-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

.ymsh-title-area {
    text-align: center;
    margin-bottom: 22px;
}

.ymsh-kicker {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(120, 85, 35, 0.12);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.ymsh-title-area h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.2;
}

.ymsh-title-area p {
    margin: 0;
    font-size: 15px;
}

.ymsh-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ymsh-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
}

.ymsh-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(80, 60, 30, 0.26);
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    font-size: 16px;
}

.ymsh-actions {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
}

.ymsh-button {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.ymsh-button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.ymsh-button:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.ymsh-primary {
    background: #5d4424;
    color: #fff;
}

.ymsh-secondary {
    background: #efe3cc;
    color: #3b2b15;
    margin-top: 12px;
}

.ymsh-result {
    margin-top: 24px;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(80, 60, 30, 0.14);
    text-align: center;
}

.ymsh-result-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(93, 68, 36, 0.1);
    font-size: 13px;
    font-weight: 700;
}

.ymsh-result h3 {
    margin: 0 0 10px;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.3;
}

.ymsh-result p {
    margin: 12px auto;
    max-width: 640px;
    text-align: left;
    line-height: 1.8;
}

.ymsh-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.ymsh-tag {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    background: #f4ecd9;
    font-size: 13px;
    font-weight: 700;
}

.ymsh-meta {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #5b4d3b;
}

.ymsh-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fff3f0;
    border: 1px solid rgba(160, 70, 40, 0.2);
    text-align: center;
}

@media (max-width: 640px) {
    .ymsh-wrap {
        padding: 10px;
    }

    .ymsh-card {
        padding: 18px;
        border-radius: 16px;
    }

    .ymsh-form {
        grid-template-columns: 1fr;
    }
}

/* 野営ログBookマイページ用ボタン */
.ymsh-logbook-card {
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.ymsh-logbook-card:hover {
    text-decoration: none;
}

.ymsh-logbook-card strong {
    display: block;
}

.ymsh-logbook-card span {
    display: block;
    margin-top: 8px;
}

.ymsh-auto-fallback-card,
.ymsh-shortcode-button {
    width: 100%;
    min-height: 78px;
    padding: 18px;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.ymsh-auto-fallback-card strong,
.ymsh-shortcode-button strong {
    font-size: 16px;
    line-height: 1.5;
}

.ymsh-auto-fallback-card span,
.ymsh-shortcode-button span {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.78;
}
