/*
Theme Name: Nakore Lab
Theme URI: https://nakore-lab.com
Author: Keita Memida
Description: 中折れ・性欲・自信のコンディションラボ「Nakore Lab」の公式テーマ
Version: 1.0.0
Text Domain: nakore-lab
*/

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-heading: #1d1d1f;
    --color-text: #4b5563; /* 読みやすいグレー */
    --color-text-light: #86868b; /* メタ情報用 */
    --color-accent: #0066cc; /* Apple blue link color */
    --color-border: #d2d2d7;
    --font-family-base: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --section-spacing: 160px; /* 120px -> 160px に増量 */
}

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

html {
    scroll-padding-top: 120px;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* ロゴが2行になるため上揃え */
    flex-wrap: nowrap;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9); /* 0.8 -> 0.9 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding 0.3s ease;
}

.nav-logo-group {
    display: flex;
    flex-direction: column;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-heading);
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1.2;
}

.nav-logo img {
    max-height: 32px;
    width: auto;
    display: block;
}

.nav-tagline {
    font-size: 0.7rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding-left: 0;
    flex-wrap: nowrap;
}

.nav-links-container {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
    color: var(--color-accent);
}

/* Sections General */
.section {
    position: relative;
    width: 100%;
    padding: var(--section-spacing) 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 720px; /* 読み物用 */
}

.gray-bg {
    background-color: var(--color-bg-alt);
}

/* Typography Helpers */
h1, h2, h3, h4 {
    color: var(--color-heading);
    margin-bottom: 0.5em;
    line-height: 1.1;
}

.section-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 600;
    display: block;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.section-text {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

/* =========================================
   Page: TOP (Hero & Components)
   ========================================= */
.hero-section {
    height: 100vh;
    min-height: 700px;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.highlight-item {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.highlight-number {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.highlight-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   Page: Experiment Detail (Article)
   ========================================= */
.exp-hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
    background-color: var(--color-bg);
}

.exp-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: inline-block;
}

.exp-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    color: var(--color-heading);
}

.exp-meta-grid {
    display: inline-grid;
    grid-template-columns: repeat(4, auto);
    gap: 40px;
    margin-bottom: 50px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 40px;
}

.exp-meta-item {
    text-align: left;
}

.exp-meta-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.exp-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-heading);
}

.exp-lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 760px;
    margin: 0 auto;
    font-weight: 500;
}

/* Content Blocks */
.exp-content-section {
    padding: 80px 0;
}

.exp-content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.exp-block {
    margin-bottom: 40px;
}

.exp-block h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-heading);
}

.exp-block p {
    font-size: 1.05rem;
    margin-bottom: 1.5em;
    color: var(--color-text);
    text-align: justify;
}

.exp-block ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}

.exp-block ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.exp-block ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Callout / Highlight Box in Article */
.exp-callout {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
}

.exp-callout h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.exp-callout p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Side/Bottom Navigation */
.exp-footer-nav {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-bg-alt);
    color: var(--color-heading);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: #e5e5ea;
}

/* =========================================
   Page: Experiments List (Catalog)
   ========================================= */
.catalog-hero {
    padding: 160px 20px 80px;
    text-align: center;
}

.catalog-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--color-heading);
}

.catalog-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.catalog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.catalog-filter {
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--color-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-filter:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.catalog-filter.is-active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    padding-bottom: 120px;
}

.catalog-item {
    display: block; /* Link wrapper */
    text-decoration: none;
    color: inherit;
    group: hover; /* for hover effects */
}

.catalog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog-item:hover .catalog-card {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.catalog-thumb-placeholder {
    width: 100%;
    height: 240px;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d1d1d6;
    font-weight: 800;
    text-transform: uppercase;
}

.catalog-thumb-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* モック用プレースホルダー色分け */
.thumb-1 { background-color: #e3f2fd; color: #bbdefb; }
.thumb-2 { background-color: #f3e5f5; color: #e1bee7; }
.thumb-3 { background-color: #e8f5e9; color: #c8e6c9; }

.catalog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.catalog-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.catalog-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.catalog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--color-heading);
}

.catalog-card-desc {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.catalog-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* =========================================
   Page: About
   ========================================= */
.about-hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
}

.about-intro {
    padding-bottom: 120px;
    text-align: center;
}

/* Owner Section */
.about-grid-owner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.owner-avatar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.owner-avatar-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-color: #e5e5ea; /* Apple gray */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.5rem;
}

.owner-avatar-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
}

.owner-profile h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.owner-meta {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.owner-meta li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.owner-meta-label {
    color: var(--color-text-light);
    font-weight: 600;
}

/* Policy Section */
.about-grid-policy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.policy-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.policy-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Future Section */
.future-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 600px;
    text-align: left;
}

.future-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-heading);
}

.future-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.future-note {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.future-content ul {
    list-style: none;
    padding-left: 0;
    margin: 40px auto 0;
    max-width: 600px;
}

.future-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.future-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* Footer */
.footer {
    padding: 60px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer-links {
    margin-top: 20px;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav li {
    margin: 0;
}

.footer a,
.footer-nav a {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* =========================================
   Page: Text/Disclaimer/Privacy/Contact
   ========================================= */
.text-page-hero {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}

.text-page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-heading);
}

.text-page-lead {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-content-section {
    padding: 60px 0;
    border-top: 1px solid #f0f0f0;
}

.text-content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-heading);
}

.text-content-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5em;
    text-align: justify;
}

/* Contact Form */
.contact-form-container {
    background: #ffffff;
    max-width: 640px;
    margin: 40px auto 80px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.02); optional */
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--color-heading);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #0055aa;
}

.btn-submit:active {
    transform: scale(0.98);
}

.contact-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 30px;
    text-align: center;
    line-height: 1.6;
}

.notice {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.notice.success {
    background-color: #e6f6ef;
    color: #1e5631;
}

.notice.error {
    background-color: #fdecea;
    color: #8a1c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section-heading { font-size: 2rem; }
    .exp-title { font-size: 2rem; }
    .exp-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100%;
    }
    .catalog-title { font-size: 2.5rem; }
    .nav-bar { padding: 15px 20px; }
    .nav-links { display: none; /* Simplified for mobile for now */ }

    .about-grid-owner, .about-grid-policy {
        grid-template-columns: 1fr;
    }
    .owner-avatar-placeholder {
        width: 200px;
        height: 200px;
    }

    /* Contact responsive */
    .contact-form-container {
        padding: 30px 20px;
        margin: 20px 20px 80px;
        width: auto;
    }
}
