@charset "utf-8";

/* membership/index.php — 新規会員登録トップ */

.membershipIndexPage {
    --mi-blue: #0567b2;
    --mi-blue-light: #e3f0fa;
    --mi-orange: #ed704c;
    --mi-orange-light: #fff0ea;
    --mi-gray-bg: #efefef;
    --mi-gray-border: #dde3ea;
    --mi-text: #231815;
    --mi-radius: 12px;
    --mi-radius-lg: 20px;
}

#membershipContent.membershipIndex {
    width: 880px;
    margin: 0 auto 50px;
    color: var(--mi-text);
    font-size: 14px;
    line-height: 1.7;
    float: none;
}

/* main.css 旧スタイルの上書き */
body#membership.membershipIndexPage #mainContents h1.membershipIndex__pageTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body#membership.membershipIndexPage #mainContents h2.membershipIndex__heroTitle,
body#membership.membershipIndexPage #mainContents h2.membershipIndex__sectionTitle,
body#membership.membershipIndexPage #mainContents h2.membershipIndex__stepsTitle {
    width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    text-align: inherit;
}

body#membership.membershipIndexPage #mainContents h3 {
    border: none;
    background: none;
    padding: 0;
}

.membershipIndex .membershipIndex__btn {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
}

.membershipIndex .membershipIndex__form {
    margin: 0;
}

.membershipIndex__campaign {
    margin-bottom: 24px;
}

.membershipIndex__campaign img {
    display: block;
    max-width: 100%;
    height: auto;
}

.membershipIndex .error,
.membershipIndex .info {
    margin-bottom: 20px;
}

/* Hero
========================================== */
.membershipIndex__hero {
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 56px;
    padding: 35px;
    background: #f3f9fe;
    border-radius: var(--mi-radius-lg);
}

.membershipIndex__heroInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px;
    background: #fff;
    border-radius: calc(var(--mi-radius-lg) - 4px);
    border: none;
    box-shadow: 0 0 8px rgba(7, 67, 86, 0.3);
}

