* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Mono', monospace;
}

:root {
    --text-color: #000000;
    --bg-color: #ffffff;
    --bad-color: #ff0000;
    --good-color: #00aa00;
    --subtle-color: #555;
    --meta-color: #aaa;
    --sakura-pink: #FFB7C5;
    --sakura-dark: #FF8BA7;
    --accent-gray: #f8f8f8;
    --transition: all 0.3s ease;
    --number-color: #555;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: -0.02em;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 5rem);
    font-weight: 400;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2vh;
    margin-bottom: 10vh;
    line-height: 1.1;
}

.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sakura-petal {
    position: absolute;
    background: var(--sakura-pink);
    border-radius: 150% 0 150% 0;
    animation: falling linear forwards;
    transform-origin: center;
}

@keyframes falling {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-align: left;
}

.logo-jp {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.logo-en {
    display: block;
    font-size: 0.8rem;
    color: var(--subtle-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.desktop-nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.desktop-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.desktop-nav a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
    display: inline-block;
}

.hamburger-inner {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease-out;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: transform 0.2s ease-out;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

.hamburger-menu.active .hamburger-inner {
    background-color: transparent;
}

.hamburger-menu.active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.mobile-menu.active .mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-list li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-list li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-list li:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu-list a {
    display: block;
    font-size: 24px;
    color: var(--text-color);
    text-decoration: none;
    padding: 20px;
    transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
    color: var(--sakura-pink);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    margin-bottom: 2rem;
    border-bottom: none;
}

.hero-jp {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-en {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--subtle-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--subtle-color);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.number {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.6;
    color: var(--number-color);
}

h2 {
    font-size: clamp(1.2rem, 1vw + 1rem, 1.8rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.portfolio {
    padding: 8rem 0;
    background: var(--accent-gray);
}

.portfolio h1 {
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.portfolio-intro {
    text-align: center;
    color: var(--subtle-color);
    font-size: 1.1rem;
    margin-bottom: 6rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: var(--bg-color);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.portfolio-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.portfolio-item h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

.tag {
    background: var(--text-color);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

.portfolio-item h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--subtle-color);
}

.portfolio-item p {
    color: var(--subtle-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.features span {
    background: rgba(0, 0, 0, 0.03);
    color: var(--subtle-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.features span:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.product-cta {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background: var(--text-color);
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.7rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
}

.btn-link:hover {
    border-bottom-color: var(--text-color);
}

.coming-soon {
    color: var(--subtle-color);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.product-details {
    background-color: var(--bg-color);
    padding: 6rem 0;
}

.product-detail-container {
    background: var(--accent-gray);
    border-radius: 8px;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-detail-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-content {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
}

.product-description {
    flex: 1;
}

.product-description p {
    color: var(--subtle-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list h4 {
    margin-bottom: 1rem;
    color: var(--subtle-color);
    font-weight: normal;
}

.message {
    position: relative;
    padding: clamp(10px, 1.5vh, 20px) clamp(10px, 1vw, 15px);
    border-left: 1px solid var(--text-color);
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 1vw, 1rem);
    word-break: break-word;
}

.message.good:hover,
.message.good:focus {
    background-color: rgba(0, 0, 0, 0.02);
}

.message ul {
    list-style-type: none;
    padding-left: 0;
}

.message li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.message li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

.contact {
    padding: 8rem 0;
    text-align: center;
    background: var(--accent-gray);
}

.contact h1 {
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.contact p {
    color: var(--subtle-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--subtle-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    transition: border-color 0.3s ease;
}

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

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

/* Add these article-specific styles to your existing styles.css */

/* Article-specific styles */
.article-content {
    padding: 8rem 0 4rem 0;
    min-height: 60vh;
}

.article-hero {
    padding: 8rem 0 4rem 0;
    text-align: center;
    background: var(--accent-gray);
}

.article-hero h1 {
    margin-bottom: 2rem;
    border-bottom: none;
}

.article-hero p {
    color: var(--subtle-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.back-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--sakura-dark);
}

.article-date {
    color: var(--meta-color);
    font-size: 0.9rem;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    border-bottom: none;
    line-height: 1.2;
}

.article-intro {
    color: var(--subtle-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 400;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
}

.article-quote {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--accent-gray);
    border-left: 3px solid var(--sakura-pink);
}

.article-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.article-quote cite {
    color: var(--subtle-color);
    font-size: 0.9rem;
}

.article-image {
    margin: 2.5rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-image figcaption {
    margin-top: 1rem;
    color: var(--subtle-color);
    font-size: 0.9rem;
    font-style: italic;
}

.article-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-list li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-share {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--text-color);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--sakura-dark);
    transform: translateY(-2px);
}

.more-articles {
    padding: 4rem 0;
    background: var(--bg-color);
}

.more-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 400;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.articles-grid-small {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.article-card {
    background: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.article-card .article-meta {
    margin-bottom: 1rem;
}

.article-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-card p {
    color: var(--subtle-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.article-link:hover {
    color: var(--sakura-dark);
}

.articles {
    padding: 4rem 0;
}

.loader {
    text-align: center;
    color: var(--subtle-color);
    padding: 3rem;
    font-size: 1.1rem;
}

.error {
    text-align: center;
    color: var(--bad-color);
    padding: 2rem;
}

.error p {
    margin-bottom: 1rem;
}

/* Mobile responsiveness for articles */
@media (max-width: 768px) {
    .article-content {
        padding: 6rem 0 2rem 0;
    }
    
    .article-hero {
        padding: 6rem 0 2rem 0;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-body {
        padding: 0 1rem;
    }
    
    .article-quote {
        margin: 1.5rem -1rem;
        padding: 1.5rem 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-body p {
        font-size: 0.95rem;
    }
    
    .social-share {
        justify-content: center;
    }
}

.contact-btn {
    display: inline-block;
    background: var(--text-color);
    color: white;
    border: none;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
}

.contact-btn:hover {
    background: #333;
    transform: translateY(-3px);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-status.success {
    color: var(--good-color);
}

.form-status.error {
    color: var(--bad-color);
}

footer {
    padding: 4rem 0;
    background: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-content .logo-jp {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.footer-content p {
    color: var(--subtle-color);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .portfolio-item {
        padding: 2.5rem;
    }
}

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

    .hamburger-menu {
        display: block;
    }

    .portfolio-item {
        padding: 2rem;
    }
    
    .portfolio-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .product-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .product-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .contact-btn {
        width: 100%;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-header .tag {
        margin-top: 0.5rem;
    }
}

.message:focus {
    outline: 1px dashed #999;
    outline-offset: 2px;
}
