:root {
    --bg: #E9E0D6;
    --surface: #F7F2EC;
    --text: #3B3B3B;
    --muted: #8A8178;
    --accent: #A79A8A;
    --border: rgba(0,0,0,0.06);
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --font-heading: "Playfair Display", "Cormorant Garamond", serif;
    --font-body: "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
}

header nav {
    display: flex;
    gap: 20px;
    color: var(--text);
}

/* Hero */
.hero {
    padding-top: 80px;
    padding-bottom: 40px;
    text-align: center;
}

.hero-image-container {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-image {
    width: 100%;
    border-radius: 0; /* PDF style seems to be full bleed or large rect */
    /* Let's keep it simple as spec says "Top Hero" - maybe card like? Spec says 1120px max width */
    max-height: 600px;
    object-fit: cover;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-text-overlay h1 {
    font-family: var(--font-heading);
    font-size: 64px; /* Spec 48-64px */
    color: #5A4D41; /* Slightly darker than text for contrast on image if needed, or stick to theme */
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

/* Worldview Cards */
.worldview-cards {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.worldview-card {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

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

.card-content {
    padding: 24px;
    text-align: center;
}

.card-content p {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text);
    line-height: 1.6;
}

/* Search Section - The Tool */
.search-section {
    background: #fff; /* Slight standout */
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 80px;
    box-shadow: var(--shadow);
    text-align: center;
}

.search-section h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 32px;
}

.search-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

input[type="text"] {
    flex: 1;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: var(--accent);
}

button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

button:hover {
    opacity: 0.9;
}

.suggest-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.chip {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    font-size: 14px;
}

.chip:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
}

/* Search Results */
.hidden {
    display: none;
}

.result-header {
    margin-bottom: 32px;
}

.result-header h3 {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 8px;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    text-align: left;
}

.item-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-4px);
}

.item-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 18px;
}

.item-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.item-tags span {
    display: inline-block;
    background: #EAEAEA;
    color: #666;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 4px;
}

.item-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
}

.external-search-links p {
    margin-bottom: 12px;
    color: var(--muted);
}

.link-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-external {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.btn-external:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* About Section */
.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    color: #5A4D41; /* brownish */
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
}

.about-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 32px;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Circle */
}

.about-logo-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 40px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-text p {
    margin-bottom: 16px;
    font-size: 15px;
}

/* Category Section */
.category-section {
    margin-bottom: 80px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    cursor: pointer;
    border-radius: 4px; /* PDF spec seems squareish for these small ones? or consistent? Spec says 16px radius. */
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(167, 154, 138, 0.9); /* Accent color semi-transparent */
    color: #fff;
    padding: 8px;
    font-size: 12px;
    text-align: center;
    border-radius: 8px;
}

/* Items Section (Bottom) */
.items-section {
    margin-bottom: 100px;
    text-align: center;
}

.placeholder-text {
    color: var(--muted);
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--muted);
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 12px;
}

.instagram-icon {
    display: inline-block;
    color: #E4405F;
    margin-bottom: 24px;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    margin: 0 12px;
}

.copyright {
    margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text-overlay h1 {
        font-size: 40px;
    }
}
