/* --- Color System & Design Tokens --- */
:root {
    --color-bg-base: rgba(255, 255, 255, 0.85);
    /* Slightly translucent for background bleed */
    --color-bg-alt: rgba(252, 252, 252, 0.75);
    --color-text-main: #000000;
    --color-text-sub: #333333;
    --color-text-muted: #777777;
    --color-text-white: #ffffff;

    --color-border: #f0f0f0;

    /* Pureal Series Accents */
    --color-clear: #40e0d0;
    /* Turquoise */
    --color-clear-light: #e6fcfb;
    --color-clear-dark: #00a896;

    --color-rejuone: #ffc0cb;
    /* Baby Pink */
    --color-rejuone-light: #fff0f2;
    --color-rejuone-dark: #c09ac2;

    --color-retivita: #ffd700;
    /* Yellow Gold */
    --color-retivita-light: #fffbeb;
    --color-retivita-dark: #cc9900;

    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', 'Shippori Mincho', 'Yu Mincho', serif;

    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Background settings variables */
    --aurora-blur: 75px;
}

/* --- CSS Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: #ffffff;
    /* Absolute solid white layer at the base */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: transparent;
    /* Transparent body to show background wrapper */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: var(--transition-smooth);
}

a:hover {
    text-decoration: none !important;
}

.container {
    margin: 0 auto;
    padding: 0px;
}

section {
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0px;
}

#item-list.nav_footer {
    width: 970px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Layout Wrapper (Responsive up to 1000px) --- */
.pureal-brand-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* --- Section Dividers & Margins --- */
section {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 40px;
}

section:last-of-type {
    border-bottom: none;
}

.section-header {
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-main);
    display: inline-block;
}

/* Gray Product Photo Placeholders */
.img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ededed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-placeholder-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Swiper Custom Container Styles */
.swiper {
    width: 100%;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.swiper.swiper-initialized {
    opacity: 1;
}

.swiper:not(.swiper-initialized) .ranking-card {
    width: 42%;
    margin-right: 16px;
}

#sec-ranking {
    overflow: hidden;
}

.ranking-swiper {
    padding-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
    overflow: visible;
}

.hero-section {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-placeholder-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- 2. RANKING Section --- */
.ranking-card {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
}

.ranking-card:hover {
    opacity: 0.75;
}

.rank-label {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    text-align: left;
}

.ranking-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-sub);
    text-align: left;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-price {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    text-align: left;
}

/* --- 3. AWARD Section --- */
.award-swiper {
    padding-bottom: 20px;
}

.award-card {
    width: 310px;
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.award-card:hover {
    opacity: 0.75;
}

.award-banner-img {
    width: 100%;
    aspect-ratio: 350 / 300;
    /* Solid gray layout placeholder for LDK award graphic */
    background-color: #eaeaea;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.award-banner-img span {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    color: #d94e59;
}

.award-banner-img p {
    font-size: 9px;
    color: var(--color-text-muted);
}

.award-text-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.award-main-title {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-main);
}

.award-copy-bold {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text-sub);
}

.award-description {
    font-size: 10px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* --- 1.2 HERO SWIPER Section (SP) --- */
.pc-show {
    display: none !important;
}

.sp-show {
    display: block !important;
}

.hero-swiper {
    position: relative;
    overflow: hidden;
}

.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 8px;
    height: 8px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-text-main, #333);
    opacity: 1;
}

/* --- 1.5 AMBASSADOR Section (SP) --- */
.ambassador-swiper {
    padding: 0 16px;
}

.ambassador-link {
    display: block;
    text-decoration: none;
}

.ambassador-banner {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ambassador-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ambassador-text-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

.ambassador-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
    padding-right: 20px;
    letter-spacing: 0.03em;
}

.ambassador-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333333" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* --- 4. CATEGORY Section --- */
.category-row {
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 80px;
}

.category-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-circle img {
    width: 42px;
    height: 42px;
}

.category-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-sub);
    letter-spacing: 0.02em;
}

/* --- 5. SKIN PROBLEMS Section --- */
.grid-problems {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px;
}

.problem-card {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--color-bg-base);
    transition: var(--transition-smooth);
}

