/* --- 変数と基本設定 --- */
:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-red: #ff0000;
    --color-gray: #1a1a1a;
    --color-light-gray: #f8f8f8;
    --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 共通クラス */
.text-white {
    color: var(--color-white) !important;
}

.bg-black {
    background-color: var(--color-black);
}

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

.red-dot {
    color: var(--color-red);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
}

/* --- ヘッダー --- */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-link:hover .logo-img {
    opacity: 0.8;
}

.nav a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 14px;
    font-weight: bold;
    margin-left: 40px;
    text-transform: uppercase;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: width 0.3s ease;
}

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

/* ハンバーガーボタン */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 11px;
}

.hamburger span:nth-child(3) {
    top: 22px;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- ヒーローセクション --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.08) 0%, rgba(255, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(40px, 7vw, 90px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 18px;
    color: #333;
    max-width: 500px;
}

/* --- アバウトセクション --- */
.section-title {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    padding: 60px;
    background-color: var(--color-light-gray);
    border-left: 3px solid var(--color-black);
}

.card h3 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.card p {
    font-size: 15px;
    line-height: 1.8;
}

/* --- 実績セクション --- */
.works-subtext {
    font-size: 13px;
    color: #888;
    margin-bottom: 40px;
}

.works-list {
    border-top: 1px solid #333;
}

.work-accordion {
    border-bottom: 1px solid #333;
}

.work-row {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 35px 0;
    background: none;
    border: none;
    color: var(--color-white);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease;
}

.work-row:hover {
    color: var(--color-red);
}

.work-num {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-right: 40px;
}

.work-name {
    font-size: 22px;
    flex-grow: 1;
    font-weight: bold;
}

.work-arrow {
    font-size: 28px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.work-accordion.is-open .work-arrow {
    transform: rotate(45deg);
    color: var(--color-red);
}

.work-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.work-accordion.is-open .work-detail {
    max-height: 500px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.work-detail-inner {
    padding: 0 0 30px 60px;
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
}

.work-detail-inner p {
    margin-bottom: 10px;
}

/* --- お問い合わせ --- */
.contact-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: #444;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.btn-inverse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
}

.btn-inverse:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.contact-email-note {
    font-size: 15px;
    color: #777;
}

.contact-email-note a {
    color: var(--color-black);
    font-weight: bold;
    text-decoration: none;
}

.contact-email-note a:hover {
    color: var(--color-red);
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 40px 0;
    background-color: var(--color-black);
    color: #666;
    font-size: 12px;
}

/* --- アニメーション用クラス --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- スマホレスポンシブスタイル (768px以下) --- */
@media (max-width: 768px) {
    .section-container {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    .hamburger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
    }

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

    .nav a {
        margin-left: 0;
        font-size: 24px;
    }

    .card {
        padding: 30px;
    }

    .work-row {
        flex-direction: row;
        align-items: center;
    }

    .work-num {
        margin-right: 20px;
    }

    .work-name {
        font-size: 18px;
    }

    .work-detail-inner {
        padding: 0 0 20px 0;
    }

    .btn-inverse {
        width: 100%;
    }
}