.membershipIndex__heroBody {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.membershipIndex__heroTitle {
    margin: 0 0 28px;
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    color: var(--mi-text);
    border: none;
    padding: 0;
}

.membershipIndex__heroTitleLine {
    display: block;
}

.membershipIndex__heroTitleLine--accent {
    margin-top: 12px;
    color: var(--mi-blue);
}

.membershipIndex__heroLead {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.5;
}

.membershipIndex__heroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.membershipIndex__form--hero .membershipIndex__btn {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
}

.membershipIndex__heroFootnote {
    margin: 20px 0 0;
    padding-left: 10px;
    font-size: 10px;
    line-height: 1.6;
}

.membershipIndex__heroVisual {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    min-height: 220px;
    padding-top: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.membershipIndex__heroVisual::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 15px;
    z-index: 1;
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 50%;
}

.membershipIndex__heroImg {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.membershipIndex__heroBadge {
    position: absolute;
    top: 2px;
    left: -21px;
    bottom: auto;
    transform: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: #fff;
    border: 5px solid #f7bba0;
    border-radius: 50%;
    text-align: center;
    line-height: 1.35;
}

.membershipIndex__heroBadge::before,
.membershipIndex__heroBadge::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.membershipIndex__heroBadge::after {
    bottom: -25px;
    width: 20px;
    height: 25px;
    background: #f7bba0;
    clip-path: path('M0,0 H20 L12,23 Q10,25 8,23 Z');
}

.membershipIndex__heroBadge::before {
    bottom: -15px;
    z-index: 1;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 21px 5px 0;
    border-color: #fff transparent transparent;
}

.membershipIndex__heroBadgeLabel {
    font-size: 20px;
    font-weight: bold;
    color: var(--mi-orange);
}

.membershipIndex__heroBadgePoint {
    font-size: 20px;
    font-weight: bold;
    color: var(--mi-orange);
    line-height: 1.1;
    letter-spacing: 0.08em;
}

/* Buttons
========================================== */
.membershipIndex__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.membershipIndex__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.membershipIndex__btn--corp {
    background: #51a6dd;
    box-shadow: 3px 3px 10px rgba(0, 8, 70, 0.2);
}

.membershipIndex__btn--personal {
    background: #ed704c;
    box-shadow: 3px 3px 10px rgba(82, 26, 15, 0.2);
}

.membershipIndex__btn--block {
    display: flex;
    width: 100%;
    min-width: 0;
    border-radius: 999px;
    font-size: 17px;
    padding: 16px 24px;
}

.membershipIndex__form--hero .membershipIndex__btnLabel {
    font-size: 24px;
}

.membershipIndex__form--hero .membershipIndex__btnSub {
    font-size: 16px;
}

.membershipIndex__btnLabel {
    font-size: 16px;
}

/* Section common
========================================== */
.membershipIndex__sectionHead {
    text-align: center;
    margin-bottom: 32px;
}

.membershipIndex__sectionTitle,
.membershipIndex__stepsTitle {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    color: #002d6e;
    border: none;
    padding: 0;
    background: none;
    text-align: center;
}

.membershipIndex__sectionHead .membershipIndex__stepsDots {
    margin: 0 0 12px;
}

.membershipIndex__sectionLead {
    margin: 0;
    font-size: 14px;
}

/* Benefits
========================================== */
.membershipIndex__benefits {
    margin-bottom: 56px;
}

.membershipIndex__benefitList {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.membershipIndex__benefitCard {
    flex: 1;
    background: #fff;
    border: 1px solid var(--mi-gray-border);
    border-radius: var(--mi-radius);
    padding: 29px;
    text-align: center;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

.membershipIndex__benefitIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin: 0 auto 16px;
}

.membershipIndex__benefitIcon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 46px;
    object-fit: contain;
}

.membershipIndex__benefitTitle {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    color: var(--mi-blue);
}

.membershipIndex__benefitText {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

.membershipIndex__benefitNote {
    margin: 16px 0 0;
    padding: 3px;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    background: var(--mi-gray-bg);
    border-radius: 8px;
}

/* Plans
========================================== */
.membershipIndex__plans {
    margin-bottom: 56px;
}

.membershipIndex__planGrid {
    display: flex;
    gap: 20px;
}

.membershipIndex__planCard {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: var(--mi-radius-lg);
    overflow: hidden;
    border: 1px solid #dce6ee;
    background: #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

.membershipIndex__planCard--corp {
    border: 2px solid #acc9e6;
    background: linear-gradient(180deg, #ffffff 0%, #f3f9fe 100%);
    padding-bottom: 72px;
}

.membershipIndex__planCard--personal {
    border: 2px solid #f7bda3;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f0 100%);
    padding-bottom: 24px;
}

.membershipIndex__planHead {
    padding: 26px 24px;
    background: transparent;
    text-align: center;
}

.membershipIndex__planTitle {
    font-size: 26px;
    font-weight: bold;
    color: var(--mi-text);
}

.membershipIndex__planFeatures {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 24px 16px;
    list-style: none;
}

.membershipIndex__planFeatures li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.membershipIndex__planCard--corp .membershipIndex__planFeatures li::before,
.membershipIndex__planCard--personal .membershipIndex__planFeatures li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    border: none;
}

.membershipIndex__planCard--corp .membershipIndex__planFeatures li::after,
.membershipIndex__planCard--personal .membershipIndex__planFeatures li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 5px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.membershipIndex__planCard--corp .membershipIndex__planFeatures li::before {
    background: var(--mi-blue);
}

.membershipIndex__planCard--personal .membershipIndex__planFeatures li::before {
    background: var(--mi-orange);
}

.membershipIndex__form--planCard .membershipIndex__btn--block {
    width: auto;
    min-width: 280px;
    margin: 0 auto;
}

.membershipIndex__form--planCard .membershipIndex__btnLabel {
    font-size: 24px;
}

.membershipIndex__planNote {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 11px;
    line-height: 1.7;
    text-align: left;
}

.membershipIndex__planNoteLabel {
    flex-shrink: 0;
    color: var(--mi-blue);
    font-weight: bold;
}

/* Steps
========================================== */
.membershipIndex__steps {
    margin-bottom: 48px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.membershipIndex__stepsHead {
    margin-bottom: 24px;
    text-align: center;
}

body#membership #mainContents .membershipIndex__stepsTitle {
    border-top: none;
    border-bottom: none;
}

.membershipIndex__stepsDots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.membershipIndex__stepsDot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccdfef;
}

.membershipIndex__stepsDot:nth-child(odd) {
    background: #87b8dc;
}

.membershipIndex__stepPanel {
    padding: 46px 40px;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    border: 1px solid #d1dae2;
    border-radius: 24px;
}

.membershipIndex__stepList {
    display: flex;
    align-items: stretch;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.membershipIndex__stepCard {
    flex: 1;
    min-width: 0;
    list-style: none;
}

.membershipIndex__stepCardFrame {
    position: relative;
    height: 100%;
}

.membershipIndex__stepBadge {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    line-height: 1;
    color: #ef7a4f;
    pointer-events: none;
}

.membershipIndex__stepBadgeLabel {
    font-size: 10px;
    font-weight: bold;
}

.membershipIndex__stepBadgeNum {
    font-size: 34px;
    font-weight: bold;
    letter-spacing: -0.03em;
    line-height: 1;
}

.membershipIndex__stepCardShape {
    position: relative;
    height: 100%;
    min-height: 300px;
    background: url("/styles/img/membership/step_card_bg.svg") no-repeat center center;
    background-size: 100% 100%;
    filter: drop-shadow(0 10px 22px rgba(70, 120, 160, 0.10));
}

.membershipIndex__stepCardBody {
    position: relative;
    z-index: 1;
    min-height: 300px;
    padding: 56px 22px 34px;
    text-align: center;
    box-sizing: border-box;
}

.membershipIndex__stepIconWrap {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 18px;
}

.membershipIndex__stepIcon {
    display: block;
    width: 116px;
    height: 116px;
    margin: 0 auto;
}

.membershipIndex__stepTitle {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
}

.membershipIndex__stepText {
    margin: 0 auto;
    font-size: 14px;
    text-align: left;
    width: fit-content;
}

/* Login
========================================== */
.membershipIndex__login {
    text-align: center;
    padding: 32px 0 8px;
}

.membershipIndex__loginText {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: bold;
    color: var(--mi-text);
}

.membershipIndex__loginText::before,
.membershipIndex__loginText::after {
    content: "";
    flex-shrink: 0;
    width: 2px;
    height: 1.1em;
    background: currentColor;
}

.membershipIndex__loginText::before {
    transform: rotate(-30deg);
}

.membershipIndex__loginText::after {
    transform: rotate(30deg);
}

.membershipIndex__loginBtn {
    display: inline-block;
    min-width: 280px;
    padding: 14px 32px;
    border: 2px solid #acc9e6;
    border-radius: 999px;
    background: #fff;
    color: var(--mi-blue);
    font-size: 17px;
    font-weight: bold;
    text-decoration: none !important;
    box-shadow: 0 0 7px rgba(35, 24, 21, 0.15);
    transition: background 0.2s, color 0.2s;
}

.membershipIndex__loginBtn:hover {
    background: var(--mi-blue);
    border-color: var(--mi-blue);
    color: #fff;
    text-decoration: none;
}
