/* --- Core Branding Values Matrix from Figma --- */
:root {
    --primary-pink: #E9165D;
    --dark-bg: #151515;
    --white: #FFFFFF;
    --figma-text-color: #363636;
    --app-max-width: 375px; /* Constrain to common mobile artboard for pixel-fit */
}

/* --- Document Normalization Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    background-color: #F8F8F8; /* Matte background to prevent contrast bleaching */
    display: flex;
    justify-content: center;
}

body {
    font-family: "Hiragino Kaku Gothic Std", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
    color: var(--figma-text-color);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Rigid Viewport App Shell Layout Controller --- */
.app-viewport-container {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    background-color: var(--white);
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* --- Base Button Elements Setup --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 56px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: transform 0.15s ease, opacity 0.15s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-pink);
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.95;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn .btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn .btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Header System --- */
.main-header {
    width: 100%;
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    max-width: var(--app-max-width);
    z-index: 100;
    border-bottom: 1px solid rgba(233, 22, 93, 0.04);
}

.logo-link {
    display: flex;
    align-items: center;
}

.bup-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.menu-toggle-btn, .menu-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle-btn img, .menu-close-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* --- Fullscreen Navigation Drawer Component --- */
.nav-drawer-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--app-max-width);
    height: 100vh;
    background-color: var(--primary-pink);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-drawer-overlay.is-open {
    transform: translateY(0);
}

.drawer-header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    border-bottom: 1px solid rgba(233, 22, 93, 0.08);
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    flex-grow: 1;
    overflow-y: auto;
}

.drawer-item {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.04em;
}

.drawer-footer {
    padding: 24px;
    display: flex;
    justify-content: center;
    background-color: var(--primary-pink);
}

