@charset "UTF-8";

.fortune-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    line-height: 1.9;
}

.fortune-page p,
.fortune-page li,
.fortune-page label,
.fortune-page input,
.fortune-page select,
.fortune-page button {
    color: #222;
    font-weight: 400;
}

.fortune-hero {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.fortune-hero__text {
    flex: 1;
    min-width: 300px;
}

.fortune-hero__text h1 {
    font-size: 2.1rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #2c3e50;
}

.fortune-hero__text p {
    font-size: 1.06rem;
    margin-bottom: 16px;
}

.fortune-section {
    margin-top: 42px;
    padding: 28px;
    background: #fffef9;
    border: 2px solid #d8c979;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.fortune-section h2,
.fortune-links h2 {
    position: relative;
    margin: 0 0 20px 0;
    padding: 8px 0 10px 18px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #274c77;
    border-left: 8px solid #4f7fd6;
    line-height: 1.4;
}

.fortune-section h2::after,
.fortune-links h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(to right, #4f7fd6, #d8c979);
    border-radius: 999px;
}

.fortune-section h3 {
    margin: 24px 0 10px;
    font-size: 1.08rem;
    color: #274c77;
}

.fortune-links {
    margin-top: 42px;
    padding: 28px;
    background: #f9fafb;
    border: 2px solid #b8c4d6;
    border-radius: 16px;
}

.fortune-links ul {
    margin-left: 22px;
}

.fortune-links li {
    margin-bottom: 10px;
}

.fortune-links a {
    text-decoration: none;
    color: #2f5fb3;
    font-weight: 600;
}

.fortune-links a:hover {
    text-decoration: underline;
}

.fortune-badges {
    margin-top: 18px;
}

.fortune-badge {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 8px 14px;
    background: #eef5ff;
    border: 1px solid #9fbce3;
    border-radius: 999px;
    font-size: 0.95rem;
    color: #2d4f7c;
    font-weight: 600;
}

.fortune-form {
    margin-top: 10px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2c3e50;
}

.fortune-form input[type="text"],
.fortune-form select {
    width: 100%;
    max-width: 260px;
    padding: 10px 12px;
    border: 1.8px solid #b7c7da;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.fortune-form input[type="text"]:focus,
.fortune-form select:focus {
    outline: none;
    border-color: #4f7fd6;
    box-shadow: 0 0 0 3px rgba(79, 127, 214, 0.12);
}

.birth-selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.birth-selects select {
    width: 120px;
    max-width: 120px;
}

.radio-group {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.radio-group label {
    margin-bottom: 0;
    font-weight: 600;
}

.form-actions {
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: #356ac3;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.sub-cta {
    margin-top: 22px;
    text-align: center;
}

.fortune-error-box {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #fff5f5;
    border: 1px solid #efb4b4;
    border-radius: 12px;
    color: #9b2c2c;
    line-height: 1.8;
}

.fortune-day-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.fortune-day-current {
    font-size: 1.08rem;
    font-weight: 700;
    color: #2c3e50;
}

.fortune-period-nav form {
    margin: 0;
}

.move-result-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 18px;
}

.move-card {
    background: #fff;
    border: 2px solid #d9cf92;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.move-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(to right, #eef5ff, #fffdf4);
    border-bottom: 1px solid #e6ddad;
    flex-wrap: wrap;
}

.move-card__ym {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1f3f6b;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.move-card__direction {
    padding: 10px 18px;
    border-radius: 999px;
    background: #eef5ff;
    border: 2px solid #b7caf0;
    color: #1f3f6b;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(79, 127, 214, 0.08);
}

.move-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #eee4b9;
    background: #fffef9;
}

.move-meta-item {
    padding: 14px 18px;
    border-right: 1px solid #eee4b9;
}

.move-meta-item:last-child {
    border-right: none;
}

.move-meta-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.move-meta-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
}

.move-boards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 18px;
}

.move-board-card {
    background: #f9fbff;
    border: 1px solid #d9e4f3;
    border-radius: 16px;
    padding: 16px;
}

.move-board-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    text-align: center;
    font-size: 1.08rem;
}

.kyuseiban-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.kyuseiban {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    background-image: url(../../img/kyuseiban.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 2.4vw, 22px);
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
    padding: 8px;
}

.move-killer-list {
    margin: 0;
    padding-left: 20px;
}

.move-killer-list li {
    margin-bottom: 6px;
}

.not-published {
    text-align: center;
    padding: 36px 20px;
}

@media (max-width: 768px) {
    .fortune-page {
        padding: 20px 14px 50px;
    }

    .fortune-hero__text h1 {
        font-size: 1.72rem;
    }

    .fortune-section,
    .fortune-links {
        padding: 20px;
    }

    .fortune-section h2,
    .fortune-links h2 {
        font-size: 1.25rem;
        padding-left: 14px;
        border-left-width: 6px;
    }

    .fortune-form input[type="text"],
    .fortune-form select {
        max-width: 100%;
        width: 100%;
    }

    .birth-selects {
        flex-direction: column;
        gap: 8px;
    }

    .birth-selects select {
        width: 100%;
        max-width: 100%;
    }

    .fortune-day-nav {
        gap: 10px;
        justify-content: center;
    }

    .fortune-day-current {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .move-card__meta {
        grid-template-columns: 1fr;
    }

    .move-meta-item {
        border-right: none;
        border-bottom: 1px solid #eee4b9;
    }

    .move-meta-item:last-child {
        border-bottom: none;
    }

    .move-boards {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .kyuseiban {
        max-width: 300px;
        font-size: clamp(14px, 4vw, 20px);
    }

	.move-card__ym {
	    font-size: 1.7rem;
	    font-weight: 800;
	    color: #1f3f6b;
	    line-height: 1.2;
	    letter-spacing: 0.02em;
	}

	.move-card__direction {
	    padding: 10px 18px;
		border-radius: 999px;
	    background: #eef5ff;
	    border: 2px solid #b7caf0;
	    color: #1f3f6b;
	    font-size: 1.25rem;
	    font-weight: 800;
	    line-height: 1.2;
 	   box-shadow: 0 2px 6px rgba(79, 127, 214, 0.08);
	}
}