body {
    margin: 0;
    background: #f3f7f4;
    color: #22302a;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.page-wrap {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #eef5f1 0%, #f3f7f4 180px, #f3f7f4 100%);
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcf9 100%);
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid #dce8e0;
    margin-bottom: 18px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #e7f2ea;
    color: #2f6f52;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

h1 {
    margin: 0 0 12px;
    color: #5f8b73;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
}

.hero-text {
    margin: 0;
    color: #52645c;
    line-height: 1.9;
    font-size: 0.98rem;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #dfe9e2;
    margin-bottom: 18px;
}

.section-head {
    margin-bottom: 18px;
}

.section-title {
    margin: 0 0 8px;
    color: #2f6f52;
    font-size: 1.2rem;
    font-weight: 800;
}

.section-subtext {
    margin: 0;
    color: #60726a;
    line-height: 1.8;
    font-size: 0.94rem;
}

.info-card {
    background: #ffffff;
}

.faq-item {
    border: 1px solid #d8e5dd;
    border-radius: 14px;
    background: #fcfefd;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

summary {
    cursor: pointer;
    padding: 15px 16px;
    font-weight: 700;
    color: #2f6f52;
    list-style: none;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "＋";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a8d78;
    font-size: 18px;
    font-weight: 700;
}

details[open] summary::after {
    content: "－";
}

.faq-body {
    padding: 0 16px 16px;
    color: #475952;
    line-height: 1.9;
    font-size: 0.96rem;
}

.form-card {
    background: #ffffff;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #31443b;
}

input,
select,
textarea,
button {
    font: inherit;
}

input[type="text"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfdcd4;
    border-radius: 12px;
    padding: 13px 14px;
    background: #fff;
    color: #22302a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #79aa88;
    box-shadow: 0 0 0 4px rgba(121, 170, 136, 0.14);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

.card-no-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.card-no-box {
    background: #f8fbf9;
    border: 1px solid #dbe8e0;
    border-radius: 14px;
    padding: 10px;
}

.card-no-kana {
    width: 110px;
    flex: 0 0 110px;
}

.card-no-kana input{
    text-align: left !important;
}
.card-no-number {
    flex: 1;
}
.card-no-number input{
    text-align: left !important;
}

.card-no-box input {
    border: none;
    background: transparent;
    padding: 6px 4px 2px;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: none;
}

.card-no-number input {
    text-align: left;
}

.card-no-box input:focus {
    outline: none;
    box-shadow: none;
}

.card-no-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #7d8d86;
    padding-top: 28px;
}

.mini-label {
    display: block;
    font-size: 12px;
    color: #6d7d76;
    font-weight: 700;
}

.hint {
    margin: 7px 0 0;
    font-size: 13px;
    color: #6d7d76;
    line-height: 1.6;
}

.required {
    color: #c54040;
    font-size: 13px;
    font-weight: 700;
}

.optional {
    color: #66766f;
    font-size: 13px;
    font-weight: 700;
}

.form-actions {
    margin-top: 24px;
    text-align: center;
}

.submit-btn {
    display: inline-block;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    background: #6cb35c;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    min-width: 180px;
    box-shadow: 0 8px 18px rgba(108, 179, 92, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(108, 179, 92, 0.26);
}

.submit-btn:active {
    transform: translateY(0);
}

.error-box {
    margin-bottom: 18px;
    border: 1px solid #efc2c2;
    background: #fff7f7;
    color: #a02e2e;
    border-radius: 14px;
    padding: 14px 16px;
}

.error-box ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.error-title {
    margin: 0;
    font-weight: 800;
}

.success-box {
    border: 1px solid #cfe6d4;
    background: linear-gradient(180deg, #f6fff7 0%, #f3fbf4 100%);
}

.success-text {
    margin: 0;
    color: #335343;
    line-height: 1.95;
}

.admin-page {
    background:
        linear-gradient(180deg, #edf5f0 0%, #f3f7f4 180px, #f3f7f4 100%);
}

.admin-container {
    max-width: 1080px;
}

.admin-hero {
    text-align: left;
}

.filter-card {
    padding-bottom: 14px;
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    min-width: 220px;
    margin-bottom: 0;
}

.filter-actions {
    padding-bottom: 1px;
}

.empty-card {
    text-align: center;
    color: #62746c;
}

.admin-inquiry-card {
    padding: 20px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2ece5;
}

.admin-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inquiry-id {
    font-size: 1.05rem;
    color: #2d4238;
}

.inquiry-date {
    color: #66766f;
    font-size: 0.92rem;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-badge.pending {
    background: #fff4cf;
    color: #8a6510;
}

.status-badge.done {
    background: #e8f3eb;
    color: #2f6f52;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.admin-item,
.admin-block {
    background: #f9fcfa;
    border: 1px solid #e1ebe4;
    border-radius: 14px;
    padding: 14px;
}

.admin-label {
    font-size: 12px;
    font-weight: 800;
    color: #6b7d75;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.admin-value {
    color: #283a32;
    line-height: 1.7;
    word-break: break-word;
}

.message-box,
.ua-box {
    white-space: pre-wrap;
    line-height: 1.8;
    word-break: break-word;
    color: #283a32;
}

.meta-grid {
    grid-template-columns: 220px 1fr;
}

.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.modern-status-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2ece5;
}

.status-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.status-form-row label {
    margin: 0;
    min-width: 72px;
}

.status-form-row select {
    width: auto;
    min-width: 140px;
}

.modal{
 position:fixed;
 top:0;
 left:0;
 width:100%;
 height:100%;
 background:rgba(0,0,0,0.5);
 display:flex;
 align-items:center;
 justify-content:center;
 z-index:999;
}

.modal-content{
 background:#fff;
 padding:24px;
 border-radius:16px;
 max-width:400px;
 width:90%;
 text-align:center;
}

.modal-content h2{
 color:#2f6f52;
 margin-bottom:10px;
}

.modal-content button{
 margin-top:15px;
 padding:10px 20px;
 border:none;
 background:#6cb35c;
 color:#fff;
 border-radius:10px;
}

@media (max-width: 760px) {
    h1 {
        font-size: 1.7rem;
    }

    .card-no-row {
        flex-direction: column;
        gap: 8px;
    }

    .card-no-kana {
        width: 100%;
        flex: 1 1 auto;
    }

    .card-no-separator {
        display: none;
    }

    .admin-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .status-form-row select,
    .status-form-row .submit-btn {
        width: 100%;
    }

    .submit-btn {
        width: 100%;
        min-width: 0;
    }
}