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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    /* bodyの背景を白に */
}

/* ===== Global/Common ===== */
.kv {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
}

.required {
    color: #FF4444;
    margin-left: 0.25rem;
}

.hint {
    color: #999;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn {
    appearance: none;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.btn-primary {
    background: #FF4444;
    color: #fff;
    border-color: #FF4444;
}

.btn-primary:hover {
    background: #ff5959;
    border-color: #ff5959;
}

/* canvasのコンテナ */
#three-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

canvas {
    display: block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
}

.logo {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    text-decoration: none;
}

.logo strong {
    font-weight: 700;
}

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

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FF4444;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.1);
    cursor: pointer;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: relative;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger:hover {
    border-color: #FF4444;
    background: rgba(255, 68, 68, 0.05);
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 1px;
    background: #1a1a1a;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger-line:nth-child(1) {
    top: 14px;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(3) {
    bottom: 14px;
}

.hamburger.active {
    transform: rotate(90deg);
    border-color: #FF4444;
    background: rgba(255, 68, 68, 0.1);
}

.hamburger.active .hamburger-line {
    background: #FF4444;
}

.hamburger.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0);
        z-index: 999;
        transition: background 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu-overlay.active {
        background: rgba(0, 0, 0, 0.5);
        pointer-events: all;
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 65vw);
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 250, 250, 0.97) 100%);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        flex-direction: column;
        gap: 0;
        padding: 6rem 0 2rem;
        box-shadow: -5px 0 40px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        pointer-events: none;
        border-left: 1px solid rgba(224, 224, 224, 0.8);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
        pointer-events: all;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        position: relative;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: #FF4444;
        transition: height 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-menu li:hover::before {
        height: 100%;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 1.2rem 2rem 1.2rem 2.5rem;
        font-size: 1.1rem;
        text-align: left;
        position: relative;
        overflow: hidden;
    }

    .nav-menu a::after {
        content: '→';
        position: absolute;
        right: 2rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        color: #FF4444;
        font-weight: 300;
    }

    .nav-menu a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu a:hover {
        background: rgba(255, 68, 68, 0.08);
        padding-left: 2.8rem;
    }

    .nav-menu a.active {
        color: #FF4444;
        font-weight: 400;
    }
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    /* ビューポートの高さに合わせる */
    position: relative;
    overflow: hidden;
    /* Canvasがはみ出さないように */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    /* 明るい背景に戻す */
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    /* Canvasの上に表示 */
}

.hero h1 {
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: #1a1a1a;
    /* 文字色を黒に戻す */
    min-height: 400px;
    /* 高さを調整 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* 高さを調整 */
}

.hero-title-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    /* GSAPで制御するため初期値を0に */
    visibility: hidden;
    /* GSAPで制御するため非表示に */
}

.hero-title-item.japanese {
    font-size: 2.5rem;
    font-weight: 600;
}

.hero-title-item.english {
    font-size: 2.8rem;
    font-weight: 500;
}

.hero-title-item.pictogram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title-item.pictogram img {
    width: 300px;
    /* 基準サイズを調整 (300px * 3倍 = 900px) */
    max-width: 90%;
    height: auto;
}

.accent {
    color: #FF4444;
}

.hero p {
    font-size: 1.1rem;
    color: #666666;
    /* 文字色をグレーに戻す */
    max-width: 600px;
    margin: 0 auto 3rem;
    letter-spacing: 0.02em;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
        min-height: 80vh;
    }

    .hero-title-item.japanese {
        font-size: 1.6rem;
    }

    .hero-title-item.english {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 100;
    color: #FF4444;
    display: inline;
    /* 改行を防ぐためにinlineに変更 */
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999999;
    /* 文字色をグレーに戻す */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    display: block;
    /* ラベルは改行させる */
}

/* Featured Projects */
.featured-projects {
    padding: 6rem 2rem;
    background: #ffffff;
}

