.referral-page {
    --referral-ink: #13213a;
    --referral-muted: #62728b;
    --referral-blue: #2563eb;
    --referral-red: #d91f2e;
    margin: 0;
    color: var(--referral-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.8;
}
body.referral-page { background-color: #f6f9fd !important; background-image: none !important; }
.referral-page *, .referral-page *::before, .referral-page *::after { box-sizing: border-box; }
.referral-page a { color: inherit; }
.referral-page a:focus-visible, .referral-page summary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 5px; }
.referral-container { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.referral-content { width: min(1440px, calc(100% - 64px)); margin: 0 auto; background: #fff; }
.referral-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding: 14px clamp(20px, 4vw, 56px); background: rgba(255, 255, 255, .97); border-bottom: 1px solid #e3eaf3; }
.referral-brand { flex: none; line-height: 0; }
.referral-brand .service-brand { display: block; width: 280px; max-width: 35vw; }
.referral-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; }
.referral-nav a { font-size: .81rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.referral-nav a:hover { color: var(--referral-blue); }
.referral-nav .referral-login { padding: 10px 16px; border: 1px solid #cbd9ef; border-radius: 8px; color: #234c89; }
.referral-hero { overflow: hidden; padding: 78px 0 82px; background-color: #faf8f5; background-image: var(--referral-hero-image); background-position: center bottom; background-size: 100% auto; background-repeat: no-repeat; }
.referral-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.referral-hero h1 { margin: 0; font-size: clamp(2rem, 3.55vw, 3rem); line-height: 1.45; letter-spacing: -.055em; }
.referral-hero h1 span { color: var(--referral-red); }
.referral-hero-lead { margin: 25px 0 14px; font-size: 1.14rem; font-weight: 800; }
.referral-hero-description { margin: 0; color: #52647d; font-size: .92rem; line-height: 2; }
.referral-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.referral-page .referral-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 20px; padding: 12px 22px; color: #fff; background: var(--referral-blue); border: 1px solid transparent; border-radius: 10px; box-shadow: 0 8px 20px #2563eb24; font-size: .94rem; font-weight: 800; text-decoration: none; transition: background .15s ease; }
.referral-page .referral-button:hover { background: #1d4ed8; }
.referral-text-link { display: inline-flex; align-items: center; gap: 12px; font-size: .87rem; font-weight: 700; text-decoration: none; }
.referral-text-link:hover { color: var(--referral-blue); text-decoration: underline; text-underline-offset: 4px; }
.referral-caption { margin: 18px 0 0; color: var(--referral-muted); font-size: .76rem; line-height: 1.8; }
.referral-mobile-break { display: none; }
.referral-reward-card { padding: 34px; background: #fff; border: 1px solid #d9e4f5; border-radius: 22px; box-shadow: 0 22px 54px #284d8b14; }
.referral-card-title { margin: 0; font-size: 1.1rem; font-weight: 800; line-height: 1.8; }
.referral-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 25px 0; }
.referral-figures > div { padding: 18px 10px 12px; background: #f0f5ff; border-radius: 12px; text-align: center; }
.referral-figure-label { display: block; color: #52647d; font-size: .73rem; font-weight: 700; }
.referral-figures p { margin: 2px 0 0; color: var(--referral-blue); font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.referral-figures strong { margin-right: 3px; font-size: clamp(3rem, 5vw, 4rem); letter-spacing: -.06em; }
.referral-card-flow { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.referral-card-flow li { display: flex; align-items: center; gap: 12px; font-size: .84rem; font-weight: 700; }
.referral-step-dot { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; color: #31578e; background: #eaf1fd; border-radius: 50%; font-size: .75rem; }
.referral-card-note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #e3eaf3; color: var(--referral-muted); font-size: .73rem; }
.referral-section { padding-top: 82px; padding-bottom: 82px; scroll-margin-top: 95px; }
.referral-section-heading { margin-bottom: 35px; text-align: center; }
.referral-section-heading h2, .referral-service-grid h2, .referral-cta h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.6; letter-spacing: -.04em; }
.referral-section-heading > p { margin: 16px 0 0; color: var(--referral-muted); font-size: .92rem; }
.referral-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.referral-benefit { padding: 28px; border: 1px solid #e0e8f3; border-radius: 15px; background: #fff; }
.referral-icon { display: grid; width: 48px; height: 48px; place-items: center; color: var(--referral-blue); background: #edf4ff; border-radius: 13px; }
.referral-icon svg { width: 29px; height: 29px; }
.referral-benefit h3 { margin: 21px 0 12px; font-size: 1.06rem; }
.referral-benefit p { margin: 0; color: var(--referral-muted); font-size: .87rem; line-height: 1.95; }
.referral-service-band { padding: 70px 0; }
.referral-service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.referral-service-grid > div > p { max-width: 440px; margin: 20px 0; color: var(--referral-muted); font-size: .9rem; }
.referral-service-example { padding: 30px; border: 1px solid #e0e8f3; border-radius: 16px; background: #fff; }
.referral-service-example .referral-example-title { margin: 0 0 20px; color: var(--referral-ink); font-size: 1.05rem; font-weight: 800; }
.referral-service-example ul { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.referral-service-example li { display: flex; align-items: flex-start; gap: 14px; }
.referral-service-example li > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; margin-top: 3px; color: #fff; background: var(--referral-blue); border-radius: 50%; font-size: .76rem; }
.referral-service-example strong { font-size: .95rem; }
.referral-service-example li p { margin: 6px 0 0; color: var(--referral-muted); font-size: .83rem; line-height: 1.8; }
.referral-conditions { display: grid; grid-template-columns: 290px 1fr; overflow: hidden; background: #fff; border: 1px solid #dbe5f3; border-radius: 18px; }
.referral-condition-highlight { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 20px; background: #fff; }
.referral-condition-highlight > span { font-size: .85rem; font-weight: 700; }
.referral-condition-highlight p { margin: 4px 0; color: var(--referral-blue); font-size: 1.7rem; font-weight: 800; line-height: 1.5; }
.referral-condition-highlight strong { margin-right: 5px; font-size: 5.4rem; letter-spacing: -.06em; }
.referral-conditions dl { margin: 0; padding: 12px 30px; }
.referral-conditions dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; }
.referral-conditions dl > div + div { border-top: 1px solid #e7edf5; }
.referral-conditions dt { font-size: .84rem; font-weight: 800; }
.referral-conditions dd { margin: 0; color: var(--referral-muted); font-size: .85rem; }
.referral-reward-example { margin-top: 32px; }
.referral-reward-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.referral-reward-table caption { padding-bottom: 16px; text-align: left; font-size: 1.1rem; font-weight: 800; }
.referral-reward-table th, .referral-reward-table td { padding: 18px 12px; background: #fff; border: 1px solid #dbe5f3; font-size: .9rem; }
.referral-reward-table strong { color: var(--referral-blue); font-size: 1.2rem; }
.referral-flow-section { padding-top: 18px; }
.referral-registration-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.referral-registration-flow li { position: relative; padding: 28px; background: #f5f8fd; border: 1px solid #e1e9f5; border-radius: 15px; }
.referral-flow-number { color: #96b5e6; font-size: 2rem; font-weight: 800; line-height: 1; }
.referral-registration-flow h3 { margin: 16px 0 12px; font-size: 1.06rem; }
.referral-registration-flow p { margin: 0; color: var(--referral-muted); font-size: .86rem; }
.referral-flow-section > .referral-caption { text-align: center; }
.referral-faq-section { padding-top: 18px; }
.referral-faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid #dfe7f2; }
.referral-faq-list details { border-bottom: 1px solid #dfe7f2; }
.referral-faq-list summary { position: relative; padding: 22px 38px 22px 0; font-size: .95rem; font-weight: 800; cursor: pointer; list-style: none; }
.referral-faq-list summary::-webkit-details-marker { display: none; }
.referral-faq-list summary::after { position: absolute; top: 20px; right: 5px; color: var(--referral-blue); content: '+'; font-size: 1.25rem; }
.referral-faq-list details[open] summary::after { content: '−'; }
.referral-faq-list details p { margin: 0; padding: 0 32px 24px 0; color: var(--referral-muted); font-size: .88rem; }
.referral-cta-section { padding: 65px 0; }
.referral-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.referral-cta h2 { font-size: clamp(1.6rem, 2.8vw, 2rem); }
.referral-cta p { margin: 14px 0 0; color: var(--referral-muted); font-size: .88rem; }
.referral-cta-actions { display: grid; justify-items: center; gap: 18px; flex: none; }
.referral-cta-actions > a:last-child { color: var(--referral-blue); font-size: .8rem; text-underline-offset: 4px; }
.referral-footer { padding: 20px 4vw 26px; color: #8794a8; background: #fff; border-top: 1px solid #e3eaf3; font-size: .72rem; text-align: center; }
.referral-footer a { color: var(--referral-blue); font-weight: 700; text-decoration: none; }
.referral-footer a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
    .referral-header { flex-wrap: wrap; gap: 12px; }
    .referral-nav { gap: 14px; }
    .referral-hero-grid { gap: 30px; }
    .referral-reward-card { padding: 25px; }
    .referral-benefit { padding: 24px; }
    .referral-service-grid { gap: 35px; }
}
@media (max-width: 820px) {
    .referral-hero { background-image: none; }
}
@media (max-width: 760px) {
    .referral-content { width: calc(100% - 32px); }
    .referral-container { width: calc(100% - 40px); }
    .referral-header { align-items: flex-start; flex-direction: column; padding: 14px 20px; }
    .referral-brand .service-brand { width: 255px; max-width: 75vw; }
    .referral-nav { width: 100%; justify-content: flex-start; gap: 10px 16px; }
    .referral-nav a { font-size: .73rem; }
    .referral-nav .referral-login { padding: 7px 10px; }
    .referral-hero { padding: 48px 0; }
    .referral-hero-grid, .referral-service-grid { grid-template-columns: 1fr; gap: 36px; }
    .referral-hero h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); }
    .referral-hero-lead { font-size: 1rem; }
    .referral-hero-description { font-size: .85rem; }
    .referral-reward-card { max-width: 510px; width: 100%; margin: 0 auto; }
    .referral-figures strong { font-size: 3.6rem; }
    .referral-section { padding-top: 55px; padding-bottom: 55px; scroll-margin-top: 160px; }
    .referral-section-heading { text-align: left; }
    .referral-section-heading p br { display: none; }
    .referral-benefits, .referral-registration-flow { grid-template-columns: 1fr; gap: 16px; }
    .referral-benefit { padding: 25px; }
    .referral-benefit h3 { margin-top: 17px; }
    .referral-service-band { padding: 48px 0; }
    .referral-service-example { padding: 25px; }
    .referral-conditions { grid-template-columns: 1fr; }
    .referral-condition-highlight { padding: 25px 20px; }
    .referral-condition-highlight strong { font-size: 4rem; }
    .referral-conditions dl { padding: 5px 24px; }
    .referral-conditions dl > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
    .referral-reward-table th, .referral-reward-table td { padding: 14px 6px; font-size: .75rem; }
    .referral-reward-table strong { font-size: 1rem; }
    .referral-registration-flow li { padding: 25px; }
    .referral-flow-section, .referral-faq-section { padding-top: 8px; }
    .referral-cta-section { padding: 45px 0; }
    .referral-cta { flex-direction: column; align-items: flex-start; gap: 28px; }
    .referral-cta-actions { width: 100%; align-items: stretch; justify-items: stretch; text-align: center; }
}
@media (max-width: 400px) {
    .referral-mobile-break { display: block; }
    .referral-hero-actions { align-items: stretch; flex-direction: column; }
    .referral-hero-actions .referral-text-link { justify-content: center; }
    .referral-figure-label { font-size: .65rem; }
    .referral-card-flow li { gap: 9px; font-size: .76rem; }
}