/* --- Hero Section & Minimal Image-Based Layout --- */
.hero-fv {
    padding-top: 64px;
    position: relative;
    background-color: #fff;
    background-image: linear-gradient(180deg, rgba(233,22,93,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(233,22,93,0.03) 1px, transparent 1px), radial-gradient(circle at 20% 15%, rgba(233,22,93,0.06) 0, transparent 30%);
    background-size: 16px 16px, 16px 16px, 100% 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-fv img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-cta-wrapper {
    width: 100%;
    padding: 0 20px 0 20px;
    position: absolute;
    bottom: 32px;
}

.hero-cta {
    max-width: 335px;
    margin: 0 auto;
}

/* --- Beauty Section 1: keep content inside the app viewport on mobile --- */
.beauty-sec-1 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    overflow: hidden;
}

.beauty-sec-1 .hero-title-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.beauty-sec-1 .hero-cta-wrapper {
    position: absolute; /* override absolute used in hero */
    bottom: 39px; 
    width: 100%;
}

/* --- Pixel-Perfect 3D CTA Button --- */
.cta-btn-3d {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
    max-width: 329px; /* Adjust this to match your exact Figma container width */
    height: 50px; 
    background-color: #E9125D; 
    border-radius: 8px; /* Rounded rectangle, NOT a full pill shape */
    border: 1px solid #D6094B; /* Very faint darker stroke around the entire edge */
    text-decoration: none;
    box-shadow: 
        inset 0 1px 0 rgba  (255, 255, 255, 0.25),
        0 4px 0 #C40645,
        0 8px 16px rgba(233, 18, 93, 0.25);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.cta-btn-3d:active {
    transform: translateY(4px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25), 
        0 0px 0 #C40645,
        0 4px 8px rgba(233, 18, 93, 0.15);
}

.cta-btn-text {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transform: translateX(8px);
}

.cta-btn-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.sec-1-5{
    z-index: 3;
}
/* --- Core Section Setup --- */
.editorial-trust-section {
    width: 100%;
    margin-top: -42px ;
    z-index: 2;
    background-image:url(assets/SEC\ 2.png) ; /* Soft cream background from design */
    padding: 48px 20px;
    position: relative;
    overflow: hidden;
}

.trust-container {
    position: relative;
    z-index: 2;
}

/* --- Typography & Headers --- */
.trust-header-block {
    text-align: center;
    margin-bottom: 32px;
}

.title-main {
    font-size: 32px;
    font-weight: 900;
    color: #363636;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.title-sub {
    font-size: 26px;
    font-weight: 900;
    color: #363636;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.highlight-pink {
    color: #FF6896; /* Lighter pink for the specific word highlight */
    font-size: 34px;
    position: relative;
}

.trust-description {
    font-size: 15px;
    font-weight: 700;
    color: #555555;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* --- Chat Bubbles Container --- */
.chat-bubbles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Exact spacing between bubbles */
    width: 100%;
}

/* --- Base Chat Bubble Styling --- */
.chat-bubble {
    position: relative;
    width: 100%;
    padding: 16px 12px;
    border-radius: 8px;
    color: #FFFFFF;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); /* Very subtle depth */
}

/* Color Variables for the Bubbles */
.bubble-light {
    background-color: #FF6896;
}

.bubble-dark {
    background-color: #E9125D; /* Matches your primary CTA button */
}

/* --- The Arrow / Tail Magic --- */

/* 1. Tail pointing Down & Right *//* --- The Arrow / Tail Magic (Perfected Extreme Angles) --- */

/* 1. Tail pointing Down & Right (Light Pink Bubbles) */
.tail-right::after {
    content: '';
    position: absolute;
    bottom: -13px; /* How far the tail drops down */
    right: 14px; /* Placed on the extreme right, just inside the border-radius */
    
    /* Creates the base asymmetrical right-triangle */
    border-top: 14px solid #FF6896;
    border-left: 22px solid transparent; /* Controls how wide the base is */
    border-right: 0px solid transparent;
    border-bottom: 0px solid transparent;
    
    /* The Pixel-Perfect Magic: Tilts the bottom tip sharply outward */
    transform-origin: top right;
    transform: skewX(28deg); 
}

/* 2. Tail pointing Down & Left (Dark Pink Bubbles) */
.tail-left::after {
    content: '';
    position: absolute;
    bottom: -13px; 
    left: 14px; /* Placed on the extreme left */
    
    /* Creates the base asymmetrical left-triangle */
    border-top: 14px solid #E9125D;
    border-right: 22px solid transparent; 
    border-left: 0px solid transparent;
    border-bottom: 0px solid transparent;
    
    /* The Pixel-Perfect Magic: Tilts the bottom tip sharply outward to the left */
    transform-origin: top left;
    transform: skewX(-28deg);
}





/* --- Section Container --- */
.beauty-about-sec {
    position: relative;
    width: 100%;
    /* You can apply your extracted background image here */
    background-color: transparent; 
    padding: 40px 0 60px 0;
    overflow: hidden;
    color: var(--white);
}

/* --- Header --- */
.about-header {
    padding: 0 20px;
    margin-bottom: 24px;
}

.about-header .title-en {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.about-header .title-jp {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.about-header .small-text {
    font-size: 24px;
}

/* --- Visual & Overlay Area --- */
.about-visual-area {
    position: relative;
    padding: 0 20px;
    min-height: 220px;
}

.about-text-content {
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.dashed-text {
    display: inline-block;
    font-size: 26px;
    font-weight: 900;
    border-bottom: 3px dashed var(--primary-pink);
    padding-bottom: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.cross-icon {
    font-size: 24px;
    font-weight: bold;
    margin: 4px 0 4px 40px;
}

.inline-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.inline-text .small-text {
    font-size: 20px;
}

.inline-text .small-text-end {
    font-size: 16px;
    margin-left: 4px;
}

.about-image-wrapper {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 240px;
    z-index: 1;
}

.box-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Tilted Banner --- */
.tilted-banner-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    position: relative;
    z-index: 3;
}

.tilted-banner {
    background-color: var(--primary-pink);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    /* Scale slightly to prevent white gaps at the edges when tilted */
    transform: rotate(-4deg) scale(1.1); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.emphasis-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.1em;
    display: inline-block;
    transform: rotate(4deg); /* Correct the text slightly if you want it readable, or leave it tilted with the box */
    /* Adds the traditional Japanese emphasis dots above the text */
    -webkit-text-emphasis: filled dot var(--white);
    text-emphasis: filled dot var(--white);
}

/* --- Bottom Description --- */
.about-description {
    padding: 0 24px;
}

.desc-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #E0E0E0; /* Slightly off-white for better readability on dark */
}

.spacing-top {
    margin-top: 24px;
}

.bold-text {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 8px;
}

.highlight-box {
    background-color: var(--white);
    display: inline-flex;
    align-items: baseline;
    padding: 4px 12px;
    font-weight: 900;
}

.text-pink {
    color: var(--primary-pink);
}

.text-dark {
    color: var(--figma-text-color);
}

.price-large {
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-right: 2px;
}

.surprise-box {
    font-size: 20px;
    padding: 6px 12px;
}







/* --- Beauty About Section Base --- */
.beauty-about-section {
    position: relative;
    width: 100%;
    background: url(/assets/SEC\ 3.png) no-repeat center center / cover;
    padding: 30px 0 60px 0;
    overflow: hidden;
    color: #FFFFFF;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* --- Header Section --- */
.beauty-header { padding: 0 24px; margin-bottom: 40px; }
.beauty-title-en { font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: 0.02em; margin-bottom: 2px; }
.beauty-title-jp { font-size: 46px; font-weight: 900; line-height: 1; }
.beauty-title-small { font-size: 28px; }

/* --- Top Content Typographic Layout --- */
.beauty-content-grid { position: relative; padding: 0 24px; min-height: 180px; }
.beauty-text-col { position: relative; z-index: 2; padding-top: 10px; max-width: 95%; }
.beauty-dashed-text { display: inline-block; font-size: 26px; font-weight: 900; border-bottom: 2px dashed #E6005C; padding-bottom: 6px; margin-bottom: 8px; letter-spacing: 0.05em; line-height: 1.2; }
.beauty-cross { font-size: 22px; font-weight: bold; margin: 8px 0 8px 45px; }
.beauty-inline-text { font-size: 26px; font-weight: 900; letter-spacing: 0.05em; margin-top: 8px; line-height: 1.4; white-space: nowrap; }
.small-kana { font-size: 20px; font-weight: 900; display: inline-block; transform: translateY(-1px); margin-right: 2px; }
.small-kana-end { font-size: 18px; font-weight: 900; display: inline-block; margin-left: 6px; vertical-align: bottom; }

/* --- Tilted Center Banner --- */
.beauty-tilted-wrapper { width: 100%; margin: 45px 0; position: relative; z-index: 3; }
.beauty-tilted-banner { background-color: #E6005C; color: #FFFFFF; text-align: center; padding: 16px 0; transform: rotate(-5deg) scale(1.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.beauty-emphasis { font-size: 30px; font-weight: 900; letter-spacing: 0.15em; display: inline-block; -webkit-text-emphasis: filled dot #FFFFFF; text-emphasis: filled dot #FFFFFF; }

/* --- Bottom Description Area --- */
.beauty-description { padding: 0 24px; position: relative; z-index: 3; }
.beauty-desc-p { 
    font-size: 14px; 
    line-height: 2.0; 
    margin-bottom: 16px; 
    color: rgba(255, 255, 255, 0.85); 
    font-weight: 400; /* Lightened up body weight */
    letter-spacing: 0.04em; 
}
.beauty-desc-bold { 
    font-size: 16px; 
    font-weight: 700; /* Made slightly less heavy than headings */
    margin-bottom: 10px; 
    color: #FFFFFF; 
    letter-spacing: 0.03em; 
}
.mt-30 { margin-top: 30px; }

/* --- White Highlighted Badges (Fixed Visibility & Borders) --- */
.beauty-highlight-price { 
    background-color: #FFFFFF !important; 
    display: inline-flex; 
    align-items: baseline;
    padding: 6px 14px; 
    border-radius: 0px; 
    margin: 4px 0 0 0;
}
/* Explicit color enforcement to bypass parent overrides */
.beauty-highlight-price .price-num { 
    color: #E6005C !important; 
    font-size: 32px; 
    font-weight: 900; 
    letter-spacing: -0.02em;
    line-height: 1;
    margin-right: 4px;
}
.beauty-highlight-price .price-text-pink { 
    color: #E6005C !important; 
    font-size: 16px; 
    font-weight: 800; 
    line-height: 1;
}

/* Inline Surprise Block Fixes */
.beauty-surprise-wrapper {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.beauty-highlight-surprise { 
    background-color: #FFFFFF !important; 
    color: #E6005C !important; 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 0px; 
    font-size: 16px; 
    font-weight: 900; 
    letter-spacing: 0.03em; 
    line-height: 1.2;
}
.surprise-dark-text {
    color: #FFFFFF; /* Text after the box stays white on dark bg */
    font-size: 16px;
    font-weight: 700;
    margin-left: 6px;
}



/* --- Global Layout Base --- */
.beauty-point-section {
  position: relative;
  padding: 20px 0px 10px 0px; /* Reset horizontal padding to let images touch edges */
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  box-sizing: border-box;
  width: 100%;
}

.beauty-point-container {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.beauty-point-container2 {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

/* Structural Layout Variations */
.beauty-point-left {
  width: 60%;
  display: flex;
  flex-direction: column;
  padding-left: 12px; /* Pad text content safely away from border */
  box-sizing: border-box;
}

.beauty-point-right {
  width: 40%;
}

.beauty-point-right img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Reverse Mode Adjustments (Sections 2 & 4) */
.beauty-point-section.direction-reverse .beauty-point-container {
  flex-direction: row-reverse;
}

.beauty-point-section.direction-reverse .beauty-point-left {
  padding-left: 0;
  padding-right: 12px; /* Adjust spacing when text sits on the right side */
  align-items: flex-end;
  text-align: right;
}

.beauty-point-section.direction-reverse .point-heading {
  align-items: flex-end;
}

/* --- Color Theme Variations --- */
.theme-pink { background-color: #fc4b83; color: #ffffff; }
.theme-deep-pink { background-color: #E6005C; color: #ffffff; }
.theme-purple { background-color: #7D61C7; color: #ffffff; }

/* Section 4 Custom White Background Styling */
.theme-white { background-color: #ffffff; color: #C40645; }
.theme-white .beauty-point-left { color: #C40645; }
.theme-white .beauty-point-scroll-view { color: #C40645; }

/* --- Typography System --- */
.point-tag {
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  font-size: 16px;
}

.point-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 25px 0 30px 0;
  gap: 16px;
}

.point-heading .line-small {
  font-weight: 500; 
  letter-spacing: 2px;
  font-size: 22px; 
  white-space: nowrap;
}

.point-heading .line-large {
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
  font-size: 24px;
}

/* Underline Accents */
.point-heading .underline {
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 8px;
  display: inline-block;
}
.theme-white .point-heading .underline {
  border-bottom: 2px solid rgba(196, 6, 69, 0.3);
}

/* --- Accordion Interactions --- */
.scroll-arrow-btn {
  text-align: right;
  margin: 15px 15px 0 0;
  cursor: pointer;
}

.point-icon-close { display: none; }
.point-icon-down { display: inline-block; }

/* Global Toggle Framework across all shared base sections */
.beauty-point-section.is-open .point-icon-close { display: inline-block; }
.beauty-point-section.is-open .point-icon-down { display: none; }

.beauty-point-scroll-view {
  font-size: 14px;
  line-height: 2.2;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-view-inner {
  padding: 10px 15px 20px 15px;
}