/* Base Styles */
:root {
    --primary-color: #333333;
    --secondary-color: #f7f7f7;
    --accent-color: #a68c7c; /* 落ち着いたアースカラーで洗練さを演出 */
    --text-color: #4a4a4a;
    --light-text: #888888;
    --bg-color: #ffffff;
    --border-color: #eaeaea;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.4;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 140, 124, 0.4);
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
}

.btn-outline-small {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.btn-outline-small:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Header height */
    background: linear-gradient(135deg, #fdfdfd 0%, #f5f5f5 100%);
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(166, 140, 124, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(166, 140, 124, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background-color: rgba(166, 140, 124, 0.15);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background-color: rgba(230, 224, 218, 0.5);
    bottom: -50px;
    left: -100px;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #fff;
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-end;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

.main-glass-card {
    max-width: 400px;
    z-index: 2;
    transform: translateY(-20px);
}

.main-glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.main-glass-card p {
    font-size: 0.95rem;
    color: var(--light-text);
}

.sub-glass-card {
    max-width: 250px;
    padding: 1.5rem;
    border-radius: 16px;
    z-index: 1;
    transform: translateX(-40px) translateY(-10px);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-15px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

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

.about-image {
    flex: 0 0 40%;
    max-width: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background-color: var(--secondary-color);
    aspect-ratio: 1/1;
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

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

.portfolio-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.portfolio-image.iframe-wrapper {
    position: relative;
    background-color: #f9f9f9;
    width: 100%;
    padding-bottom: 75%; /* Force perfect 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
}

.portfolio-iframe {
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: 0 0;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* 防止スクロール */
}

.portfolio-card:hover .portfolio-iframe {
    /* Optional: can add effect if needed */
}

.portfolio-content {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.portfolio-content h4 {
    font-size: 1.1rem;
    margin: 0;
}

.portfolio-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Process */
.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background-color: var(--border-color);
}

.process-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    line-height: 56px;
    background-color: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 1;
}

.process-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    flex: 1;
}

.process-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.process-content p {
    color: var(--light-text);
    margin: 0;
    line-height: 1.7;
}

/* FAQ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--light-text);
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--light-text);
}

/* Contact */
.contact-desc {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--light-text);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.8rem;
    color: #bbb;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    
    .nav {
        width: 100%;
    }

    .nav ul {
        gap: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: hidden;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .nav a {
        font-size: clamp(0.6rem, 2.6vw, 0.95rem);
    }
    
    .header .btn {
        display: none; /* Hide button on mobile header */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-visual {
        align-items: center;
    }

    .main-glass-card {
        transform: translateY(0);
        animation: none;
    }

    .sub-glass-card {
        transform: translateX(0) translateY(-20px);
        animation: none;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        width: 80%;
        max-width: 300px;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .process-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        line-height: 36px;
        font-size: 1rem;
        margin-bottom: 0;
    }

    .process-content {
        padding: 1.5rem;
        margin-left: 0;
        flex: 1;
    }
}