.problem-card:hover {
    border-color: var(--color-text-main);
    opacity: 0.75;
}

.problem-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon-wrap img {
    width: 36px;
    height: 36px;
}

.problem-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-sub);
}

/* --- 6. PRODUCTS Section with Tab Toggle --- */
.tabs-container {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    margin: 0 20px 24px;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

.tab-btn.active {
    color: var(--color-text-main);
    font-weight: 700;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
}

/* Panel Contents */
.panel-content {
    display: none;
    padding: 0 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.panel-content.active {
    display: block;
    animation: fadeIn 0.35s ease-out forwards;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
}

/* Product Cards under PRODUCTS */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
}

.product-card:hover {
    opacity: 0.75;
}

.product-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-sub);
    text-align: left;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: left;
}

/* --- 7. BRAND & SERIES Section --- */
.series-swiper {
    padding-bottom: 20px;
}

.series-skincare-banner {
    width: 100%;
    margin-bottom: 24px;
}

.series-skincare-banner a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.series-skincare-banner a:hover {
    opacity: 0.75;
}

.series-skincare-banner img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.series-card {
    width: 72%;
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.series-card:hover {
    opacity: 0.75;
}

.series-banner-img {
    width: 100%;
    height: auto;
    background-color: #ededed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.series-banner-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.series-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.series-name {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
}

.award-caution {
    display: inline-block;
    font-size: 8px;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.series-desc {
    font-size: 10px;
    line-height: 1.6;
    color: var(--color-text-muted);
    height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* --- 8. ABOUT Section --- */
.about-section {
    text-align: center;
}

.about-body {
    font-family: var(--font-serif);
    font-size: 11px;
    line-height: 2.2;
    color: var(--color-text-sub);
    letter-spacing: 0.08em;
    margin-bottom: 30px;
}

.about-body p {
    margin-bottom: 12px;
}

.about-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.about-logo img {
    width: 140px;
    height: auto;
    display: block;
}

/* --- Responsive Styles (Desktop / PC Viewport >= 768px) --- */
@media (min-width: 768px) {

    /* General Section Padding */
    .section-header {
        padding: 32px 0px;
    }

    section {
        padding-bottom: 60px;
    }

    .hero-section {
        height: auto;
        padding-bottom: 0px;
    }

    /* Swiper layouts when not initialized (to prevent FOUC / layout shifts) */
    .swiper:not(.swiper-initialized) .series-card {
        width: calc((100% - 48px) / 3);
        margin-right: 24px;
    }

    .swiper:not(.swiper-initialized) .award-card {
        width: 100%;
        margin-right: 0;
    }

    .swiper:not(.swiper-initialized) .ranking-card {
        width: calc((100% - 96px) / 5);
        margin-right: 24px;
    }

    .swiper:not(.swiper-initialized) .ranking-card:last-child,
    .swiper:not(.swiper-initialized) .series-card:last-child {
        margin-right: 0;
    }

    /* --- 2. RANKING Section (PC) --- */
    .ranking-swiper {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        overflow: hidden;
    }

    /* --- 3. AWARD Section (PC) --- */
    .award-swiper {
        max-width: 800px;
        margin: 0 auto;
    }

    .award-swiper .award-card {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        width: 100%;
        margin-right: 0;
    }

    .award-swiper .award-banner-img {
        flex: 0 0 350px;
        width: 350px;
        height: 350px;
    }

    .award-swiper .award-banner-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

    .award-swiper .award-text-block {
        flex: 1;
        text-align: left;
        gap: 12px;
    }

    .award-swiper .award-main-title {
        font-size: 18px;
    }

    .award-swiper .award-copy-bold {
        font-size: 14px;
    }

    .award-swiper .award-description {
        font-size: 12px;
    }

    /* --- 1.2 HERO SWIPER Section (PC) --- */
    .pc-show {
        display: block !important;
    }

    .sp-show {
        display: none !important;
    }

    /* --- 1.5 AMBASSADOR Section (PC) --- */
    .ambassador-swiper {
        max-width: 800px;
        margin: 0 auto;
        padding: 0;
    }

    .ambassador-link:hover .ambassador-banner img {
        transform: scale(1.015);
    }

    .ambassador-link:hover .ambassador-text {
        opacity: 0.75;
    }

    .ambassador-text {
        font-size: 15px;
    }

    /* Category Alignment */
    .category-row {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Skin Problems 4 columns */
    .grid-problems {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Products 4 columns & Tab container width */
    .tabs-container {
        max-width: 500px;
        margin: 0 auto 32px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 24px;
    }

    /* Category Circles Enlargement (1.5x) on PC */
    .category-item {
        width: 130px;
    }

    .category-circle {
        width: 126px;
        height: 126px;
    }

    .category-circle img {
        width: 63px;
        height: 63px;
    }

    .category-label {
        font-size: 12px;
    }

    /* SKIN PROBLEMS SVG resize to match CATEGORY (63px) on PC */
    .problem-icon-wrap {
        width: 70px;
        height: 70px;
    }

    .problem-icon-wrap img {
        width: 63px;
        height: 63px;
    }

    /* ABOUT Section Logo Enlargement (2x) on PC */
    .about-logo img {
        width: 280px;
    }

    /* Fixed background width adjustment for PC to prevent horizontal scrollbar */
    .bg-system-wrapper {
        width: 100%;
    }

    /* Prevent horizontal overflow on PC viewport */
    html, body {
        overflow-x: hidden;
    }
}

/* --- Ambient CSS Aurora Background Styling --- */
.bg-system-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Render below standard content elements */
    pointer-events: none;
    overflow: hidden;
}

.aurora-container {
    width: 100%;
    height: 100%;
    filter: blur(var(--aurora-blur, 75px));
    opacity: 0.95;
}

.aurora-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    will-change: transform;
    mix-blend-mode: multiply;
    animation: p4-morph 12s infinite alternate ease-in-out;
}

.aurora-blob-blue-1 {
    width: 65vw;
    height: 45vw;
    background: radial-gradient(circle, var(--aurora-blue-solid, rgba(98, 203, 199, 0.95)) 0%, var(--aurora-blue-fade, rgba(98, 203, 199, 0)) 70%);
    top: -10%;
    left: -5%;
}

.aurora-blob-pink {
    width: 50vw;
    height: 70vw;
    background: radial-gradient(circle, var(--aurora-pink-solid, rgba(234, 104, 140, 0.9)) 0%, var(--aurora-pink-fade, rgba(234, 104, 140, 0)) 70%);
    bottom: -15%;
    right: -10%;
}

.aurora-blob-yellow {
    width: 70vw;
    height: 48vw;
    background: radial-gradient(circle, var(--aurora-yellow-solid, rgba(244, 213, 70, 0.85)) 0%, var(--aurora-yellow-fade, rgba(244, 213, 70, 0)) 70%);
    top: 25%;
    right: 10%;
}

.aurora-blob-blue-2 {
    width: 45vw;
    height: 60vw;
    background: radial-gradient(circle, var(--aurora-blue-solid, rgba(98, 203, 199, 0.85)) 0%, var(--aurora-blue-fade, rgba(98, 203, 199, 0)) 70%);
    bottom: 20%;
    left: 15%;
}

@keyframes p4-morph {
    0% {
        border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 45% 55% 50% 50% / 60% 40% 50% 50%;
    }
}

/* --- Swiper Navigation Custom Styles (PC only) --- */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

@media (min-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: flex !important;
        width: 44px;
        height: 44px;
        background-color: #ffffff;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: #f7f7f7;
        transform: translateY(-50%) scale(1.05);
    }

    .swiper-button-next:active,
    .swiper-button-prev:active {
        transform: translateY(-50%) scale(0.95);
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        display: none !important;
    }

    .swiper-button-next {
        right: 16px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23777777" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px;
    }

    .swiper-button-prev {
        left: 16px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23777777" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px;
    }

    .swiper-button-disabled {
        opacity: 0.35;
        cursor: auto;
        pointer-events: none;
    }

    .swiper-button-next.swiper-button-lock,
    .swiper-button-prev.swiper-button-lock {
        display: none !important;
    }
}