* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fafafd;
    color: #292933;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Noto Sans JP",
        sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.center {
    text-align: center;
}


/* HEADER */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background:
        rgba(255,255,255,.95);
    border-bottom:
        1px solid #ededf2;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width:
        min(1100px, calc(100% - 40px));
    min-height: 68px;
    margin: auto;
}

.site-logo,
.footer-logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    font-size: 14px;
}

.nav-button {
    padding: 9px 16px;
    background: #292933;
    color: white;
    border-radius: 100px;
}


/* BUTTON */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: #292933;
    color: white;
}

.btn-secondary {
    background: white;
    border: 1px solid #ddd;
}


/* HERO */

.hero {
    padding:
        100px 0 110px;
    background:
        linear-gradient(
            135deg,
            #fff,
            #f2f0ff
        );
}

.hero-inner {
    display: grid;
    grid-template-columns:
        1.15fr .85fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hero h1 {
    margin: 0;
    font-size:
        clamp(42px, 6vw, 72px);
    line-height: 1.15;
}

.hero-text {
    margin: 28px 0;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.demo-card {
    padding: 32px;
    background: white;
    border-radius: 24px;
    box-shadow:
        0 20px 60px
        rgba(30,30,60,.10);
}

.demo-number {
    display: block;
    margin: 15px 0;
    font-size: 44px;
}


/* SECTION */

.section {
    padding: 90px 0;
}

.section-gray {
    background: #f3f3f7;
}

.section-heading {
    margin-bottom: 45px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size:
        clamp(28px, 4vw, 40px);
}

.feature-grid,
.content-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 20px;
}

.feature-card,
.content-card {
    padding: 30px;
    background: white;
    border: 1px solid #ececf2;
    border-radius: 18px;
}

.feature-icon {
    font-size: 30px;
}

.steps {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 20px;
}

.step {
    padding: 30px;
    background: white;
    border-radius: 18px;
}

.step > span,
.guide-number {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.cta-section {
    padding: 90px 0;
}

.cta-section h2 {
    font-size:
        clamp(30px, 5vw, 50px);
}


/* PAGE */

.page-main {
    min-height: 65vh;
    padding: 70px 0 100px;
}

.page-header {
    margin-bottom: 50px;
    text-align: center;
}

.page-header h1 {
    margin: 5px 0;
    font-size:
        clamp(34px, 5vw, 48px);
}

.guide-step {
    position: relative;
    margin-bottom: 25px;
    padding: 30px;
    background: white;
    border: 1px solid #ededf2;
    border-radius: 18px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    padding: 20px 25px;
    background: white;
    border:
        1px solid #ededf2;
    border-radius: 12px;
}

.faq-list summary {
    font-weight: 700;
    cursor: pointer;
}


/* FORM */

.form-container,
.auth-container {
    max-width: 620px;
}

.form-card {
    display: grid;
    gap: 22px;
    padding: 30px;
    background: white;
    border:
        1px solid #ededf2;
    border-radius: 18px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border:
        1px solid #dcdce4;
    border-radius: 9px;
    background: white;
    font: inherit;
}

textarea {
    resize: vertical;
}

.alert-error,
.alert-success {
    padding: 14px 18px;
    border-radius: 10px;
}

.alert-error {
    background: #ffeaea;
}

.alert-success {
    background: #e9f8ef;
}


/* DASHBOARD */

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 45px;
}

.event-list {
    display: grid;
    gap: 12px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #ededf2;
    border-radius: 14px;
}

.event-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 22px;
    text-decoration: none;
}

.event-delete-form {
    flex: 0 0 auto;
    margin: 0;
    padding-right: 18px;
}

.event-card h3 {
    margin: 5px 0;
}

.event-percent {
    font-size: 25px;
}

.status-badge {
    padding: 4px 8px;
    background: #eee;
    border-radius: 100px;
    font-size: 11px;
}

.empty-state {
    padding: 50px;
    background: white;
    text-align: center;
    border-radius: 18px;
}


/* PROGRESS */

.progress-box {
    margin:
        25px 0;
    padding: 25px;
    background: white;
    border:
        1px solid #ededf2;
    border-radius: 18px;
}

.progress-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.progress-number {
    display: block;
    font-size: 38px;
}

.percentage {
    font-size: 26px;
}

.progress {
    width: 100%;
    height: 12px;
    margin: 16px 0;
    overflow: hidden;
    background: #ececf0;
    border-radius: 100px;
}

.progress-bar {
    height: 100%;
    background: #292933;
    border-radius: inherit;
}

.progress-details {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}


/* SHARE */

.share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
}

.share-box input {
    flex: 1;
}


/* SEARCH */

