/* ========================================
   リセットCSS & ベース設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background-color: #F8F7F5;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul, ol {
    list-style: none;
}

/* ========================================
   カラー変数
======================================== */
:root {
    --color-primary: #2D5F3F;
    --color-secondary: #8B6F47;
    --color-accent: #5B9BD5;
    --color-base: #F8F7F5;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray: #666666;
    --color-light-gray: #E5E5E5;
}

/* ========================================
   共通レイアウト
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-title .en {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.section-title .ja {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #235030;
    opacity: 1;
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 1;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 500;
    transition: gap 0.3s ease;
}

.link-arrow::after {
    content: '→';
}

.link-arrow:hover {
    gap: 12px;
    opacity: 1;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list a {
    font-weight: 500;
    color: var(--color-black);
    position: relative;
}

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

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

.contact-btn {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 20px;
}

.contact-btn:hover {
    background-color: #235030;
}

.contact-btn::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-black);
    transition: all 0.3s ease;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 30px;
}

.subtitle {
    display: block;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.main-title {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background-color: var(--color-white);
    margin: 10px auto 0;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ========================================
   コンセプトセクション
======================================== */
.concept {
    padding: 100px 0;
}

.concept-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.concept-text h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.4;
}

.concept-text p {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.concept-text .link-arrow {
    margin-top: 30px;
}

.concept-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   事業紹介セクション
======================================== */
.business {
    padding: 100px 0;
    background-color: var(--color-white);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.business-card {
    background-color: var(--color-base);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.business-image {
    height: 250px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .business-image img {
    transform: scale(1.05);
}

.business-content {
    padding: 30px;
}

.business-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 15px;
}

.business-content .brand {
    display: inline-block;
    margin-left: 10px;
    font-size: 16px;
    color: var(--color-accent);
    font-weight: 500;
}

.business-content p {
    color: var(--color-gray);
    margin-bottom: 20px;
}

/* ========================================
   実績・事例セクション
======================================== */
.works {
    padding: 100px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.work-image {
    height: 200px;
    overflow: hidden;
}

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

.work-content {
    padding: 25px;
}

.work-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    border-radius: 15px;
    margin-bottom: 15px;
}

.work-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 10px;
}

.work-content p {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.work-tags .tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f5f5f5;
    color: var(--color-black);
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-gray);
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.work-client {
    font-weight: 500;
}

.work-date {
    font-weight: 400;
}

.no-works, .error {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-gray);
    font-size: 16px;
}

/* ========================================
   お知らせセクション
======================================== */
.news {
    padding: 100px 0;
    background-color: var(--color-white);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid var(--color-light-gray);
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: var(--color-base);
}

.news-date {
    font-size: 14px;
    color: var(--color-gray);
    min-width: 100px;
}

.news-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    border-radius: 15px;
    min-width: 80px;
    text-align: center;
}

/* 実績・事例のカテゴリータグ（緑色） */
.works-category {
    background-color: var(--color-primary);
}

.news-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
}

/* ========================================
   CTAセクション
======================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #235030 100%);
    color: var(--color-white);
}

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

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

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

.line-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #00B900;
    color: var(--color-white);
    border-radius: 25px;
    font-weight: 500;
}

.line-btn:hover {
    background-color: #009900;
    opacity: 1;
}

.line-btn img {
    width: 24px;
    height: 24px;
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 80px 30px;
        gap: 30px;
    }
    
    .hero-title .main-title {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .concept-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .concept-text h3 {
        font-size: 28px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .news-date,
    .news-category {
        min-width: auto;
    }
    
    .news-title {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title .main-title {
        font-size: 24px;
    }
    
    .section-title .ja {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}