/* CSS Variables */
:root {
    --color-primary: #8B4513;
    --color-secondary: #e4ccd5;
    --color-accent: #c80540d1;
        --color-dark: #2C2C2C;
    --color-light: #FAF8F5;
    --color-cream: #F5F1EB;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-jp: 'Noto Serif JP', serif;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-jp {
    font-family: var(--font-jp);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition);
}

.lang-switch {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.lang-switch a {
    opacity: 0.5;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-light) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero[style*="background-image"] {
    background-blend-mode: normal;
    background-color: rgba(250, 248, 245, 0.85);
}

.hero::before {
    content: '風呂敷';
    position: absolute;
    font-family: var(--font-jp);
    font-size: 30vw;
    opacity: 0.03;
    color: var(--color-dark);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(250, 248, 245, 0.9);
    padding: 3rem 4rem;
    border-radius: 2px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    letter-spacing: 0.2em;
}

.hero-credit {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    z-index: 2;
}

/* Product Showcase */
.product-showcase {
    padding: 4rem 0;
    background: var(--color-light);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.img-credit {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.4rem;
}

/* Furoshiki Showcase (for content pages) */
.furoshiki-showcase {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.furoshiki-showcase .showcase-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.furoshiki-showcase img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 2px;
}

.furoshiki-showcase .showcase-credit {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Inline images for standard content pages */
.content-image {
    max-width: 900px;
    margin: 2rem auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.content-image img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 2px;
}

.content-image--left img {
    margin-left: 0;
    margin-right: auto;
}

.content-image--center img {
    margin-left: auto;
    margin-right: auto;
}

.content-image--right img {
    margin-left: auto;
    margin-right: 0;
}

.content-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Workshop Showcase (for content pages) */
.workshop-showcase {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.workshop-showcase .showcase-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.workshop-showcase img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 2px;
}

.workshop-showcase .showcase-credit {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Sections */
section {
    padding: 6rem 0;
}

.intro {
    background: var(--color-cream);
}

.intro-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.intro p {
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-dark);
    color: var(--color-light);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-dark);
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--color-dark);
}

.btn-light {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}

.btn-light:hover {
    background: transparent;
    color: var(--color-light);
}

/* Features */
.features {
    background: var(--color-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-family: var(--font-jp);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.feature-card .feature-icon a {
    font-family: var(--font-jp);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.feature-card a {
    color: var(--color-accent);
    font-size: 0.9rem;
}

.feature-card a:hover {
    color: var(--color-primary);
}

/* CTA */
.cta {
    background: var(--color-dark);
    color: var(--color-light);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--color-cream);
    padding: 3rem 0;
}

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

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-jp {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Page Header */
.page-header {
    padding: 10rem 0 2rem;
    text-align: center;
    background: var(--color-cream);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 2rem 0;
}

.content-section:nth-child(even) {
    background: var(--color-cream);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.text-content p {
    margin-bottom: 1.5rem;
}

.signature {
    margin-top: 1.5rem;
    text-align: right;
    line-height: 1.25;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--color-secondary);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-jp);
    font-size: 3rem;
    color: var(--color-light);
}

.team-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--color-light);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* Upcoming Workshop Cards */
.upcoming-card {
    border-top: 3px solid var(--color-accent);
    display: flex;
    flex-direction: column;
}

.upcoming-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.upcoming-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    /* color: var(--color-primary); */
}

.upcoming-type {
    font-size: 0.72rem;
    background: var(--color-cream);
    color: var(--color-text-light);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.upcoming-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.upcoming-card-row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem;
    align-items: start;
    font-size: 0.9rem;
}

.card-label {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.15rem;
    line-height: 1.5;
}

.time-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.time-list li {
    /* font-family: var(--font-serif); */
    font-size: 0.9rem;
    padding-left: 1rem;
    position: relative;
}

.time-list li::before {
    content: "◆";
    font-size: 0.45rem;
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 0.35em;
}

.reg-badge {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.reg-required {
    background: #fde8ec;
    color: #b01030;
}

.reg-not-required {
    background: #e8f5e9;
    color: #2e7d32;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.card-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Workshop Table */
.workshop-table,
.text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.workshop-table th,
.workshop-table td,
.text-content th,
.text-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.workshop-table th,
.text-content th {
    font-family: var(--font-serif);
    font-weight: 500;
    background: var(--color-cream);
}

.workshop-table tr:hover,
.text-content tr:hover {
    background: var(--color-cream);
}

/* Shop Links */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.shop-card {
    background: var(--color-light);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.shop-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.shop-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.shop-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.shop-card .link {
    color: var(--color-accent);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery-item {
    aspect-ratio: 4/3;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-jp);
    font-size: 2rem;
    color: var(--color-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.gallery-item-img {
    background: none;
}

.gallery-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-img:hover img {
    transform: scale(1.08);
}

.gallery-item-img .img-credit {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.2rem 0.5rem;
    font-family: var(--font-sans);
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--color-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

/* Impresszum & Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* Responsive — Navigation (tablet + mobile) */
@media (max-width: 992px) {
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header-inner {
        padding: 1rem;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .main-nav {
        flex: none;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        padding-top: 5rem;
        background: var(--color-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-list.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-list a {
        font-size: 1.2rem;
    }

    .lang-switch {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        background: var(--color-light);
        padding: 0.5rem 1rem;
        border-radius: 2px;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive — Layout (mobile) */
@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .page-header {
        padding: 8rem 0 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive — Small phones */
.analytics-consent {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 2000;
    padding: 1.25rem 1.5rem;
    background: var(--color-light);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.analytics-consent-content {
    max-width: 960px;
    margin: 0 auto;
}

.analytics-consent h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.analytics-consent p {
    margin: 0;
    line-height: 1.5;
}

.analytics-consent-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.analytics-consent-decline {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.analytics-consent-settings {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .page-header {
        padding: 6rem 0 2rem;
    }

    .hero-content {
        padding: 1.25rem 1rem;
        margin: 0 0.75rem;
        width: calc(100% - 1.5rem);
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .feature-grid {
        gap: 1.5rem;
    }

    .info-grid {
        gap: 1rem;
    }

    .team-grid {
        gap: 2rem;
    }
}
