@charset "UTF-8";

/* デザイン設定 (CSS Variables) */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --sub-text-color: #666666;
    --accent-color: #333333;
    --link-hover: #888888;

    --font-main: 'Helvetica Neue', 'Helvetica', 'Arial', 'Noto Sans JP', sans-serif;
    --font-eng: 'Oswald', sans-serif;

    --container-width: 1100px;
    --section-spacing: 120px;

    --header-height: 80px;
}

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

html {
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
}
a:hover {
    opacity: 0.7;
}

img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f0f0f0;
}

h1, h2, h3, p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding-bottom: var(--section-spacing); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-eng);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-color);
    display: inline-block;
}

.section-divider-wrap {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-divider {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    border: none;
    margin: 0;
}

.section-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 60px;
    height: 3px;
    background-color: var(--text-color);
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    height: var(--header-height);
    display: flex;
    align-items: center;
}
header.scrolled {
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    z-index: 100;
}

.logo img {
    background-color: transparent;
}

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

.nav-list li a {
    font-family: var(--font-eng);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    padding: 0;
    position: relative;
    z-index: 200;
}
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.work-item { display: block; }
.work-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}
.work-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}
.work-item:hover .work-img-wrap::after { background: rgba(0,0,0,0.05); }
.work-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}
.work-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.view-more-btn {
    display: block;
    width: fit-content;
    margin: 60px auto 0;
    padding: 12px 40px;
    border: 1px solid var(--text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.3s, color 0.3s;
}
.view-more-btn:hover {
    background: var(--text-color);
    color: #fff;
}

footer {
    background: #333333;
    padding: 60px 0;
    border-top: none;
    color: #ffffff;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 {
    font-size: 0.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.footer-links li a {
    color: #dddddd;
    transition: color 0.3s;
}
.footer-links li a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-col p {
    color: #cccccc !important;
}

.copyright {
    font-size: 0.75rem;
    color: #999999;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    padding: 20px;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-img {
    max-height: 85vh;
    max-width: 100%;
    width: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root { --section-spacing: 100px; }
    .container { padding: 0 40px; }
    .hamburger { display: none; }
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        display: block;
    }
    .nav-list {
        flex-direction: row;
        gap: 20px;
        text-align: left;
    }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    :root { --section-spacing: 80px; }
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 150;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; gap: 40px; text-align: center; }
    .nav-list li a { font-size: 1.5rem; }
    
    /* 修正箇所：footer-gridを分離し、2列に変更 */
    .works-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    
    .section-title { font-size: 1.8rem; }
}