.gift-search {
    display: flex;
    gap: 8px;
}

.gift-search button {
    padding: 0 20px;
}

.filter-nav {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.filter-nav a {
    padding: 8px 14px;
    background: white;
    border:
        1px solid #ededf2;
    border-radius: 100px;
    text-decoration: none;
}


/* GIFTS */

.gift-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 12px;
}

.gift-card {
    position: relative;
    padding: 15px;
    background: white;
    border:
        1px solid #ededf2;
    border-radius: 16px;
}

.gift-card.completed {
    opacity: .45;
}

.gift-card.completed::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    background: #292933;
    color: white;
    border-radius: 50%;
}

.gift-image {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    background: #f7f7fa;
    border-radius: 12px;
    font-size: 42px;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-category {
    display: block;
    margin-top: 10px;
    color: #888;
    font-size: 11px;
}

.gift-card h3 {
    margin: 4px 0;
    font-size: 15px;
}

.gift-point {
    margin: 4px 0;
    font-size: 13px;
}

.gift-count {
    display: block;
    margin: 8px 0;
    text-align: center;
    font-size: 22px;
}

.gift-buttons {
    display: grid;
    grid-template-columns:
        1fr 1fr;
    gap: 7px;
}

.gift-buttons form {
    margin: 0;
}

.btn-minus,
.btn-plus {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
}

.btn-minus {
    background: #eee;
}

.btn-plus {
    background: #292933;
    color: white;
}


/* LEGAL */

.legal-page section {
    margin: 35px 0;
}

.legal-page h2 {
    font-size: 20px;
}

.legal-date {
    margin-top: 60px;
}


/* OPERATOR */

.operator-table {
    border-top:
        1px solid #ddd;
}

.operator-table > div {
    display: grid;
    grid-template-columns:
        180px 1fr;
    padding: 18px 0;
    border-bottom:
        1px solid #ddd;
}


/* ADMIN */

.admin-grid {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);
    gap: 20px;
}

.admin-card {
    padding: 30px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
}

.admin-card strong {
    display: block;
    font-size: 40px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 13px;
    border-bottom:
        1px solid #eee;
    text-align: left;
}

.contact-list {
    display: grid;
    gap: 15px;
}

.contact-card {
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.contact-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}


/* FOOTER */

.site-footer {
    padding: 55px 0 25px;
    background: #292933;
    color: white;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    width:
        min(1100px, calc(100% - 40px));
    margin: auto;
}

.footer-nav {
    display: grid;
    grid-template-columns:
        repeat(2, auto);
    gap: 8px 25px;
}

.footer-nav a {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
}

.copyright {
    margin-top: 45px;
    text-align: center;
    color: #999;
    font-size: 11px;
}


/* SP */

@media (
    max-width: 700px
) {

    .container {
        width:
            calc(100% - 20px);
    }

    .main-nav > a:not(
        .nav-button
    ) {
        display: none;
    }

    .hero {
        padding: 65px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .feature-grid,
    .content-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .gift-grid {
        grid-template-columns:
            repeat(2, 1fr);
        gap: 8px;
    }

    .gift-card {
        padding: 10px;
    }

    .share-box {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-head {
        align-items: stretch;
        flex-direction: column;
    }

    .progress-details {
        display: grid;
        grid-template-columns:
            repeat(2, 1fr);
    }

    .operator-table > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 35px;
    }

}

.gift-select-tools {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.gift-select-tools input {
    flex: 1;
}

.gift-select-tools button {
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.gift-select-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 10px;
    max-height: 550px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #ededf2;
    border-radius: 14px;
}

.gift-select-card {
    position: relative;
    display: grid;
    grid-template-columns:
        70px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid #ededf2;
    border-radius: 12px;
    background: white;
    cursor: pointer;
}

.gift-select-card input {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
}

.gift-select-card:has(
    input:checked
) {
    border-color: #292933;
    background: #f5f5fa;
}

.gift-select-image {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    overflow: hidden;
    background: #f5f5f8;
    border-radius: 10px;
}

.gift-select-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-select-card strong,
.gift-select-card small {
    display: block;
}

@media (
    max-width: 700px
) {

    .gift-select-tools {
        flex-wrap: wrap;
    }

    .gift-select-tools input {
        flex-basis: 100%;
    }

    .gift-select-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gift-select-card {
        grid-template-columns: 55px 1fr;
        padding: 8px;
    }

    .gift-select-image {
        width: 55px;
        height: 55px;
    }

}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-actions form {
    margin: 0;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 7px;
    background: #eee;
    text-decoration: none;
    font-size: 13px;
}

.btn-delete {
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: #c93d3d;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.text-muted {
    color: #999;
    font-size: 12px;
}