/*************************************************/
/*  = new file web renewal                       */
/* style sheet for footer contents               */
/* It is good both for English and Chinese       */
/*************************************************/

/* Wave Design */
.wave-container {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.wave-back,
.wave-front {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave-back svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
}

.wave-front svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

/* Footer背景色 - 現状Artifactと同じ */
#en-footer,
#cn-footer {
    background: linear-gradient(135deg, #47388C, #47388C);
    color: white;
    font-size: 15px;
    line-height: 1.2;
    padding: 15px 0 0 0;
}

/* Header Image */
.footer-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 4px;
    filter: drop-shadow(5px 5px 4px #000);
}

/* カテゴリー背景色 - 現状Artifactと同じ */
.footer-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 8px;
}

/* カテゴリーヘッダー */
.category-header {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(116, 185, 255, 0.3);
    padding-bottom: 3px;
}

/* テキストリンク - 中央配置調整 */
.footer-links {
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
}

.footer-links p .now {
    color: red;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    /*font-size: 1.2rem; */
}

.footer-links p {
    margin-bottom: 3px;
    line-height: 1.2;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 1px 3px;
    border-radius: 2px;
}

.footer-links a:hover {
    color: #74b9ff;
    background: rgba(116, 185, 255, 0.1);
    text-decoration: none;
}

/* サブグループスタイル - 枠線で囲む改善版 */
.second-group {
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 5px;
    padding: 8px 6px;
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 4px;
    background: rgba(116, 185, 255, 0.05);
    text-align: center;
}

.second-group a {
    font-size: 14px;
    color: #bbb;
}

.second-group a:hover {
    color: #74b9ff;
}

/* WeChat QRコード用のスタイル */
.wechat-qr-container {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wechat-qr-image {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 8px auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wechat-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* サブヘッダー */
.sub-header {
    font-weight: 600;
    color: #74b9ff;
    font-size: 14px;
    margin: 4px 0 2px 0;
    text-align: center;
}

/* 会社セクション */
.company-section {
    text-align: center;
}

.company-name {
    font-size: 15px;
    font-weight: 600;
    color: #74b9ff;
    margin-bottom: 6px;
}

/* ニュースアイコン */
.footer-news-icon {
    text-align: center;
    margin: 6px 0;
}

.footer-news-icon img {
    max-width: 250px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-news-icon a:hover img {
    transform: scale(1.05);
}

/* コンタクト情報 - 中央配置調整 */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.5;
}

.contact-info i {
    color: #74b9ff;
    width: 12px;
    margin-right: 4px;
    font-size: 15px;
}

.contact-info a {
    color: #ddd;
    text-decoration: none;
}

.contact-info a:hover {
    color: #74b9ff;
}

/* 言語フラグ */
.language-flags {
    margin-top: 6px;
    text-align: center;
}

.language-flags img {
    width: 30px;
    height: auto;
    border: 1px solid white;
    border-radius: 2px;
    margin-right: 4px;
    transition: transform 0.2s ease;
}

.language-flags img:hover {
    transform: scale(1.05);
}

/* コピーライト */
.footer-copyright {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.footer-copyright img {
    max-width: 120px;
    margin-bottom: 5px;
}

.footer-copyright a {
    color: #ddd;
    font-size: 12px;
    text-decoration: none;
}

/* レスポンシブ調整 - 991px以下でのカテゴリー枠幅改善 */
@media (max-width: 991px) {
    .footer-category {
        margin-bottom: 15px;
        padding: 12px;
        min-height: auto;
    }

    .category-header {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .footer-links {
        margin-left: 5px;
        margin-right: 5px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .second-group a {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .footer-category {
        margin-bottom: 6px;
        padding: 6px;
    }

    .category-header {
        font-size: 11px;
    }

    .footer-links a {
        font-size: 9px;
    }
}