@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
    --bg: #faf9f7;
    --surface: #ffffff;
    --text: #171717;
    --muted: #737373;
    --line: #e5e5e5;
    --accent: #8b6fd7;
    --accent-hover: #7559c9;
    --lavender: #f5f0ff;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 12px 40px rgba(23, 23, 23, 0.06);
    --container: min(1120px, calc(100% - 40px));
    --primary: var(--accent);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    text-wrap: pretty;
}

html[lang="ja"] body {
    font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-break: strict;
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-line-break: after-white-space;
}

html[lang="ja"] :where(p, li, .lead, .page-lead, label, .checkbox-field) {
    text-wrap: pretty;
    hanging-punctuation: allow-end;
}

:where(h1, h2, h3, .projects-title) {
    text-wrap: balance;
    overflow-wrap: break-word;
}

:where(.hero-content, .product-card-body, .detail-panel, .section-head, .footer-grid > *) {
    min-width: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: var(--container);
    margin-inline: auto;
}

#main {
    min-height: 60vh;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand span {
    color: var(--muted);
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.desktop-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s ease;
}

.desktop-nav a.active,
.desktop-nav a:hover {
    color: var(--text);
}

.desktop-nav a.active {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.lang-switch a {
    color: var(--muted);
    padding: 4px 6px;
    border-radius: 6px;
}

.lang-switch a.is-active {
    color: var(--accent);
    background: var(--lavender);
}

.lang-switch .sep {
    color: var(--line);
}

.btn-shop-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-shop-header:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.header-shop-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
}

.header-shop-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.header-shop-icon--mobile {
    display: none;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 12px 4px;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}

.mobile-nav .btn-shop-header {
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .header-shop-icon--mobile {
        display: inline-grid;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.btn.small {
    padding: 10px 16px;
    font-size: 0.88rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-secondary,
.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover,
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px 0 56px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    font-weight: 700;
}

.hero .lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 34rem;
    margin: 0;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--line);
}

.hero-image img {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 32px 0 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        aspect-ratio: 16 / 5.5;
    }
}

/* Sections */
.section {
    padding: 56px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: -0.02em;
}

.section-head a {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.92rem;
}

.page-lead {
    color: var(--muted);
    max-width: 42rem;
    margin: 0 0 24px;
}

.page-section {
    padding-top: 32px;
    padding-bottom: 64px;
}

.projects-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

/* Product grid */
.product-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1024px) {
    .product-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .product-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-card-thumb {
    position: relative;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    background: #eee;
}

.product-card-status {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    z-index: 2;
    pointer-events: none;
}

.product-card-status .status-pill {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.product-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-thumb img {
    transform: scale(1.03);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.product-card-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.product-card-meta {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0 0 6px;
}

.product-card-meta--last {
    margin-bottom: 0;
}

.product-card-price {
    font-weight: 600;
    margin: 0 0 10px;
}

.product-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    min-height: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.product-card-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.25);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--surface);
}

/* Lavender CTA band */
.section-lavender {
    background: var(--lavender);
    padding: 64px 0;
    margin: 24px 0;
}

.section-lavender-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.section-lavender h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.section-lavender p {
    color: var(--muted);
    margin: 0 0 20px;
}

.section-lavender-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-lavender-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 900px) {
    .section-lavender-inner {
        grid-template-columns: 1fr;
    }
}

/* About teaser */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-teaser {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 48px 0 32px;
    margin-top: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-grid h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
}

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

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Tags / status */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.status-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.status-available {
    background: #00a651;
    border-color: #00a651;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 7px 11px 6px 9px;
    line-height: 1.2;
}

.status-sold {
    background: #f3f4f6;
    color: #4b5563;
}

.status-made_to_order {
    background: var(--lavender);
    border-color: #ddd6fe;
    color: var(--accent-hover);
}

.status-showcase {
    background: var(--surface);
    color: var(--muted);
}

/* Forms */
.form-stack {
    display: grid;
    gap: 18px;
    max-width: 640px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.form-field .hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.82rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    background: var(--surface);
}

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

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #dc2626;
}

.form-error {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 4px;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.checkbox-field {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--muted);
}

.checkbox-field input {
    margin-top: 4px;
}

.process-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 32px 0;
    display: grid;
    gap: 16px;
}

.process-list li {
    padding-left: 48px;
    position: relative;
}

.process-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lavender);
    color: var(--accent);
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.social-list a {
    font-weight: 600;
    color: var(--accent);
}
