@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --primary-color: #a3c1ad; /* Sage Green / 河童のエッセンスとしての水草の色 */
    --secondary-color: #e3efe8; /* 淡いグリーン */
    --accent-color: #d4b58e; /* ゴールド系のベージュ (上質さ) */
    --text-color: #4b534d; /* 墨色よりの深緑・グレー */
    --bg-color: #fcfcf9; /* 絵本の紙のような温かみのある白 */
    --white: #ffffff;
    
    --font-heading: 'Shippori Mincho', serif;
    --font-text: 'Zen Kaku Gothic New', sans-serif;
    
    --border-radius: 16px;
    --transition: 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-text);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-color);
}

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Header */
header {
    background-color: rgba(252, 252, 249, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    font-size: 1.1rem;
    position: relative;
}

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

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

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(163, 193, 173, 0.4);
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

.hero-content {
    text-align: center;
    background: rgba(252, 252, 249, 0.85);
    padding: 3rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(8px);
    max-width: 600px;
    margin: 0 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

.work-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 1.5rem;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(163, 193, 173, 0.15);
}

.work-img-wrapper {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.work-card img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.work-info {
    padding: 1.5rem;
}

.work-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.work-desc {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 1rem;
}

.work-link {
    font-family: var(--font-heading);
    color: var(--accent-color);
    border-bottom: 1px solid transparent;
}

.work-link:hover {
    border-bottom: 1px solid var(--accent-color);
}

/* About Layout */
.about-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

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

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 4rem 0 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .about-layout {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}
