/* ================================================
   マモリテ - メインスタイルシート
   ================================================ */

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS変数定義 */
:root {
    /* メインカラーパレット */
    --primary-color: #E74C3C;  /* 明るい赤 */
    --secondary-orange: #FF6B35; /* オレンジ */
    --secondary-yellow: #FFC107; /* 黄色 */
    --accent-blue: #5DADE2;   /* 水色 */
    --accent-purple: #BB8FCE; /* 薄紫 */
    --accent-green: #58D68D;  /* 緑 */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light-pink: #FFF0F5;    /* 薄いピンク */
    --bg-light-yellow: #FFFDF0;  /* 薄い黄色 */
    --bg-light-blue: #F0FAFF;    /* 薄い水色 */
    --bg-light-purple: #F8F0FF;  /* 薄い紫 */
    --bg-white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* グラデーション用の色 */
    --gradient-red-dark: #C0392B;   /* 濃い赤 */
    --gradient-red-light: #FF6B6B;  /* 薄い赤 */
    --wa-gray: #F5F5F5;
    
    /* 追加のカラー変数 */
    --bg-light: #F8F9FA;           /* 薄いグレー背景 */
    --accent-color: #5DADE2;       /* アクセントカラー（水色） */
    --secondary-color: #C0392B;    /* セカンダリカラー（濃い赤） */
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* フォント */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-accent: 'Noto Sans JP', sans-serif;
    
    /* トランジション */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ベース設定 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    position: relative;
}

/* タイポグラフィ */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    font-family: var(--font-accent);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-color);
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-accent);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

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

.nav-link:hover {
    color: var(--primary-color);
}

/* ドロップダウンメニュー */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    min-width: 220px;
    margin-top: 0.5rem;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 波形装飾パターン */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    z-index: 1;
}

/* モバイル用ヒーロー調整 */
@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
        min-height: 90vh;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
    }
}

/* ヒーロー画像コンテンツ（デスクトップ用） */
.hero-image-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    text-align: center;
    display: block;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    transition: var(--transition-fast);
    cursor: pointer;
}

.hero-main-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ヒーローテキストコンテンツ（モバイル用） */
.hero-text-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 旧hero-contentスタイルを保持（下位互換） */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 - タブレット以下では画像を非表示、テキストを表示 */
@media (max-width: 1024px) {
    .hero-image-content {
        display: none;
    }
    
    .hero-text-content {
        display: block;
    }
}

/* モバイル用のヒーローコンテンツ調整 */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
        background: rgba(255, 255, 255, 0.9); /* モバイルでは背景を少し濃くして可読性向上 */
    }
    
    .hero-text-content {
        padding: 2rem;
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
    }
    
    .hero-text-content {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
    }
}

.hero-title {
    margin-bottom: var(--spacing-md);
    color: #333333;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555555;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    text-shadow: none;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--secondary-orange);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
    background: #FF5722;
    color: white;
}

/* ヒーロー背景動画 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(8px) brightness(0.8);
    opacity: 0.6;
}

/* モバイル用の動画調整 */
@media (max-width: 768px) {
    .hero-bg video {
        min-width: auto;
        min-height: auto;
        width: 177.77vh; /* 16:9のアスペクト比を維持 */
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .hero-bg video {
        width: 200vh; /* さらに小さい画面用に調整 */
    }
}

/* フローティング要素 */
.floating {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    opacity: 0.1;
    border-radius: 50%;
    animation-delay: 0s;
}

.floating-2 {
    bottom: 20%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    opacity: 0.08;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 2s;
}

.floating-3 {
    top: 50%;
    right: 25%;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    animation-delay: 4s;
}

/* セクション共通スタイル */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-light-pink);
}

/* セクション背景色のバリエーション */
.section-yellow {
    background: var(--bg-light-yellow);
}

.section-blue {
    background: var(--bg-light-blue);
}

.section-purple {
    background: var(--bg-light-purple);
}

/* About セクション */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.about-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light), var(--wa-gray));
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-card:nth-child(1) .about-icon { color: var(--primary-color); }
.about-card:nth-child(2) .about-icon { color: var(--accent-blue); }
.about-card:nth-child(3) .about-icon { color: var(--accent-green); }

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.read-more:hover {
    gap: 1rem;
}

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 2;
}

.service-card:nth-child(1)::before { background: var(--primary-color); }
.service-card:nth-child(2)::before { background: var(--accent-blue); }
.service-card:nth-child(3)::before { background: var(--accent-green); }
.service-card:nth-child(4)::before { background: var(--secondary-yellow); }
.service-card:nth-child(5)::before { background: var(--accent-purple); }
.service-card:nth-child(6)::before { background: var(--secondary-orange); }
.service-card:nth-child(7)::before { background: var(--primary-color); }

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px var(--shadow);
}

