.agpd-page .p-page-header,
.agpd-page .l-spacer {
    display: none;
}

.agpd-page .l-container {
    max-width: none;
    padding: 0 0 110px !important;
}

.agpd-page .l-container::before,
.agpd-page .l-container::after {
    display: none;
}

.agpd-page .p-entry-content {
    max-width: none !important;
    padding: 0 !important;
}

.agpd {
    --agpd-accent: #9a2929;
    --agpd-accent-dark: #781d1d;
    --agpd-ink: var(--color-sumi, #353330);
    --agpd-muted: #69645e;
    --agpd-paper: var(--color-bg-light, #f5f2eb);
    --agpd-line: #ded8cf;
    --agpd-white: #fff;
    width: 100%;
    overflow: hidden;
    color: var(--agpd-ink);
    font-family: var(--font-serif, "Noto Serif JP", "Yu Mincho", serif);
    line-height: 1.8;
    letter-spacing: .05em;
}

.agpd *,
.agpd *::before,
.agpd *::after {
    box-sizing: border-box;
}

.agpd button,
.agpd input,
.agpd select {
    font: inherit;
}

.agpd svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.agpd-hero {
    position: relative;
    min-height: 430px;
    padding: clamp(130px, 13vw, 180px) max(7vw, 24px) 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: 40px;
    background:
        radial-gradient(circle at 72% 44%, rgba(197, 176, 136, .19), transparent 35%),
        linear-gradient(105deg, #faf8f4 0%, #f3efe8 58%, #ebe5dc 100%);
    border-bottom: 1px solid rgba(156, 142, 126, .2);
}

.agpd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

.agpd-hero__copy,
.agpd-hero__art {
    position: relative;
    z-index: 1;
}

.agpd-eyebrow {
    margin: 0 0 12px !important;
    color: var(--agpd-accent);
    font-family: var(--font-sans, sans-serif);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .28em;
}

.agpd-hero h1 {
    max-width: 760px;
    margin: 0 !important;
    color: #232220;
    font-size: clamp(2rem, 4.4vw, 4rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: .04em;
}

.agpd-hero__lead {
    margin: 18px 0 0 !important;
    color: #3f3b37;
    font-size: clamp(1rem, 1.7vw, 1.32rem);
    line-height: 1.8;
}

.agpd-benefits {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    font-family: var(--font-sans, sans-serif);
    font-size: .9rem;
    font-weight: 700;
}

.agpd-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.agpd-benefits svg {
    width: 38px;
    height: 38px;
    padding: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.agpd-hero__art {
    min-height: 260px;
    filter: drop-shadow(0 25px 25px rgba(45, 34, 22, .15));
}

.agpd-hero__art span {
    position: absolute;
    bottom: 16px;
    display: block;
}

.agpd-art-box {
    left: 4%;
    width: 42%;
    height: 150px;
    background: linear-gradient(145deg, #fff, #e9e7e2);
    border: 1px solid #d3cfc8;
    transform: skewY(-4deg);
}

.agpd-art-box::before {
    content: "AG";
    position: absolute;
    inset: 42px auto auto 38%;
    color: #403c37;
    font-family: Georgia, serif;
    font-size: 1.25rem;
}

.agpd-art-bag {
    left: 39%;
    width: 34%;
    height: 218px;
    background: linear-gradient(100deg, #c9af8d, #e5d2b5 50%, #bea17c);
    clip-path: polygon(5% 7%, 95% 0, 100% 100%, 0 100%);
}

.agpd-art-bag::before,
.agpd-art-bag::after {
    content: "";
    position: absolute;
    top: -38px;
    width: 36px;
    height: 60px;
    border: 4px solid #9b7a55;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
}

.agpd-art-bag::before { left: 20%; }
.agpd-art-bag::after { right: 20%; }

.agpd-art-pouch {
    right: 2%;
    width: 29%;
    height: 170px;
    background: linear-gradient(100deg, #d0d0ce, #fafafa 43%, #b7b7b5 67%, #eeeeec);
    clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
    border-radius: 5px 5px 12px 12px;
}

.agpd-art-pouch::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    border-top: 2px solid rgba(80, 80, 80, .3);
}

.agpd-wizard {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 40px));
    min-height: 480px;
    margin: -64px auto 0;
    padding: clamp(26px, 4vw, 48px);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(156, 142, 126, .18);
    border-radius: 12px;
    box-shadow: 0 28px 90px rgba(58, 46, 34, .11);
}

.agpd-progress {
    width: min(720px, 100%);
    margin: 0 auto 42px !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none !important;
}

.agpd-progress li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #7b7772;
    font-family: var(--font-sans, sans-serif);
    font-size: .76rem;
    line-height: 1.35;
    text-align: center;
}

.agpd-progress li::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 18px;
    right: 50%;
    width: 100%;
    border-top: 2px solid #dedede;
}

.agpd-progress li:first-child::before { display: none; }

.agpd-progress li > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #e7e7e7;
    border-radius: 50%;
    color: #514d49;
    font-size: .9rem;
    font-weight: 700;
    transition: .25s ease;
}

.agpd-progress li.is-current,
.agpd-progress li.is-complete {
    color: var(--agpd-accent);
}

.agpd-progress li.is-current > span,
.agpd-progress li.is-complete > span {
    background: var(--agpd-accent);
    color: #fff;
}

.agpd-progress li.is-complete::before,
.agpd-progress li.is-current::before {
    border-color: rgba(154, 41, 41, .42);
}

.agpd-panel {
    animation: agpd-fade .35s ease both;
}

@keyframes agpd-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.agpd-question-list {
    display: grid;
    gap: 44px;
}

.agpd-question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.agpd-question legend {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #262421;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.agpd-question legend::after,
.agpd-result > div > h2::after,
.agpd-result-intro > h2::after {
    content: "";
    width: 38px;
    margin: 10px auto 0;
    display: block;
    border-top: 2px solid var(--agpd-accent);
}

.agpd-required {
    margin-left: 10px;
    padding: 3px 7px;
    vertical-align: middle;
    background: var(--agpd-accent);
    border-radius: 2px;
    color: #fff;
    font-family: var(--font-sans, sans-serif);
    font-size: .62rem;
    letter-spacing: .08em;
}

.agpd-question__help {
    margin: 10px 0 20px !important;
    color: var(--agpd-muted);
    font-size: .87rem;
    line-height: 1.7;
    text-align: center;
}

.agpd-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.agpd-choice {
    position: relative;
    min-width: 0;
    min-height: 180px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #dedbd7;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.agpd-choice:hover {
    transform: translateY(-2px);
    border-color: #b7aaa0;
    box-shadow: 0 12px 30px rgba(50, 40, 30, .07);
}

.agpd-choice.is-selected,
.agpd-choice:has(input:checked) {
    border-color: var(--agpd-accent);
    background: #fffafa;
    box-shadow: 0 0 0 2px rgba(154, 41, 41, .12);
}

.agpd-choice input {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--agpd-accent);
}

.agpd-choice input:focus-visible {
    outline: 3px solid rgba(154, 41, 41, .25);
    outline-offset: 3px;
}

.agpd-choice__visual {
    width: 72px;
    height: 64px;
    color: #716d68;
}

.agpd-choice__body {
    display: grid;
    gap: 4px;
}

.agpd-choice__body strong {
    color: #292724;
    font-size: 1rem;
}

.agpd-choice__body small {
    color: var(--agpd-muted);
    font-size: .78rem;
    line-height: 1.55;
}

.agpd-question--number {
    width: min(540px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.agpd-input-wrap {
    position: relative;
    width: min(360px, 100%);
    margin: 18px auto 0;
    display: flex;
    align-items: center;
}

.agpd-input-wrap input,
.agpd-question select {
    width: 100%;
    min-height: 54px;
    padding: 12px 76px 12px 16px;
    background: #fff;
    border: 1px solid #cfc9c1;
    border-radius: 5px;
    color: var(--agpd-ink);
}

.agpd-question select {
    width: min(520px, 100%);
    margin: 18px auto 0;
    display: block;
    padding-right: 42px;
}

.agpd-input-wrap input:focus,
.agpd-question select:focus {
    outline: 0;
    border-color: var(--agpd-accent);
    box-shadow: 0 0 0 3px rgba(154, 41, 41, .12);
}

.agpd-input-wrap span {
    position: absolute;
    right: 14px;
    color: var(--agpd-muted);
    font-size: .84rem;
}

.agpd-question.has-error .agpd-choice-grid,
.agpd-question.has-error .agpd-input-wrap input,
.agpd-question.has-error select {
    outline: 2px solid #b3261e;
    outline-offset: 3px;
}

.agpd-error {
    width: min(720px, 100%);
    margin: 26px auto 0;
    padding: 12px 16px;
    background: #fff2f1;
    border: 1px solid #e2aaa5;
    border-radius: 4px;
    color: #8f1f18;
    font-size: .88rem;
    text-align: center;
}

.agpd-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.agpd-button {
    min-width: 240px;
    min-height: 56px;
    padding: 13px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--font-sans, sans-serif);
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.agpd-button:hover { transform: translateY(-1px); }

.agpd-button:focus-visible {
    outline: 3px solid rgba(154, 41, 41, .3);
    outline-offset: 3px;
}

.agpd-button--primary {
    background: linear-gradient(135deg, #b51f26, var(--agpd-accent));
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(154, 41, 41, .18);
}

.agpd-button--primary:hover { background: var(--agpd-accent-dark); }

.agpd-button--secondary {
    background: #fff;
    border-color: #cfc8bf;
    color: #4b4742;
}

.agpd-button--secondary:hover { background: #f7f4ef; }

.agpd-loading {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--agpd-muted);
}

.agpd-loading span {
    width: 42px;
    height: 42px;
    border: 3px solid #e2dcd4;
    border-top-color: var(--agpd-accent);
    border-radius: 50%;
    animation: agpd-spin .8s linear infinite;
}

@keyframes agpd-spin { to { transform: rotate(360deg); } }

.agpd-result > div > h2,
.agpd-result-intro > h2 {
    margin: 0 0 32px !important;
    color: #282623;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.5;
    text-align: center;
}

.agpd-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.agpd-result-card {
    min-width: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fbfaf8;
    border: 1px solid #ded9d1;
    border-radius: 6px;
}

.agpd-result-card--wide { grid-column: 1 / -1; }

.agpd-result-card__icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    color: #696762;
}

.agpd-result-card h3,
.agpd-notes h3 {
    margin: 0 0 4px !important;
    color: #2b2926;
    font-size: 1rem;
}

.agpd-result-card p,
.agpd-notes p {
    margin: 0 !important;
    color: #5d5852;
    font-size: .92rem;
    line-height: 1.75;
}

.agpd-result-card .agpd-result-price {
    color: var(--agpd-accent);
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 700;
}

.agpd-notes {
    margin-top: 18px;
    padding: 20px 22px;
    background: #f8f4ef;
    border-left: 3px solid #b7a793;
}

.agpd-summary {
    margin-top: 20px;
    border-top: 1px solid var(--agpd-line);
    border-bottom: 1px solid var(--agpd-line);
}

.agpd-summary summary {
    padding: 14px 4px;
    color: #4f4a45;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
}

.agpd-summary dl {
    margin: 0 0 16px;
    display: grid;
    grid-template-columns: minmax(120px, .3fr) 1fr;
    gap: 1px;
    background: var(--agpd-line);
}

.agpd-summary dt,
.agpd-summary dd {
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    font-size: .82rem;
}

.agpd-summary dt { font-weight: 700; }

.agpd-result-disclaimer {
    margin: 20px 0 0 !important;
    color: #77716a;
    font-size: .78rem;
    text-align: center;
}

.agpd-result-intro {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 10px;
}

.agpd-result-intro > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.agpd-result-intro article {
    padding: 24px;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 2px 18px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid #ddd7cf;
}

.agpd-result-intro article > svg {
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
    color: #6b6965;
}

.agpd-result-intro h3 {
    margin: 0 !important;
    color: #2d2b28;
    font-size: .95rem;
}

.agpd-result-intro p {
    margin: 0 !important;
    color: #68635d;
    font-size: .8rem;
    line-height: 1.65;
}

[data-agpd][hidden],
.agpd [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .agpd-hero {
        grid-template-columns: 1fr;
        padding-bottom: 110px;
    }
    .agpd-hero__art {
        position: absolute;
        right: 4vw;
        bottom: 65px;
        width: 38%;
        min-height: 200px;
        opacity: .4;
    }
    .agpd-hero__copy { max-width: 76%; }
    .agpd-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agpd-result-intro > div { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .agpd-page .l-container { padding-bottom: 72px !important; }
    .agpd-hero {
        min-height: 420px;
        padding: 120px 20px 100px;
        display: block;
    }
    .agpd-hero__copy { max-width: none; }
    .agpd-hero__art {
        right: -18%;
        bottom: 28px;
        width: 72%;
        min-height: 180px;
        opacity: .18;
    }
    .agpd-hero h1 { font-size: clamp(1.85rem, 9.2vw, 2.7rem); }
    .agpd-hero__lead { font-size: .98rem; }
    .agpd-benefits { gap: 11px; font-size: .74rem; }
    .agpd-benefits svg { width: 31px; height: 31px; padding: 5px; }
    .agpd-wizard {
        width: calc(100% - 24px);
        margin-top: -62px;
        padding: 24px 16px 28px;
        border-radius: 9px;
    }
    .agpd-progress { margin-bottom: 32px !important; }
    .agpd-progress li { font-size: .64rem; letter-spacing: 0; }
    .agpd-progress li > span { width: 32px; height: 32px; }
    .agpd-progress li::before { top: 15px; }
    .agpd-question-list { gap: 34px; }
    .agpd-question legend { font-size: 1.18rem; }
    .agpd-required { margin-left: 5px; }
    .agpd-choice-grid { grid-template-columns: 1fr; gap: 10px; }
    .agpd-choice {
        min-height: 104px;
        padding: 15px 14px 15px 48px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    .agpd-choice input { top: 50%; transform: translateY(-50%); }
    .agpd-choice__visual { width: 52px; height: 48px; flex: 0 0 52px; }
    .agpd-actions { flex-direction: column-reverse; }
    .agpd-button { width: 100%; min-width: 0; }
    .agpd-result-grid { grid-template-columns: 1fr; }
    .agpd-result-card--wide { grid-column: auto; }
    .agpd-result-card { padding: 18px; align-items: flex-start; }
    .agpd-result-card__icon { width: 44px; height: 44px; flex-basis: 44px; }
    .agpd-summary dl { grid-template-columns: 1fr; }
    .agpd-summary dd { margin-top: -1px; color: #5f5a54; }
    .agpd-actions--result { flex-direction: column-reverse; }
    .agpd-result-intro { width: calc(100% - 28px); padding-top: 42px; }
    .agpd-result-intro article { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .agpd *,
    .agpd *::before,
    .agpd *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
