@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
    --primary-text: #252525;
    --secondary-text: #505050;
    --background-gray: #f5f5f5;
    --border-gray: #e5e5e5; /* customGray equivalent */
    --hover-gray: #f7f7f7;
    --white: #ffffff;
    --max-width: 1024px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-text);
    line-height: 1.5;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px; /* px-4 */
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.hidden { display: none !important; }

/* --- Header & Nav --- */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: var(--white);
    border-bottom: 0.75px solid var(--border-gray);
}

nav {
    padding: 8px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

/* --- Dropdown Menu --- */
.dropdown-container {
    position: relative;
}

.menu-btn {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-text);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 192px; /* w-48 */
    background-color: var(--white);
    border: 0.75px solid var(--border-gray);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    z-index: 50;
    overflow: hidden;
    /* Animation state setup */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    pointer-events: none;
}

.dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    font-size: 0.875rem; /* text-sm */
    color: var(--secondary-text);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--hover-gray);
}

/* --- Cookie Bar --- */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-gray);
    color: var(--secondary-text);
    padding: 8px 0;
    z-index: 30;
    
    /* Animation setup */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.cookie-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-text {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
}

.cookie-link {
    text-decoration: underline;
    margin-left: 4px;
}

.cookie-close-btn {
    margin-right: 8px;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.cookie-icon-wrapper {
    border-radius: 9999px;
    border: 2px solid var(--secondary-text);
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-text);
    color: var(--white);
    text-align: center;
    margin-top: 96px; /* mt-24 */
    padding: 8px 0;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--hover-gray);
}

/* --- Page Specifics --- */
.main-layout {
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-wrapper {
    width: 90%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .content-wrapper {
        max-width: 65%;
    }
}

.section-container {
    margin-top: 32px;
    margin-bottom: 96px;
}

.hero-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-text);
}

.section-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-text);
}

.section-text {
    color: var(--secondary-text);
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 500;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.badge-img {
    height: 50px;
}

.feature-img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 32px;
    max-height: 784px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Privacy & Delete Specifics */
.policy-list {
    list-style-type: disc;
    padding-left: 24px;
    margin-top: 16px;
}
.policy-list li {
    margin-bottom: 16px;
}
.mb-large { margin-bottom: 30rem; }