﻿/* Shared base + header + button styles used across pages */
:root {
    --primary-pink: #ff69b4;
    --soft-pink: #ffb6d9;
    --pale-pink: #fff0f5;
    --text-dark: #4a3940;
    --text-gray: #888;
    --border-light: #e8e8e8;
    --white: #ffffff;
    --shadow: rgba(255, 105, 180, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
}

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

header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 0;
    gap: 24px;
}

.logo {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-pink);
    text-decoration: none;
    letter-spacing: 0.5px;
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* ===== Site Search ===== */
.nav-search {
    position: relative;
    flex-shrink: 0;
    margin-left: 20px;
}

/* Toggle icon button */
.nav-search-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    color: var(--text-gray);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-search-toggle:hover {
    color: var(--primary-pink);
    transform: scale(1.1);
}

/* Expanded search panel (overlay) */
.nav-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    z-index: 2000;
    animation: searchSlideIn 0.2s ease-out;
}
@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-search-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #bbb;
    pointer-events: none;
    line-height: 1;
}
.nav-search-input {
    width: 100%;
    padding: 12px 36px 12px 42px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}
.nav-search-input::placeholder {
    color: #bbb;
    font-size: 13px;
}
.nav-search-input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(255, 105, 180, 0.12);
}
.nav-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}
.nav-search-clear:hover {
    color: var(--primary-pink);
}

/* Dropdown */
.nav-search-dropdown {
    margin-top: 6px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}
.search-no-result {
    padding: 24px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f0f2;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover,
.search-result-item.is-active {
    background: var(--pale-pink);
}
.search-result-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 22px;
}
.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.search-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.search-result-brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-cat {
    font-size: 11px;
    color: var(--text-gray);
}

/* Search overlay backdrop */
.nav-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1999;
}
.nav-search-backdrop.is-visible {
    display: block;
}

@media (max-width: 640px) {
    .nav-search-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

.btn {
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-pink);
    color: var(--white);
}

.btn-primary:hover {
    background: #ff4da6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
    background: var(--pale-pink);
    transform: translateY(-2px);
}

/* Shared footer styles */
footer {
    background: var(--text-dark);
    color: #ddd;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--soft-pink);
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: #aaa;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--soft-pink);
    transform: translateY(-3px);
}

/* Article page styles */
body.article-page {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    line-height: 1.9;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
}

.article-page .hero {
    background: linear-gradient(135deg, #ffd6e8 0%, #fff0f6 100%);
    padding: 56px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-page .hero::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    top: -80px;
    right: -60px;
}

.article-page .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-pink);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.article-page .hero h1 {
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 14px;
}

.article-page .hero-meta {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    justify-content: center;
    gap: 18px;
}

.article-wrap {
    max-width: 780px;
    margin: -20px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 1;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(255, 92, 168, 0.1);
    padding: clamp(28px, 5vw, 48px);
}

.article-card p {
    margin-bottom: 20px;
    font-size: 15.5px;
    color: var(--text-dark);
}

.lead {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-pink);
    padding-left: 16px;
    margin-bottom: 32px;
    line-height: 1.95;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 44px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-pink);
    line-height: 1.5;
}

.section-title span {
    color: var(--primary-pink);
}

.sub-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-pink);
    line-height: 1.5;
}

.article-page .step-card {
    background: var(--pale-pink);
    border-radius: 10px;
    padding: 22px 24px;
    margin: 20px 0;
}

.step-num {
    display: inline-block;
    background: var(--primary-pink);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.article-page .step-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.article-page .step-card p {
    margin-bottom: 8px;
    font-size: 14.5px;
}

.article-page .product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    transition: box-shadow 0.25s;
}

.article-page .product-card:hover {
    box-shadow: 0 4px 24px rgba(255, 92, 168, 0.1);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.product-brand {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-price {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 2px;
}

.product-desc {
    font-size: 14.5px;
    margin-top: 10px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-block;
    background: var(--pale-pink);
    color: var(--primary-pink);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
}

.skin-box {
    background: linear-gradient(135deg, #fff5f9 0%, #fff0f6 100%);
    border: 1px dashed var(--primary-pink);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 14px;
}

.skin-box-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.skin-box p {
    font-size: 13.5px;
    margin-bottom: 0;
}

.point-box {
    background: var(--pale-pink);
    border-radius: 10px;
    padding: 22px 24px;
    margin: 24px 0;
}

.point-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.point-box p {
    font-size: 14.5px;
    margin-bottom: 6px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    font-size: 13.5px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--primary-pink);
    color: var(--white);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    font-size: 12.5px;
}

.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
    background: var(--pale-pink);
}

.callout {
    background: linear-gradient(135deg, #fff0f6 0%, #ffe8f2 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 32px 0;
    text-align: center;
}

.callout-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.callout h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.callout p {
    font-size: 14px;
    margin-bottom: 0;
}

.toc {
    background: var(--pale-pink);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px 28px;
    margin-bottom: 36px;
}

.toc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.toc ol {
    padding-left: 20px;
}

.toc li {
    font-size: 13.5px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.toc a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .article-card {
        padding: 24px 18px;
    }
    .comparison-table {
        font-size: 12px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }
    .article-page .product-card {
        padding: 20px 18px;
    }
}


