/* ギフトカード購入ページ（apple-purchase / top_purchase）見た目調整 — body.page-purchase のみ */

.page-purchase .apple-in {
    border-radius: 12px;
}

.page-purchase .apple-in > .container > h1 {
    font-size: clamp(1.25rem, 4.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 1rem;
    color: #2c3136;
    letter-spacing: 0.02em;
}

.page-purchase .apple-in .note {
    border: 1px solid rgba(81, 114, 150, 0.22);
    border-left: 4px solid #517296;
    background: linear-gradient(135deg, #fffef8 0%, #f8fafc 100%);
    padding: 14px 16px;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.page-purchase .apple-in .note p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #3d4450;
}

.page-purchase .apple-in .filter-box {
    margin-bottom: 1.25rem;
}

.page-purchase .apple-in .filter-box form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.page-purchase .apple-in .filter-box label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

.page-purchase .apple-in .filter-box select {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cfd6e0;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-purchase .apple-in .filter-box select:focus {
    outline: none;
    border-color: #517296;
    box-shadow: 0 0 0 3px rgba(81, 114, 150, 0.2);
}

@media screen and (min-width: 769px) {
    .page-purchase .apple-in .filter-box form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        max-width: none;
        gap: 12px 16px;
    }

    .page-purchase .apple-in .filter-box label {
        margin: 0;
    }

    .page-purchase .apple-in .filter-box select {
        width: auto;
        min-width: 220px;
    }
}

@media screen and (max-width: 768px) {
    .page-purchase .apple-in {
        padding: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    .page-purchase .apple-in .accordion {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 4px;
    }

    .page-purchase .apple-in .accordion-item {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    .page-purchase .apple-in .accordion-header {
        background: linear-gradient(180deg, #f0f7fb 0%, #e8f2f8 100%);
        padding: 14px 14px 12px;
        border-bottom: none;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s ease;
    }

    .page-purchase .apple-in .accordion-header:active {
        background: linear-gradient(180deg, #e3eef5 0%, #dce8f0 100%);
    }

    .page-purchase .apple-in .accordion-header > div:first-of-type {
        font-weight: 700;
        font-size: 1rem;
        color: #1a202c;
        margin-bottom: 6px;
        line-height: 1.35;
    }

    .page-purchase .apple-in .accordion-header > div:nth-of-type(2) {
        font-size: 0.8125rem;
        line-height: 1.55;
        color: #4a5568;
        word-break: break-word;
    }

    .page-purchase .apple-in .accordion-header-row {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(81, 114, 150, 0.15);
        align-items: center;
    }

    .page-purchase .apple-in .accordion-header-row > div:first-child {
        font-size: 0.8125rem;
        font-weight: 600;
        color: #517296;
    }

    .page-purchase .apple-in .accordion-header-row .arrow {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
        font-size: 0.7rem;
        color: #517296;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 8px;
        border: 1px solid rgba(81, 114, 150, 0.2);
    }

    .page-purchase .apple-in .accordion-content {
        padding: 14px 14px 16px;
        background: #fafbfc;
        border-top: 1px solid #e2e8f0;
    }

    .page-purchase .apple-in .accordion-content p {
        font-size: 0.875rem;
        color: #2d3748;
        padding: 6px 0;
    }

    .page-purchase .apple-in .accordion-content p:last-of-type {
        padding-top: 12px;
        margin-top: 4px;
    }

    .page-purchase .apple-in .accordion-content button,
    .page-purchase .apple-in .accordion button {
        width: 100%;
        min-height: 48px;
        padding: 14px 18px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 10px;
        border: none;
        background: linear-gradient(180deg, #5a6570 0%, #484e54 100%);
        color: #fff;
        box-shadow: 0 2px 6px rgba(72, 78, 84, 0.35);
        transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    }

    .page-purchase .apple-in .accordion-content button:active,
    .page-purchase .apple-in .accordion button:active {
        transform: scale(0.98);
        filter: brightness(0.95);
    }

    .page-purchase .apple-in .accordion-item > p {
        padding: 16px;
        margin: 0;
        text-align: center;
        font-size: 0.9rem;
        color: #718096;
    }
}