.section-title {
    font-size: 2rem;
    font-weight: 100;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #666666;
	text-align: center;
    margin-top: 3rem;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-slideshow {
    position: relative;
    margin-bottom: 4rem;
    transition: height 0.3s ease;
}

.slideshow-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    width: 42px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.slideshow-arrows::before {
    content: '';
    width: 17px;
    height: 24px;
    background-color: #666;
    transition: background-color 0.3s ease;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.arrow-prev::before {
    -webkit-mask-image: url('../img/arrow-prev.png');
    mask-image: url('../img/arrow-prev.png');
}

.arrow-next::before {
    -webkit-mask-image: url('../img/arrow-next.png');
    mask-image: url('../img/arrow-next.png');
}

.slideshow-arrows:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slideshow-arrows:hover::before {
    background-color: #FF4444;
}

.arrow-prev {
    left: -100px;
}

.arrow-next {
    right: -100px;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s 0.8s;
    display: grid;
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0s 0s;
    z-index: 2;
}

.project-slide.fade-out {
    opacity: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .project-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .slideshow-arrows {
        width: 28px;
        height: 40px;
        top: calc(100% + 4.25rem);
    }

    .slideshow-arrows::before {
        width: 11px;
        height: 16px;
    }

    .arrow-prev {
        left: 10px;
    }
    
    .arrow-next {
        right: 10px;
    }

    .project-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-link-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
}

.project-image {
    background: #f5f5f5;
    border-radius: 8px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info h3 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.project-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: #f0f0f0;
    font-size: 0.8rem;
    color: #666;
    border-radius: 20px;
    font-weight: 400;
}

.project-link-btn {
    display: inline-block;
    padding: 0rem 1rem;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-link-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Slideshow Navigation */
.slideshow-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-dot.active {
    background: #FF4444;
}

/* Other Projects Grid */
.other-projects {
    padding: 6rem 2rem;
    background: #f8f9fa;
}

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

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.project-card-image {
    aspect-ratio: 4/3;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.5rem;
}

.project-card-image img {
    padding: 15px;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card h4 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.8rem;
    color: #666;
}

/* Team Section */
.team {
    padding: 6rem 2rem;
    background: white;
}

.team-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

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

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffb2b2;
    isolation: isolate;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    mix-blend-mode: multiply;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

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

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

.footer-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-info p span {
    font-weight: 500;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #FF4444;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #666;
}

/* ===== Contact Page ===== */
.page-hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.contact {
    padding: 3rem 2rem 6rem;
}

.contact .container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact form {
    display: grid;
    gap: 1rem;
}

.contact label {
    font-size: 0.9rem;
    color: #333;
    display: block;
    margin-bottom: 0.35rem;
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-size: 1rem;
}

.contact textarea {
    min-height: 160px;
    resize: vertical;
}

.contact input:focus, .contact textarea:focus {
    border-color: #FF4444;
    background: #fff;
}

#inline-thanks {
    margin-top: 1rem;
    text-align: center;
    border: 1px solid #22c55e;
    background: #f0fdf4;
    color: #166534;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 1.25rem;
    }

    .contact {
        padding: 2rem 1.25rem 4rem;
    }
}

/* ===== Company Page ===== */
.company-info {
    padding: 3rem 2rem 6rem;
    background: #ffffff;
}

.company-info .container {
    max-width: 900px;
    margin: 0 auto;
}

.company-grid {
    display: grid;
    gap: 0;
}

.company-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: start;
}

.company-item:first-child {
    padding-top: 0;
}

.company-item:last-child {
    border-bottom: none;
}

.company-label {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.05em;
}

.company-value {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

.company-value p {
    margin: 0;
}

.company-value p span {
    font-weight: 400;
}

.business-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-list li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.business-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #FF4444;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .company-info {
        padding: 2rem 1.25rem 4rem;
    }

    .company-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.5rem 0;
    }

    .company-label {
        font-weight: 500;
        color: #999;
        font-size: 0.85rem;
    }

    .company-value {
        font-size: 0.95rem;
    }
}