/*
Theme Name: affilun Brand
Theme URI: https://affilun.st/
Author: Rio Fujita
Description: Editable WordPress theme for あふぃるん / affilun.
Version: 0.2.0
License: GPL-2.0-or-later
Text Domain: affilun-brand
*/

@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap");

:root {
    --afl-purple: #7c6cff;
    --afl-blue: #5ca9ff;
    --afl-mint: #4dd4c1;
    --afl-pink: #ff8ec7;
    --afl-ink: #2a2d3e;
    --afl-soft: #f5f6fa;
    --afl-white: #ffffff;
    --afl-shadow: 0 24px 70px rgba(42, 45, 62, 0.12);
    --afl-font-rounded:
        "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "Hiragino Sans",
        "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--afl-ink);
    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(255, 142, 199, 0.22),
            transparent 28rem
        ),
        radial-gradient(
            circle at 90% 12%,
            rgba(92, 169, 255, 0.18),
            transparent 30rem
        ),
        linear-gradient(180deg, #fff 0%, var(--afl-soft) 100%);
    font-family: var(--afl-font-rounded);
    line-height: 1.8;
}

a {
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
}

.afl-page {
    overflow-x: hidden;
}
.afl-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}
.afl-main {
    min-height: 64vh;
}

.afl-header {
    padding: 18px 0 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(245, 246, 250, 0.9);
}
.afl-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.afl-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.afl-logo img {
    display: block;
    width: min(220px, 42vw);
    height: auto;
}
.custom-logo-link img {
    display: block;
    width: min(220px, 42vw);
    height: auto;
}
.afl-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.afl-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 800;
}
.afl-menu a {
    text-decoration: none;
    color: rgba(42, 45, 62, 0.74);
}
.afl-menu a:hover {
    color: var(--afl-purple);
}

.afl-button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    color: var(--afl-white);
    background: linear-gradient(135deg, var(--afl-purple), var(--afl-pink));
    box-shadow: 0 18px 42px rgba(124, 108, 255, 0.28);
    text-decoration: none;
    font-weight: 900;
}
.is-style-outline .wp-block-button__link,
.afl-button--ghost {
    color: var(--afl-purple);
    background: rgba(124, 108, 255, 0.1);
    box-shadow: none;
}

.afl-entry-content > * {
    margin-left: auto;
    margin-right: auto;
}
.afl-content-shell {
    padding: 54px 0 78px;
}
.afl-page-title {
    text-align: center;
    margin: 0 0 34px;
}
.afl-page-title h1 {
    margin: 8px 0 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.afl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 108, 255, 0.1);
    color: var(--afl-purple);
    font-weight: 900;
    font-size: 14px;
}

.afl-hero {
    padding: 76px 0 44px;
}
.afl-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}
.afl-title {
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.afl-title span {
    background: linear-gradient(135deg, var(--afl-purple), var(--afl-pink));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
.afl-lead {
    margin: 0 0 26px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(42, 45, 62, 0.72);
    font-weight: 700;
}
.afl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.afl-hero-card {
    position: relative;
    padding: 30px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--afl-shadow);
    border: 1px solid rgba(255, 255, 255, 0.9);
}
.afl-ci {
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(42, 45, 62, 0.04);
    background: var(--afl-white);
}
.afl-bubbles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.afl-bubble {
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    text-align: center;
    font-size: clamp(11px, 1.3vw, 15px);
}
.afl-bubble:nth-child(1) {
    background: var(--afl-purple);
}
.afl-bubble:nth-child(2) {
    background: var(--afl-blue);
}
.afl-bubble:nth-child(3) {
    background: var(--afl-mint);
}
.afl-bubble:nth-child(4) {
    background: var(--afl-pink);
}
.afl-bubble:nth-child(5) {
    background: var(--afl-ink);
}

.afl-section {
    padding: 56px 0;
}
.afl-section__head {
    text-align: center;
    margin-bottom: 28px;
}
.afl-section__head h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -0.03em;
}
.afl-section__head p {
    margin: 0;
    color: rgba(42, 45, 62, 0.68);
    font-weight: 700;
}
.afl-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}
.afl-feature-card {
    padding: 26px;
    border-radius: 28px;
    background: var(--afl-white);
    box-shadow: 0 16px 44px rgba(42, 45, 62, 0.08);
    border: 1px solid rgba(245, 246, 250, 1);
}
.afl-feature-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    margin-bottom: 16px;
    color: white;
    font-size: 26px;
    font-weight: 900;
}
.afl-feature-card:nth-child(1) .afl-feature-card__icon {
    background: var(--afl-purple);
}
.afl-feature-card:nth-child(2) .afl-feature-card__icon {
    background: var(--afl-mint);
}
.afl-feature-card:nth-child(3) .afl-feature-card__icon {
    background: var(--afl-pink);
}
.afl-feature-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}
.afl-feature-card p {
    margin: 0;
    color: rgba(42, 45, 62, 0.66);
    font-weight: 650;
}

.afl-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}
.afl-step {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
}
.afl-step strong {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: white;
    background: var(--afl-purple);
    margin-bottom: 10px;
}
.afl-step h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.afl-step p {
    margin: 0;
    color: rgba(42, 45, 62, 0.64);
    font-weight: 650;
    font-size: 14px;
}

.afl-cta {
    padding: 48px;
    border-radius: 36px;
    background: linear-gradient(
        135deg,
        rgba(124, 108, 255, 0.95),
        rgba(255, 142, 199, 0.9)
    );
    color: white;
    box-shadow: var(--afl-shadow);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}
.afl-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.03em;
}
.afl-cta p {
    margin: 0;
    font-weight: 800;
    opacity: 0.92;
}
.afl-cta .afl-button {
    background: white;
    color: var(--afl-purple);
    box-shadow: none;
}

.afl-entry {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 44px rgba(42, 45, 62, 0.07);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 48px);
}
.afl-entry--front {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}
.afl-entry-content :where(h2, h3) {
    letter-spacing: -0.02em;
}
.afl-entry-content :where(p, li) {
    color: rgba(42, 45, 62, 0.72);
    font-weight: 600;
}
.afl-entry-content .wp-block-image img {
    border-radius: 24px;
}

.afl-post-list {
    display: grid;
    gap: 18px;
}
.afl-post-card {
    padding: 24px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(42, 45, 62, 0.08);
}
.afl-post-card time {
    color: var(--afl-purple);
    font-size: 13px;
    font-weight: 900;
}
.afl-post-card h2 {
    margin: 8px 0;
}
.afl-post-card h2 a {
    text-decoration: none;
}

.afl-footer {
    padding: 40px 0;
    color: rgba(42, 45, 62, 0.58);
    font-weight: 700;
}
.afl-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.afl-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.afl-menu--footer {
    font-size: 13px;
}

@media (max-width: 860px) {
    .afl-nav {
        display: none;
    }
    .afl-hero__grid,
    .afl-feature-cards,
    .afl-flow,
    .afl-cta,
    .afl-footer__inner {
        grid-template-columns: 1fr;
        display: grid;
    }
    .afl-hero {
        padding-top: 46px;
    }
    .afl-cta {
        padding: 30px;
    }
}
