/* WINK建設マッチングプラットフォーム - メインスタイル */

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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background: white url('../images/bg.jpg') center/cover fixed;
}

/* ヘッダースタイル */
.site-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1359px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.site-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 40px;
    color: #d50808;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-logo:hover {
    color: #a00606;
}

/* ナビゲーションメニュー */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #222;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d50808;
    background: rgba(213, 8, 8, 0.05);
}

.nav-link.active {
    color: #d50808;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #d50808;
}

/* ヘッダーボタン */
.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-btn {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.header-btn {
    background: #f49d1c;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-btn:hover {
    background: #e88a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 157, 28, 0.3);
}

.header-btn.register-btn {
    background: #d50808;
    color: white;
}

.header-btn.register-btn:hover {
    background: #a00606;
    box-shadow: 0 4px 12px rgba(213, 8, 8, 0.3);
}

.header-btn.logout-btn {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.header-btn.logout-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.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);
}

.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-navigation.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #222;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #d50808;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

/* タブレット（768px - 991px） */
@media (max-width: 991px) {
    .header-content {
        padding: 0 15px;
    }
    
    .site-logo {
        font-size: 32px;
    }
    
    .main-navigation {
        margin: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .header-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .hero-section {
        padding: 50px 60px;
        height: 500px;
    }
    
    .hero-tabs {
        top: 50px;
        right: 60px;
    }
    
    .hero-tab {
        font-size: 18px;
        padding: 10px 18px;
    }
}

/* モバイル（767px以下） */
@media (max-width: 767px) {
    .header-content {
        padding: 0 10px;
    }
    
    .site-logo {
        font-size: 28px;
    }
    
    /* デスクトップナビゲーションを隠す */
    .main-navigation {
        display: none;
    }
    
    .header-buttons {
        gap: 8px;
    }
    
    .header-btn {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 20px;
    }
    
    /* モバイルメニューボタンを表示 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* モバイルナビゲーション - スタイルは上部で定義済み */
    
    .mobile-nav-menu {
        padding: 15px;
    }
    
    .mobile-nav-link {
        font-size: 15px;
        padding: 12px 0;
    }
    
    /* ヒーローセクション */
    .hero-section {
        padding: 30px 20px;
        height: auto;
        min-height: 400px;
        align-items: center;
        text-align: center;
    }
    
    .hero-tabs {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .tab-container {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-tab {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        border-radius: 0;
    }
    
    .hero-tab.order-tab {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .hero-tab.contract-tab {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}

/* 小さなモバイル（575px以下） */
@media (max-width: 575px) {
    .site-header {
        padding: 10px 0;
    }
    
    .header-content {
        padding: 0 8px;
    }
    
    .site-logo {
        font-size: 24px;
    }
    
    .header-buttons {
        gap: 6px;
    }
    
    .header-btn {
        font-size: 11px;
        padding: 6px 8px;
        border-radius: 18px;
        white-space: nowrap;
        min-width: auto;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 18px;
    }
    
    .mobile-menu-toggle span {
        height: 2px;
    }
    
    .mobile-nav-menu {
        padding: 12px;
    }
    
    .mobile-nav-link {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .hero-section {
        padding: 20px 15px;
        min-height: 350px;
    }
    
    .hero-tabs {
        max-width: 300px;
    }
    
    .hero-tab {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    /* ヒーロー検索フォーム */
    .hero-search-form {
        width: 100%;
        max-width: 350px;
        padding: 20px 15px;
        margin: 20px auto 0;
    }
    
    .search-form-group {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .search-label p {
        font-size: 14px;
        margin: 0;
        text-align: left;
    }
    
    .select-wrapper {
        min-width: auto;
        width: 100%;
    }
    
    .hero-select {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    /* より小さなサイズ調整 */
    .hero-search-form {
        max-width: 280px;
        padding: 15px 12px;
        margin: 15px auto 0;
    }
    
    .search-label p {
        font-size: 13px;
    }
    
    .hero-select {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    /* サービスセクション */
    .service-section {
        padding: 40px 0;
    }
    
    .service-title-en {
        font-size: 45px;
        line-height: 1.1;
    }
    
    .service-title-ja {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .service-content-wrapper {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .service-text-box {
        position: static;
        width: 100%;
        font-size: 14px;
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .service-building-image {
        width: 100%;
        height: 200px;
        margin: 0;
    }
    
    /* 検索フィルターセクション */
    .search-filter-section {
        padding: 20px 15px;
        margin: 0 15px;
    }
    
    .filter-title p {
        font-size: 22px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 15px 0;
    }
    
    .filter-label p {
        font-size: 16px;
        text-align: left;
    }
    
    .filter-select-wrapper {
        width: 100%;
        height: 45px;
    }
    
    .filter-select {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* 会社カード */
    .company-cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .company-card {
        width: 100%;
        max-width: 300px;
        padding: 20px 25px;
    }
    
    .company-logo {
        width: 80px;
        height: 55px;
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .info-label {
        font-size: 14px;
    }
    
    .info-value {
        font-size: 12px;
    }
    
    /* ニュースセクション */
    .news-section {
        padding: 40px 20px;
    }
    
    .news-title-en {
        font-size: 60px;
    }
    
    .news-title-ja {
        font-size: 24px;
    }
    
    .news-content {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: left;
        align-items: flex-start;
    }
    
    .news-date {
        width: auto;
        font-size: 12px;
    }
    
    .news-category {
        padding: 3px 15px;
        font-size: 11px;
    }
    
    .news-title-text {
        font-size: 13px;
    }
    
    /* FAQセクション */
    .faq-header {
        margin-bottom: 30px;
    }
    
    .faq-title-en {
        font-size: 60px;
    }
    
    .faq-title-ja {
        font-size: 24px;
    }
    
    .faq-content {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* メインコンテンツ */
.main-content {
    min-height: calc(100vh - 200px);
}

.homepage {
    width: 100%;
    overflow-x: hidden;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #c73e47 0%, #a8323a 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 65px 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/FV.jpg') center/cover;
}


.hero-tabs {
    position: absolute;
    top: 65px;
    right: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
}

.tab-container {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.hero-tab {
    position: relative;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-tab {
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-tab:hover {
    opacity: 0.9;
}

.hero-tab.active {
    opacity: 1;
}

.hero-tab.order-tab {
    background: #d50808;
    color: #f1f1f1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.hero-tab.contract-tab {
    background: #1907be;
    color: #f1f1f1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tab-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
}

.tab-text {
    position: relative;
    z-index: 1;
}

.tab-text p {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 20px;
}

.tab-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-search-form {
    background: white;
    padding: 30px 20px;
    margin-top: 0;
    border-radius: 0;
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    position: relative;
}

.form-content {
    display: none;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-content.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.hero-search-form.switching {
    opacity: 0.7;
    transform: scale(0.98);
}

.search-form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form-group label {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #222;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
}

.hero-select {
    width: 100%;
    padding: 10px 30px;
    border: 1px solid #000;
    border-radius: 20px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    color: #666;
    background: white;
    appearance: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.hero-select:focus {
    border-color: #d50808;
    box-shadow: 0 0 0 2px rgba(213, 8, 8, 0.1);
}

.hero-select option {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #222;
    padding: 8px;
}

/* ヒーローセクションのセレクトボックス用矢印 */
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}



/* 協力会社スライダー */
.company-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    padding: 9px 0;
    overflow: hidden;
    z-index: 5;
}

.slider-content {
    display: flex;
    gap: 32px;
    width: calc((260px + 32px) * 12);
    animation: slideLeft 24s linear infinite;
}

.company-slide {
    background: #d9d9d9;
    border: 1px solid #000;
    width: 260px;
    height: 162px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #000;
    flex-shrink: 0;
    position: relative;
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    background: #d9d9d9;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

@keyframes slideLeft {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-50%));
    }
}

/* サービスセクション */
.service-section {
    position: relative;
    background: #c73e47 url('../images/bg.jpg') center/cover;
    padding: 75px 0;
    opacity: 0.9;
    overflow: hidden;
}

.service-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.service-title-en {
    font-family: 'Crimson Text', serif;
    font-weight: bold;
    font-size: 186px;
    line-height: 56px;
    margin: 0;
}

.service-title-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 56px;
    line-height: 56px;
    margin: 20px 0 0;
}

.service-content-wrapper {
    position: relative;
    padding: 0 100px;
    margin-bottom: 100px;
}

.service-content {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: 157px;
    margin-bottom: 100px;
}

.service-text-box {
    position: absolute;
    left: 0;
    top: 0;
    background: white;
    padding: 12px;
    width: 595px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #222;
    left: 100px;
}

.service-text-box p {
    margin-bottom: 0;
}

.service-building-image {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    width: 867px;
    height: 653px;
    margin-right: 0;
    margin-left: auto;
}

.service-building-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.service-building-image.has-image {
    background: none;
    border: none;
    color: transparent;
}


.service-building-image.has-image::before {
    display: none;
}

/* 検索フィルターセクション */
.search-filter-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0px 10px 15px rgba(0,0,0,0.25);
    padding: 40px 60px;
    margin: 0 auto;
    max-width: 910px;
    text-align: center;
}

.filter-title {
    margin-bottom: 40px;
}

.filter-title p {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 64px;
    color: #222;
    margin: 0;
    line-height: 1.2;
}

.search-filter-section h3 {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 64px;
    color: #222;
    margin-bottom: 30px;
    line-height: 1.2;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.filter-label {
    flex: 0 0 auto;
}

.filter-label p {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 25px;
    color: #222;
    margin: 0;
    white-space: nowrap;
}

.filter-row label {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 25px;
    color: #222;
}

.filter-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    height: 60px;
}

.filter-select {
    width: 100%;
    height: 100%;
    padding: 20px 30px;
    border: 1px solid #000;
    border-radius: 20px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #666;
    background: white;
    appearance: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.filter-select:focus {
    border-color: #d50808;
    box-shadow: 0 0 0 2px rgba(213, 8, 8, 0.1);
}

.filter-select option {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    color: #222;
    padding: 10px;
}

/* セレクトボックスの矢印アイコン */
.filter-select-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #666;
    pointer-events: none;
}



/* 会社カード */
.company-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.company-card {
    background: #d50808;
    border-radius: 20px;
    padding: 31px 44px;
    width: 300px;
    color: white;
    overflow: hidden;
}

.company-logo {
    background: #d9d9d9;
    color: #000;
    padding: 25px 10px;
    text-align: center;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 30px;
    width: 122px;
    height: 79px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.company-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.info-label {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: white;
}

.info-value {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.company-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-row .label {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 20px;
}

.company-row .value {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 16px;
}

.contact-btn-container {
    width: 100%;
    margin-top: 20px;
}

.contact-btn {
    background: white;
    color: #000;
    border: none;
    padding: 10px;
    width: 100%;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* ページネーション */
.pagination {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.page-num {
    width: 40px;
    height: 40px;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-num.active {
    background: #072d52;
    color: white;
    box-shadow: 0px 10px 10px rgba(0,0,0,0.25);
}

.page-num:not(.active) {
    background: white;
    color: #072d52;
    border: 1px solid #072d52;
}

.page-num:hover:not(.active) {
    background: #072d52;
    color: white;
    transform: translateY(-2px);
}

.page-num-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #072d52;
    width: 40px;
    height: 40px;
}

/* 前・次ボタンのスタイル調整 */
.page-num[data-node-id="prev-page"],
.page-num[data-node-id="next-page"] {
    width: auto;
    min-width: 50px;
    padding: 0 15px;
    font-size: 16px;
}

/* ニュースセクション */
.news-section-wrapper {
    background: #c73e47 url('../images/bg.jpg') center/cover;
    padding: 40px 0;
}

.news-section {
    padding: 80px 43px;
    text-align: center;
}

.news-header {
    color: white;
    margin-bottom: 40px;
}

.news-title-en {
    font-family: 'Crimson Text', serif;
    font-weight: bold;
    font-size: 186px;
    line-height: 56px;
    margin: 0;
}

.news-title-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 56px;
    line-height: 56px;
    margin: 20px 0 0;
}

.news-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
    padding: 40px 60px;
    max-width: 1040px;
    margin: 0 auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.news-item {
    background: #f2f4f5;
    border-radius: 18px;
    padding: 20px 30px;
    display: flex;
    gap: 33px;
    align-items: center;
}

.news-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #181c1f;
    width: 72px;
}

.news-category {
    border: 1px solid #0082d8;
    border-radius: 100px;
    padding: 4px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #0082d8;
    white-space: nowrap;
}

.news-title-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #181c1f;
    flex: 1;
}

.news-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #181c1f;
    flex: 1;
}

/* FAQセクション */
.faq-section-wrapper {
    background: #c73e47 url('../images/bg.jpg') center/cover;
    padding: 40px 0;
}

.faq-section {
    padding: 40px 0;
    text-align: center;
}

.faq-header {
  text-align: center;
    color: white;
    margin-bottom: 40px;
}

.faq-title-en {
    font-family: 'Crimson Text', serif;
    font-weight: bold;
    font-size: 186px;
    line-height: 56px;
    margin: 0;
}

.faq-title-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 56px;
    line-height: 56px;
    margin: 20px 0 0;
}

.faq-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
    padding: 40px 60px;
    max-width: 949px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0px 6px 8px rgba(0,0,0,0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    width: 100%;
    background: none;
    border: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #000;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-question span {
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
}

.faq-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.faq-arrow svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.faq-arrow img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.faq-item.active .faq-arrow svg {
    transform: rotate(0deg);
}

.faq-item.active .faq-arrow img {
    transform: rotate(0deg);
}

.faq-answer {
    display: none;
    background: #f8f9fa;
    padding: 0px 25px;
    transition: padding 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* FAQ アニメーション強化 */
.faq-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-arrow {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
}

/* FAQ CTA Section */
.faq-cta {
    background: linear-gradient(135deg, #d50808 0%, #f73b3b 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.faq-cta h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
}

.faq-cta p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #d50808;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* About Page Styles */
.about-page .page-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 80px;
    border-radius: 15px;
}

.about-page .page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.about-page .page-header p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.header-highlight {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.highlight-badge {
    background: linear-gradient(135deg, #d50808, #f73b3b);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(213, 8, 8, 0.3);
    transition: all 0.3s ease;
}

.highlight-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(213, 8, 8, 0.4);
}

/* Company Info Section */
.company-info {
    margin-bottom: 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.company-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.value-propositions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.value-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.value-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mission, .vision, .values {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.mission:hover, .vision:hover, .values:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mission-icon, .vision-icon, .values-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.mission h3, .vision h3, .values h3 {
    font-size: 20px;
    font-weight: 600;
    color: #d50808;
    margin-bottom: 15px;
}

.mission p, .vision p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.values-list li {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d50808;
    font-weight: bold;
}

.company-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tech-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tech-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tech-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.tech-item span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.company-image-placeholder {
    background: linear-gradient(135deg, #d50808 0%, #f73b3b 100%);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.company-image-placeholder span {
    font-size: 80px;
    margin-bottom: 20px;
}

.company-image-placeholder p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Company Details Section */
.company-details {
    margin-bottom: 80px;
}

.company-details h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.details-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.details-table th, .details-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.details-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 150px;
}

.details-table td {
    color: #555;
}

.details-table tr:last-child th,
.details-table tr:last-child td {
    border-bottom: none;
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-content span {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.map-content p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.map-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* CEO Message Section */
.ceo-message {
    margin-bottom: 80px;
}

.ceo-message h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.message-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

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

.photo-placeholder {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.ceo-info h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.ceo-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.message-text blockquote {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0;
    position: relative;
}

.message-text blockquote::before {
    content: '"';
    font-size: 80px;
    color: #d50808;
    position: absolute;
    top: 20px;
    left: 30px;
    line-height: 1;
}

.message-text blockquote p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    padding-left: 40px;
}

.message-text blockquote p:last-child {
    margin-bottom: 0;
}

/* Achievements Section */
.achievements {
    margin-bottom: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 60px 40px;
}

.achievements h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

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

.stat-item {
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #d50808;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.stat-growth {
    font-size: 12px;
    color: #d50808;
    font-weight: 600;
    background: rgba(213, 8, 8, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* About CTA Section */
.about-cta {
    background: linear-gradient(135deg, #d50808 0%, #f73b3b 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.about-cta .cta-content {
    position: relative;
    z-index: 2;
}

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

.about-cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: white;
    color: #d50808;
}

.btn--primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn--outline:hover {
    background: white;
    color: #d50808;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Pricing Page Styles */
.pricing-page .page-header {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 80px;
    border-radius: 20px;
}

.pricing-page .page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.pricing-page .page-header p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Grid */
.pricing-section {
    margin-bottom: 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.recommended {
    background: linear-gradient(135deg, #d50808 0%, #f73b3b 100%);
    color: white;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-badge {
    background: #ff6b35;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.plan-header {
    margin-bottom: 30px;
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

.plan-price {
    margin-bottom: 15px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: inherit;
}

.period {
    font-size: 18px;
    color: inherit;
    opacity: 0.8;
}

.plan-description {
    font-size: 16px;
    color: inherit;
    opacity: 0.9;
    margin: 0;
}

/* Plan Features */
.plan-features {
    margin-bottom: 40px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-card.recommended .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: #28a745;
    font-weight: bold;
    margin-right: 12px;
    font-size: 18px;
}

.pricing-card.recommended .feature-icon {
    color: #fff;
}

/* Plan Action */
.plan-action .btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
}

.pricing-card.recommended .btn--primary {
    background: white;
    color: #d50808;
}

.pricing-card.recommended .btn--primary:hover {
    background: #f8f9fa;
    color: #d50808;
}

/* Feature Comparison */
.feature-comparison {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 80px;
}

.feature-comparison h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

.comparison-table td {
    font-size: 16px;
    color: #555;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Pricing Contact */
.pricing-contact {
    background: linear-gradient(135deg, #d50808 0%, #f73b3b 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pricing-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.contact-content {
    position: relative;
    z-index: 2;
}

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

.pricing-contact p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.contact-buttons .btn--primary {
    background: white;
    color: #d50808;
}

.contact-buttons .btn--primary:hover {
    background: #f8f9fa;
    color: #d50808;
}

.contact-buttons .btn--outline {
    border-color: white;
    color: white;
}

.contact-buttons .btn--outline:hover {
    background: white;
    color: #d50808;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.modal-hidden {
    display: none;
}

.modal.modal-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #d50808;
    box-shadow: 0 0 0 3px rgba(213, 8, 8, 0.1);
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.modal-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    min-width: 120px;
}

.btn--secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn--secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* LINE登録ボタン - 固定表示で追従 */
.line-registration {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

.line-registration.show {
    opacity: 1;
    transform: translateY(0);
}

.line-btn {
    background: #00b900;
    color: white;
    padding: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.4);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 60px;
    transition: all 0.3s ease;
}

.line-btn:hover {
    background: #00a000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.6);
}

/* Footer Section Styles */
.footer-section {
    display: flex;
    background: #222222;
    color: #fff;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}



/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 30px 40px 30px 40px;
    box-sizing: border-box;
}

.footer-nav-title {
    margin-bottom: 10px;
}

.footer-nav-title p {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 15px;
    line-height: 23.4px;
    margin: 0;
}

.footer-nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    box-sizing: border-box;
}

.footer-nav-item.last .nav-separator {
    display: none;
}

.nav-link-text a {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 11px;
    color: #fff;
    line-height: 23.4px;
    margin: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link-text a:hover {
    color: #d50808;
}

.nav-separator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 15px;
    width: 7.2px;
}

.nav-separator p {
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    font-size: 13px;
    color: #222222;
    line-height: 23.4px;
    margin: 0;
}

/* Footer Background/Copyright */
.footer-background {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 12px 640px;
    text-align: center;
    box-sizing: border-box;
}

.footer-logo {
    height: 48px;
    width: 99px;
}

.footer-logo p {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 40px;
    color: white;
    line-height: normal;
    margin: 0;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 9px;
    width: 159.04px;
}

.footer-copyright p {
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    font-size: 7.625px;
    color: #6a6a6a;
    line-height: 23.4px;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1440px) {
    .service-section {
        width: 100%;
        max-width: 1440px;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        padding: 40px 50px;
    }
    
    .hero-tabs {
        right: 50px;
        top: 40px;
    }
    
    .hero-search-form {
        width: 100%;
        max-width: 450px;
    }
    
    .company-slider {
        left: 0;
        width: 100%;
        padding: 9px 20px;
    }
    
    .service-content {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .service-text-box {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .service-building-image {
        width: 100%;
        height: 400px;
        margin-right: 0;
    }
    
    .company-cards {
        flex-wrap: wrap;
    }
    
    /* フッタースタイル - タブレット */
    .footer-background {
        padding: 12px 50px;
    }
}

@media (max-width: 1024px) {
    .main-navigation {
        margin: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .header-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-logo {
        font-size: 32px;
    }
    
    .header-buttons {
        gap: 10px;
    }
    
    .header-btn {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    /* モバイルメニューアクティブスタイルは上部で定義済み */
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 20px;
        align-items: center;
    }
    
    .hero-tabs {
        position: relative;
        right: auto;
        top: auto;
        margin-bottom: 20px;
    }
    
    .hero-search-form {
        width: 100%;
        margin-top: 0;
    }
    
    .search-form-group {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }
    
    .hero-select {
        font-size: 16px;
        padding: 8px 25px;
    }
    
    .search-select {
        width: 100%;
        min-width: auto;
    }
    
    .company-slider {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px;
    }
    
    .company-slide {
        width: calc(50% - 5px);
        height: 120px;
        font-size: 18px;
    }
    
    .service-header h1 {
        font-size: 120px;
    }
    
    .service-header h2 {
        font-size: 36px;
    }
    
    .search-filter-section {
        padding: 30px 25px;
        margin: 0 20px;
    }
    
    .filter-title p {
        font-size: 32px;
    }
    
    .search-filter-section h3 {
        font-size: 32px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 10px 0;
    }
    
    .filter-label p {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .filter-select-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .filter-select {
        font-size: 20px;
        padding: 15px 25px;
    }
    
    .company-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .news-title-en,
    .faq-title-en {
        font-size: 120px;
    }
    
    .news-title-ja,
    .faq-title-ja {
        font-size: 36px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    
    
    .line-btn {
        width: 120px;
        height: 60px;
        font-size: 18px;
    }
    
    .footer-nav {
        padding: 20px;
    }
    
    .footer-nav-list {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .footer-nav-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-separator {
        display: none;
    }
    
    .footer-background {
        padding: 12px 20px;
    }
    
    .footer-logo p {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .search-filter-section {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .filter-title p {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .filter-label p {
        font-size: 18px;
    }
    
    .filter-select {
        font-size: 18px;
        padding: 12px 20px;
    }
    
    .filter-row {
        padding: 8px 0;
    }
    
    .filter-select-wrapper {
        height: 50px;
    }
}

/* コンタクトページスタイル - Figmaデザイン */
.contact-page {
    background: linear-gradient(135deg, #d50808 0%, #8B0000 100%);
    min-height: 100vh;
    padding: 75px 0;
    position: relative;
}

/* コンタクトページ背景画像 */
.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10.41%;
    width: 120.82%;
    height: 100.04%;
    background: url('../images/bg.jpg') center/cover;
    opacity: 0.9;
    z-index: 0;
}

/* コンタクトコンテナ */
.contact-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    position: relative;
    z-index: 1;
}

/* フォームカード */
.contact-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0px 10px 15px 0px rgba(0,0,0,0.25);
    padding: 40px 60px 30px 60px;
    width: 100%;
    max-width: 947px;
    position: relative;
}

/* フォームコンテンツ */
.contact-form-content {
    max-width: 827px;
    margin: 0 auto;
    padding: 44px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* タイトル */
.contact-title h1 {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 64px;
    color: #222222;
    text-align: center;
    line-height: 40px;
    letter-spacing: 0.45px;
    margin: 0;
}

/* 説明文 */
.contact-description {
    width: 100%;
    max-width: 798px;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 24px;
    color: #222222;
    text-align: center;
    line-height: 38.8px;
    letter-spacing: 0.45px;
}

.contact-description p {
    margin: 0;
}

/* フォーム */
.contact-form {
    width: 100%;
    max-width: 755px;
}

/* フォーム行（2列レイアウト） */
.contact-form-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

/* フォームフィールド */
.contact-form-field {
    position: relative;
}

.contact-form-field.half-width {
    width: 360px;
}

.contact-form-field.full-width {
    width: 755px;
    margin-bottom: 20px;
}

/* ラベル */
.contact-form-field label {
    position: absolute;
    top: 19.5px;
    left: 0.5px;
    transform: translateY(-50%);
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 24px;
    color: black;
    letter-spacing: 0.45px;
    line-height: 38.8px;
    z-index: 2;
    pointer-events: none;
}

.contact-form-field label .required {
    color: red;
}

/* 入力フィールド */
.contact-form-field input,
.contact-form-field textarea {
    width: 100%;
    height: 100px;
    background: white;
    border: 1px solid #c2c2c2;
    border-radius: 20px;
    padding: 20px;
    margin-top: 39px;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #222;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: #999;
}

.contact-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* プライバシーポリシー */
.privacy-notice {
    width: 100%;
    max-width: 782px;
    font-family: 'Montserrat', 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 20px;
    color: #222222;
    letter-spacing: 0.45px;
    line-height: 38.8px;
    margin: 20px 0;
}

.privacy-notice p {
    margin: 0;
}

/* 送信ボタン */
.contact-submit-button {
    position: relative;
    width: 248px;
    height: 69px;
    margin: 10px 0 0 0;
}

.contact-submit-button button {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f49d1c 0%, #e67e22 100%);
    border: none;
    border-radius: 35px;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: black;
    letter-spacing: 0.45px;
    line-height: 96.8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 157, 28, 0.3);
}

/* LINE登録ボタン */
.line-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00b900;
    padding: 10px;
    border-radius: 8px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.line-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 185, 0, 0.3);
}

.line-button-content {
    width: 156px;
    height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: black;
    font-size: 24px;
    color: white;
    text-align: center;
    line-height: 23.4px;
}

.line-button-content p {
    margin: 0;
}

/* Contact Form 7 対応 */
.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.contact-form .wpcf7-form-control-wrap {
    width: 100%;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .contact-form-card {
        padding: 30px 40px 20px 40px;
        margin: 0 20px;
    }
    
    .contact-title h1 {
        font-size: 48px;
    }
    
    .contact-description {
        font-size: 20px;
    }
    
    .contact-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form-field.half-width {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 40px 0;
    }
    
    .contact-container {
        gap: 60px;
        padding: 0 15px;
    }
    
    .contact-form-card {
        padding: 20px 30px 15px 30px;
        border-radius: 16px;
    }
    
    .contact-form-content {
        padding: 30px 0;
        gap: 15px;
    }
    
    .contact-title h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .contact-description {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .contact-form-field label {
        font-size: 20px;
    }
    
    .contact-form-field input,
    .contact-form-field textarea {
        height: 80px;
        padding: 15px;
        border-radius: 15px;
        margin-top: 30px;
    }
    
    .contact-submit-button {
        width: 200px;
        height: 60px;
    }
    
    .contact-submit-button button {
        font-size: 18px;
        line-height: 60px;
    }
    
    .line-button {
        bottom: 15px;
        right: 15px;
    }
    
    .line-button-content {
        width: 120px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 15px 20px 10px 20px;
        margin: 0 10px;
    }
    
    .contact-title h1 {
        font-size: 28px;
    }
    
    .contact-description {
        font-size: 16px;
    }
    
    .contact-form-field label {
        font-size: 18px;
    }
    
    .contact-form-field input,
    .contact-form-field textarea {
        height: 70px;
        padding: 12px;
        border-radius: 12px;
        margin-top: 25px;
    }
    
    .contact-submit-button {
        width: 100%;
        height: 50px;
    }
    
    .contact-submit-button button {
        font-size: 16px;
        line-height: 50px;
    }
    
    .privacy-notice {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ログインページスタイル */
.login-page {
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

/* タブナビゲーション */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.login-tab {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.login-tab.active {
    background: white;
    color: #d50808;
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d50808;
}

.login-tab:hover:not(.active) {
    background: #e9ecef;
    color: #333;
}

/* タブコンテンツ */
.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* ログインフォーム */
.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #d50808;
    box-shadow: 0 0 0 2px rgba(213, 8, 8, 0.1);
}

/* フォームオプション */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #d50808;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ログインボタン */
.login-submit-btn {
    width: 100%;
    padding: 16px;
    background: #d50808;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-submit-btn:hover {
    background: #b30707;
}

.login-submit-btn:active {
    background: #a00606;
    transform: translateY(1px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .login-page {
        padding: 20px 10px;
    }
    
    .login-box {
        max-width: 100%;
        margin: 0;
    }
    
    .tab-content {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Messages Page Styles */
.messages-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.messages-section {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 120px);
}

.messages-layout {
    display: flex;
    height: 100%;
}

/* Messages Sidebar */
.messages-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.messages-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messages-sidebar-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sidebar-controls {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-icon:hover {
    background: #f0f2f5;
    color: #333;
}

.search-bar {
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    background: #f0f2f5;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    background: white;
    border-color: #d50808;
}

.search-clear {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}

.message-filters {
    padding: 8px 16px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.filter-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #d50808;
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #f0f2f5;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.conversation-item:hover {
    background: #f8f9fa;
}

.conversation-item.active {
    background: #e3f2fd;
    border-right: 3px solid #d50808;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.conversation-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: #d50808;
    border-radius: 50%;
    flex-shrink: 0;
}

.online-users {
    border-top: 1px solid #e1e5e9;
    padding: 16px;
}

.online-users h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.no-conversations {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-conversations p {
    margin: 8px 0;
    font-size: 14px;
}

/* Messages Main Area */
.messages-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.messages-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
}

.chat-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.messages-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-conversation-selected {
    text-align: center;
    color: #666;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-conversation-selected h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.no-conversation-selected p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.message-input-area {
    border-top: 1px solid #e1e5e9;
    background: white;
    padding: 16px 20px;
}

.input-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    position: relative;
}

.input-group textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    max-height: 120px;
    min-height: 40px;
    outline: none;
}

.input-group textarea:focus {
    border-color: #d50808;
}

.message-counter {
    position: absolute;
    bottom: 8px;
    right: 80px;
    font-size: 12px;
    color: #666;
}

.send-info {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .messages-layout {
        flex-direction: column;
    }
    
    .messages-sidebar {
        width: 100%;
        height: 300px;
    }
    
    .messages-main {
        height: calc(100vh - 420px);
    }
    
    .message-filters {
        flex-wrap: wrap;
    }
    
    .chat-actions {
        display: none;
    }
    
    .sidebar-controls {
        gap: 4px;
    }
    
    .btn-icon {
        padding: 6px;
        font-size: 14px;
    }
}