.service-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(1) .service-image { background: linear-gradient(135deg, var(--primary-color), #FF6B6B); }
.service-card:nth-child(2) .service-image { background: linear-gradient(135deg, var(--accent-blue), #3498DB); }
.service-card:nth-child(3) .service-image { background: linear-gradient(135deg, var(--accent-green), #27AE60); }
.service-card:nth-child(4) .service-image { background: linear-gradient(135deg, var(--secondary-yellow), #F39C12); }
.service-card:nth-child(5) .service-image { background: linear-gradient(135deg, var(--accent-purple), #9B59B6); }
.service-card:nth-child(6) .service-image { background: linear-gradient(135deg, var(--secondary-orange), #E67E22); }
.service-card:nth-child(7) .service-image { background: linear-gradient(135deg, var(--primary-color), #E91E63); }

.service-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

.service-content {
    padding: var(--spacing-lg);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 1rem;
}

/* Works/Portfolio セクション */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.work-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
}

.work-item::before {
    content: '画像をここに配置';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: white;
    opacity: 0.5;
    font-weight: 500;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: transform var(--transition-fast);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.work-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* リンク付きwork-item */
a.work-link-item {
    text-decoration: none;
    display: block;
    height: auto;
    background: var(--bg-white);
    position: relative;
}

a.work-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2;
}

a.work-link-item:nth-child(1)::before { background: var(--primary-color); }
a.work-link-item:nth-child(2)::before { background: var(--accent-blue); }
a.work-link-item:nth-child(3)::before { background: var(--accent-green); }
a.work-link-item:nth-child(4)::before { background: var(--secondary-yellow);
    border: 2px solid var(--bg-light);
    transition: all var(--transition-fast);
}

a.work-link-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.work-link-item::before {
    display: none;
}

.work-link-item .work-content {
    position: relative;
    padding: var(--spacing-lg);
}

.work-link-item .work-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.work-link-item .work-category {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

.work-link-item .work-arrow {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.work-link-item:hover .work-arrow {
    transform: translateY(-50%) translateX(5px);
}

/* ブログセクション */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition-fast);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.blog-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.blog-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--wa-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.blog-content {
    padding: var(--spacing-lg);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-title {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--primary-color);
    margin: 0;
    padding: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.5rem;
    height: auto;
    max-height: none;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.blog-link:hover {
    gap: 1rem;
}

/* ブログトップボタン */
.blog-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.blog-top-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.3);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.blog-top-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.blog-top-btn:hover::before {
    left: 100%;
}

.blog-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.blog-top-btn i:first-child {
    animation: pulse 2s infinite;
}

.blog-top-btn i:last-child {
    transition: transform var(--transition-fast);
}

.blog-top-btn:hover i:last-child {
    transform: translateX(3px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-title {
        font-size: 1.2rem;
        min-height: auto;
        height: auto;
        max-height: none;
        -webkit-line-clamp: none;
        display: block;
    }
    
    .blog-top-btn {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .blog-grid {
        gap: var(--spacing-sm);
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.1rem;
        padding: var(--spacing-sm);
        min-height: auto;
        height: auto;
        max-height: none;
    }
    
    .blog-top-btn {
        width: 100%;
        justify-content: center;
        margin: 0 var(--spacing-sm);
    }
}

/* お問い合わせセクション */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: var(--spacing-md);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.map-container {
    margin-top: var(--spacing-lg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: filter var(--transition-fast);
}

.map-container iframe:hover {
    filter: grayscale(0%);
}

.map-placeholder {
    display: none;
}

/* フォーム */
.contact-form {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.required {
    color: var(--secondary-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
}

.form-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow);
}

/* ダウンロードセクション */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.download-card {
    background: var(--bg-white);
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.download-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.download-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.download-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.download-size {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.download-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* フッター */
.footer {
    background: #1a1a1a;
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn var(--transition-fast);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 10% auto;
    padding: var(--spacing-lg);
    border-radius: 16px;
    max-width: 500px;
    position: relative;
    animation: slideIn var(--transition-medium);
}

.close {
    color: var(--text-light);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close:hover {
    color: var(--text-dark);
}

/* トップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 5px 20px var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* アニメーション */
@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Reveal アニメーション */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

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

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ナビゲーション */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        box-shadow: 0 10px 30px var(--shadow);
        transition: left var(--transition-fast);
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-md);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: var(--spacing-sm);
        background: var(--bg-light);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* ヒーロー */
    .hero {
        text-align: center;
        padding: var(--spacing-lg) 0;
        min-height: 80vh; /* モバイルでも十分な高さを確保 */
    }
    
    /* モバイルでも動画背景を表示 */
    .hero-bg {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* コンタクト */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* マップ */
    .map-container {
        height: 300px;
        margin-top: var(--spacing-md);
    }
    
    /* サービス */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Works */
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    /* 全般 */
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    /* マップ */
    .map-container {
        height: 250px;
        border-radius: 12px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Download */
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* CTA */
    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 印刷用スタイル */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .footer,
    .back-to-top,
    .floating {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        min-height: auto;
    }
    
    .section {
        page-break-inside: avoid;
    }
}