* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.9), transparent 22%),
        radial-gradient(circle at 82% 18%, rgba(255, 205, 235, 0.84), transparent 24%),
        linear-gradient(180deg, #ffd4ee 0%, #ff86c6 46%, #78baf4 100%);
}

main {
    width: min(94vw, 760px);
    margin: 0 auto;
    padding: 22px 0 46px;
}

a {
    color: inherit;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 105, 180, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.72);
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.9);
}

.hero,
.category-card,
.icon-panel {
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 22px rgba(255, 105, 180, 0.62), 0 18px 34px rgba(151, 68, 148, 0.2);
}

.hero {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.3);
}

.hero img,
.category-card img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero img {
    aspect-ratio: 4 / 5;
}

.hero-body {
    padding: 16px 16px 18px;
    text-align: center;
    background: rgba(255, 153, 205, 0.58);
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.18;
    letter-spacing: 0;
    text-shadow: 0 0 9px rgba(255, 105, 180, 1), 0 3px 0 rgba(217, 68, 150, 0.5);
}

.lead,
.panel-note {
    margin: 0 auto;
    max-width: 620px;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 800;
    color: #fff7fd;
    text-shadow: 0 0 8px rgba(173, 58, 135, 0.75);
}

.category-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
}

.category-card {
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.32);
}

.category-card img {
    aspect-ratio: 16 / 9;
}

.category-copy {
    display: grid;
    gap: 4px;
    padding: 12px 14px 14px;
    background: rgba(255, 142, 200, 0.62);
}

.category-copy strong {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.95);
}

.category-copy span {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
    color: #fff7fd;
}

.icon-panel {
    margin: 0;
    padding: 18px 14px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.24);
}

.panel-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 24px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 105, 180, 1);
}

.panel-note {
    margin-bottom: 18px;
    text-align: center;
}

.icon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.icon-item {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.42);
    border: 2px solid rgba(255, 255, 255, 0.76);
    text-align: center;
    box-shadow: 0 10px 22px rgba(129, 62, 132, 0.18);
}

.icon-item img {
    display: block;
    width: 100%;
    height: auto;
    background: rgba(255, 246, 252, 0.64);
}

.icon-frame-img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 8px;
    background-image:
        linear-gradient(45deg, rgba(255, 190, 224, 0.72) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 190, 224, 0.72) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 190, 224, 0.72) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 190, 224, 0.72) 75%);
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
    background-size: 28px 28px;
}

.icon-caption {
    padding: 10px 10px 12px;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.9);
}

.save-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    margin: 0 10px 12px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: linear-gradient(135deg, #ff65b4, #87c7ff);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(224, 73, 149, 0.24);
}

@media (min-width: 640px) {
    .category-list,
    .icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
