/* ==========================================
   ページヘッダー
   ========================================== */
.page-header {
    margin-top: 80px;
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.page-header p {
    font-size: 1rem;
    color: #666;
    letter-spacing: 0.1em;
}

/* ==========================================
   Aboutページ
   ========================================== */
.about-section,
.message-section,
.company-info-section,
.values-section {
    padding: 100px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 2rem;
    font-weight: 400;
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
}

.message-text p {
    margin-bottom: 1.5rem;
    line-height: 2;
}

.signature {
    text-align: right;
    margin-top: 3rem;
    font-weight: 500;
}

.info-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #E0E0E0;
}

.info-table th,
.info-table td {
    padding: 1.5rem;
    text-align: left;
}

.info-table th {
    width: 200px;
    font-weight: 500;
    background: #FAFAFA;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    padding: 3rem 2rem;
    background: white;
    border: 1px solid #E0E0E0;
    transition: all 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* ==========================================
   Serviceページ
   ========================================== */
.service-section {
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    padding: 3rem 2rem;
    background: white;
    border: 1px solid #E0E0E0;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 200;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.service-card p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* プロジェクトフロー */
.flow-section {
    padding: 100px 0;
    background: #FAFAFA;
}

.flow-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-left: 3px solid var(--color-accent);
    transition: all 0.3s;
}

.flow-step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.flow-number {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.flow-step h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--color-primary);
    color: white;
}

.cta-section h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #B08F51;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

/* ==========================================
   Worksページ
   ========================================== */
.filter-section {
    margin-top: 80px;
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #E0E0E0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    background: transparent;
    border: 1px solid #E0E0E0;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.works-page-section {
    padding: 100px 0;
}

/* Worksページ専用ギャラリー（正方形グリッド） */
.works-page-section .works-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.works-page-section .work-item {
    aspect-ratio: 1;
}

.works-page-section .work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   Work詳細ページ
   ========================================== */
.work-detail-hero {
    margin-top: 80px;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.work-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-detail-section {
    padding: 100px 0;
}

.work-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

.work-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.work-detail-header h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.work-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.work-detail-body {
    margin-bottom: 4rem;
}

.work-detail-body h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 3rem 0 1.5rem;
}

.work-detail-body p {
    line-height: 2;
    margin-bottom: 1.5rem;
}

.work-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.work-detail-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ==========================================
   Contactページ
   ========================================== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-center {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-center h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.form-note {
    margin-bottom: 2rem;
    color: #666;
    text-align: center;
}

.contact-form {
    background: white;
    padding: 2rem;
    border: 1px solid #E0E0E0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: #D32F2F;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #E0E0E0;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    background: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #B08F51;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
}

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

.info-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.map-wrapper {
    margin-top: 2rem;
}

/* ==========================================
   レスポンシブ
   ========================================== */
@media (max-width: 1199px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .works-page-section .works-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .work-detail-gallery {
        grid-template-columns: 1fr;
    }
    
    .works-page-section .works-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-table {
        display: block;
    }

    .info-table tr {
        display: block;
        margin-bottom: 1rem;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        background: transparent;
        font-weight: 600;
    }
}
