/* ============================================
   TrendBase.Web — Main Stylesheet
   Redesigned for: 30-40代女性ターゲット
   Theme: 白ベース × 柔らかいパステル × 温かみ
   ============================================ */

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

:root {
    /* Primary: 柔らかいコーラルピンク */
    --primary: #E8786F;
    --primary-dark: #D4635A;
    --primary-light: #F4A69E;
    --primary-pale: #FFF0EE;

    /* Accent: ナチュラルグリーン（信頼感） */
    --accent-green: #6BBF8A;
    --accent-green-dark: #52A672;
    --accent-green-pale: #E8F5EC;

    /* Sub: 温かみのあるゴールド */
    --accent-gold: #D4A574;
    --accent-gold-pale: #FFF5EB;

    /* Water theme: 清潔感のあるブルー */
    --water-blue: #5B9BD5;
    --water-blue-dark: #4A88C2;
    --water-blue-pale: #EBF3FC;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-cream: #FFFBF7;
    --bg-light: #FBF8F5;
    --bg-section: #F7F3EF;
    --bg-card: #FFFFFF;

    /* Text */
    --text-primary: #3D3232;
    --text-secondary: #6B5E5E;
    --text-muted: #9B8E8E;
    --text-light: #FFFFFF;

    /* Borders */
    --border: #EDE6E0;
    --border-hover: #D4C8C0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(139, 109, 92, 0.08);
    --shadow-md: 0 8px 24px rgba(139, 109, 92, 0.1);
    --shadow-lg: 0 16px 40px rgba(139, 109, 92, 0.12);
    --shadow-card: 0 4px 16px rgba(139, 109, 92, 0.06);
    --shadow-hover: 0 8px 30px rgba(232, 120, 111, 0.15);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .pc-only { display: inline; }
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.3rem;
}

.logo-dot {
    color: var(--primary);
}

.nav-desktop {
    display: none;
    gap: 28px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
}

.nav-mobile.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .hamburger { display: none; }
    .nav-mobile { display: none !important; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(232, 120, 111, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 120, 111, 0.35);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), #E8956F);
    color: white;
    font-size: 1rem;
    padding: 16px 40px;
    box-shadow: 0 4px 20px rgba(232, 120, 111, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 120, 111, 0.4);
}

.btn-cta-water {
    background: linear-gradient(135deg, var(--water-blue), #5BB5D5);
    box-shadow: 0 4px 20px rgba(91, 155, 213, 0.25);
}

.btn-cta-water:hover {
    box-shadow: 0 8px 30px rgba(91, 155, 213, 0.35);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.08rem;
}

.btn-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 20px rgba(232, 120, 111, 0.3); }
    50% { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232, 120, 111, 0.4); }
}

.btn-cta-water.btn-pulse {
    animation: pulseWater 2.5s ease-in-out infinite;
}

@keyframes pulseWater {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 20px rgba(91, 155, 213, 0.25); }
    50% { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91, 155, 213, 0.35); }
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-cream) 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-pale);
    top: -80px;
    right: -80px;
    opacity: 0.6;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-green-pale);
    bottom: -60px;
    left: -80px;
    opacity: 0.5;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-gold-pale);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-pale);
    border: 1px solid rgba(232, 120, 111, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(1.7rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.hero-highlight {
    color: var(--primary);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(232, 120, 111, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.9;
}

.hero-cta {
    margin-bottom: 16px;
}

/* --- Section Titles --- */
.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 44px;
}

/* --- Categories --- */
.categories {
    padding: 80px 0;
    background: var(--bg-light);
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.category-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition);
}

.card-gene::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.card-water::before {
    background: linear-gradient(90deg, var(--water-blue), #7EC8E3);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.card-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.card-gene .card-badge {
    background: var(--primary-pale);
    color: var(--primary);
}

.card-water .card-badge {
    background: var(--water-blue-pale);
    color: var(--water-blue);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.card-features {
    list-style: none;
    margin-bottom: 20px;
}

.card-features li {
    font-size: 0.83rem;
    color: var(--text-secondary);
    padding: 3px 0;
    line-height: 1.6;
}

.card-cta {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    transition: var(--transition);
}

.card-water .card-cta {
    color: var(--water-blue);
}

.category-card:hover .card-cta {
    color: var(--primary-dark);
}

/* --- Trust --- */
.trust {
    padding: 80px 0;
    background: var(--bg-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-item {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.trust-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.trust-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
    padding: 48px 0 32px;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-ad-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- Hero Image --- */
.hero-image {
    margin: 40px auto 0;
    max-width: 320px;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- Numbers Section --- */
.numbers {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.number-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    font-family: 'Inter', var(--font-sans);
    line-height: 1.2;
}

.number-unit {
    font-size: 0.5em;
    font-weight: 700;
}

.number-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

/* --- Card Image --- */
.card-image {
    margin: -36px -28px 24px -28px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    height: 200px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Why Section --- */
.why-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
}

.why-text {
    margin-bottom: 32px;
}

.why-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.9;
}

.why-text strong {
    color: var(--text-primary);
}

.why-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .why-comparison { grid-template-columns: repeat(2, 1fr); }
}

.comparison-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.comparison-bad {
    background: #FFF5F5;
    border-color: rgba(232, 120, 111, 0.2);
}

.comparison-good {
    background: var(--accent-green-pale);
    border-color: rgba(107, 191, 138, 0.2);
}

.comparison-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 8px;
    line-height: 1.6;
}

/* --- PR Label --- */
.pr-label {
    position: fixed;
    top: 68px;
    right: 16px;
    z-index: 999;
    padding: 3px 12px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.highlight-col {
    background: var(--primary-pale) !important;
    color: var(--primary-dark) !important;
    font-weight: 600;
}

.highlight-col-water {
    background: var(--water-blue-pale) !important;
    color: var(--water-blue-dark) !important;
    font-weight: 600;
}

/* --- LP Hero Image --- */
.lp-hero-image {
    margin: 32px auto 36px;
    max-width: 380px;
}

.lp-hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- Steps Image --- */
.steps-image {
    text-align: center;
    margin-bottom: 32px;
}

.steps-img {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-md);
}

/* --- Gene Type Advice --- */
.gene-type-advice {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.gene-type-advice strong {
    color: var(--primary);
    font-size: 0.75rem;
}

/* --- Why Gene / Water Section --- */
.lp-why-gene,
.lp-why-water {
    background: var(--bg-white) !important;
}

.why-gene-content,
.why-water-content {
    max-width: 700px;
    margin: 0 auto;
}

.why-gene-text p,
.why-water-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.why-gene-text strong,
.why-water-text strong {
    color: var(--text-primary);
}

/* Water section with image */
.why-water-content {
    max-width: 900px;
}

@media (min-width: 768px) {
    .why-water-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
}

.why-water-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .why-water-img { margin-bottom: 0; }
}

/* --- Final CTA Image --- */
.final-cta-img {
    max-width: 200px;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}
